use-disabled
Synchronize the state of the disabled prop with the fieldset tag
Last updated
Synchronize the state of the disabled prop with the fieldset tag
Last updated
Inherit the disabled
status of a parent tag type fieldset
, under certain rules:
The label must be on the lightDOM.
The component that uses this hook must declare the prop {disabled: Boolean}
.
Where:
matches
: Optional string, allows to change the search of the parent tag fieldset for another tag or selector compatible with Element.matches.