Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FEATURE | Radio - New label option to integrate HTML #711

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

9christian9
Copy link

I added the possibility of passing HTML in the option label.

<x-code>
        @verbatim('docs')
            @php
                $users = App\Models\User::take(3)->get();
                $labelHtml = "<x-popover>
                    <x-slot:trigger>
                        <x-icon name='o-information-circle'/> Select one
                    </x-slot:trigger>
                    <x-slot:content>
                        HEY, this is a suggestion
                    </x-slot:content>
                </x-popover>";
            @endphp
            <x-radio
                :labelHtml=$labelHtml
                :options="$users"
                wire:model="selectedUser3" />
        @endverbatim
    </x-code>

@9christian9
Copy link
Author

mary-ui.com | Related DOC robsontenorio/mary-ui.com#51

@9christian9
Copy link
Author

9christian9 commented Nov 17, 2024

Ciao, @robsontenorio what do you think? Will it be implemented?

@robsontenorio
Copy link
Owner

Thanks for this!

I am delaying it for now because of upcoming maryUI v2 (daisyUI 5 + Tailwind 4).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants