welcome-ui
Version:
Customizable design system with react • styled-components • styled-system and ariakit.
17 lines (16 loc) • 954 B
TypeScript
import { CreateWuiProps } from '../System';
export interface LabelOptions {
checkableField?: boolean;
disabled?: boolean;
disabledIcon?: JSX.Element;
htmlFor?: string;
icon?: JSX.Element;
required?: boolean;
variant?: 'danger' | 'success' | 'warning';
withDisabledIcon?: boolean;
}
export type LabelProps = CreateWuiProps<'label', LabelOptions>;
export declare const Label: import('../System').CreateWuiComponent<"label", LabelProps>;
export declare const StyledLabel: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, keyof import('@xstyled/system').SystemProps<import('@xstyled/system').Theme>> & import('@xstyled/system').SystemProps<import('@xstyled/system').Theme>, {
required: boolean;
}>> & string;