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;
}
PropTypeRequirementDescription
htmlForstringOptionalIdentifier of the labeled form control.
classNamestringOptionalAdditional Tailwind or host CSS classes.
childrenHostNodeOptionalChild content rendered by the host component.
idstringOptionalOptional DOM identifier.
styleRecord<string, unknown>OptionalInline style values passed to the host component.