Plugins
Covers Engine Plugin SDK 2.0.0 · Interface Plugin SDK 0.2.0
Label
Label using the host's form labels presentation.
Import
import { Label } from "@dartwic/interface-sdk/ui";Declaration
export const Label: HostComponent<LabelProps>;LabelProps
Props accepted by a form label.
export interface LabelProps extends HostComponentProps {
/** Identifier of the labeled form control. */
htmlFor?: string;
}| Prop | Type | Requirement | Description |
|---|---|---|---|
htmlFor | string | Optional | Identifier of the labeled form control. |
className | string | Optional | Additional Tailwind or host CSS classes. |
children | HostNode | Optional | Child content rendered by the host component. |
id | string | Optional | Optional DOM identifier. |
style | Record<string, unknown> | Optional | Inline style values passed to the host component. |