Skip to content

How to set disabled slot prop of the RadioGroupOption component? #48

Answered by rgossiaux
vhscom asked this question in Q&A
Discussion options

You must be logged in to vote

You don't set slot props in Svelte. They're for information that the component is providing back to you, not information you provide to the component.

Like I said on the issue:

You want to just use the normal disabled prop, the same as the Tailwind code: disabled={!size.inStock}.

No let: involved.

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
2 replies
@vhscom
Comment options

@rgossiaux
Comment options

Answer selected by vhscom
Comment options

You must be logged in to vote
1 reply
@rgossiaux
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants