diff --git a/src/components/label/IVLabel.type.ts b/src/components/label/IVLabel.type.ts new file mode 100644 index 0000000..d9e975a --- /dev/null +++ b/src/components/label/IVLabel.type.ts @@ -0,0 +1,39 @@ +/** + * Interface representing the props for the Label component. + */ +export default interface IVLabel { + /** + * The text content displayed as the label. + */ + label: string; + + /** + * The visual style of the label, indicating its semantic meaning. + * - `default`: Standard label appearance. + * - `error`: Indicates an error state. + * - `success`: Indicates a successful or valid state. + * + * @default 'default' + */ + type?: 'default' | 'error' | 'success' | undefined; + + /** + * Whether the label is disabled. When true, the label appears inactive or grayed out. + * + * @default false + */ + disabled?: boolean; + + /** + * Optional hint text displayed alongside or below the label to provide additional context. + */ + hint?: string; + + /** + * Indicates whether the associated field is required. + * + * @default false + */ + required?: boolean; +} +