Skip to content

Label

Renders an accessible label associated with controls.

Example

import { UiLabel, UiCheckbox } from '@altdot/extension';
export default function Command() {
return (
<div style={{ display: 'flex', alignItems: 'center' }}>
<UiCheckbox id="accept" />
<UiLabel htmlFor="accept">Accept</UiLabel>
</div>
);
}

Props

NameTypeDescription
htmlForstringThe id of the element the label is associated with.