🏷️ Added label component interface

This commit is contained in:
Paul Valerie GOMA 2025-07-21 21:22:19 +02:00
parent ba8ffaf82f
commit 22f3881b41

View File

@ -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;
}