Example code
Example code
Usage
Reference
Parameters
The value of the checkbox when it is initially rendered. Use when you do not need to control its value.
The controlled value of the checkbox. Can be binded with.
When
true, prevents the user from interacting with the checkboxThe value given as data when submitted with a
name.Id of the element
Change the default rendered element for the one passed as a child, merging their props and behavior. Read our Composition guide for more details.
The element or component this component should render as. Can be overwritten by
asChild.The name of the field. Submitted with its owning form as part of a name/value pair.
When
true, indicates that the user must set the value before the owning form can be submitted.Events
The element dispatches nativeCustomEvents; the payload is in event.detail.
event.detail: [value: boolean | indeterminate]