@cerberus-design/react
Version:
The Cerberus Design React component library.
55 lines (54 loc) • 1.29 kB
TypeScript
import { ElementType } from 'react';
/**
* This module contains the parts of the Field component.
* @module 'field/parts'
*/
interface FieldPartsValue {
/**
* The container of the field.
*/
Root: ElementType;
/**
* The label of the field.
*/
Label: ElementType;
/**
* The input of the field.
*/
Input: ElementType;
/**
* The textarea of the field.
*/
Textarea: ElementType;
/**
* The text that displays when the field is valid.
*/
HelperText: ElementType;
/**
* The text that displays when the field is invalid.
*/
ErrorText: ElementType;
/**
* The indicator that appears at the start of the field.
*/
StartIndicator: ElementType;
/**
* The status indicator of the field.
*/
StatusIndicator: ElementType;
/**
* The indicator that appears at the end of the field.
*/
RequiredIndicator: ElementType;
}
/**
* An Object containing the parts of the Field component. For users that
* prefer Object component syntax.
*
* @remarks
*
* When using object component syntax, you import the FieldParts object and
* the entire family of components vs. only what you use.
*/
export declare const FieldParts: FieldPartsValue;
export {};