@cerberus-design/react
Version:
The Cerberus Design React component library.
39 lines (38 loc) • 879 B
text/typescript
import { ElementType } from 'react';
/**
* This module contains the parts of the Switch parts.
* @module 'switch/parts'
*/
interface SwitchPartsValue {
/**
* The container of the field.
*/
Root: ElementType;
/**
* The label of the field.
*/
Label: ElementType;
/**
* The visual input of the switch.
*/
Control: ElementType;
/**
* The thumb item of the switch.
*/
Thumb: ElementType;
/**
* The native input for the switch.
*/
HiddenInput: ElementType;
}
/**
* An Object containing the parts of the Switch component. For users that
* prefer Object component syntax.
*
* @remarks
*
* When using object component syntax, you import the SwitchParts object and
* the entire family of components vs. only what you use.
*/
export declare const SwitchParts: SwitchPartsValue;
export {};