UNPKG

@engie-group/fluid-design-system

Version:

The Fluid Design System is ENGIE’s open-source library to create, build and deliver ENGIE digital services in a more efficient way.

34 lines (33 loc) 1.12 kB
import { Variant } from "../../variations"; export declare const TEXTAREA_SCALES: readonly ["sm", "md", "lg", "xl"]; export type TextareaScale = Extract<typeof TEXTAREA_SCALES[number], string>; export declare const TEXTAREA_LABEL_KIND: readonly ["static", "floating"]; export type TextareaLabelKind = (typeof TEXTAREA_LABEL_KIND)[number]; export declare const TEXTAREA_SUBSCRIPT_VARIANT: readonly ["error", "success"]; export type TextareaSubscriptVariant = Extract<Variant | 'error', (typeof TEXTAREA_SUBSCRIPT_VARIANT)[number]>; export type TextareaProperties = { /** * The text label for the textarea field. */ label?: string; /** * The kind of label to be displayed. */ labelKind?: TextareaLabelKind; /** * The size of the textarea. */ scale?: TextareaScale; /** * Whether the textarea is in an invalid state. */ invalid?: boolean; /** * Additional text displayed below the textarea field. */ subscript?: string; /** * Style variant for the subscript text. */ subscriptVariant?: TextareaSubscriptVariant; };