UNPKG

@cerberus-design/react

Version:

The Cerberus Design React component library.

33 lines (29 loc) 703 B
import type { ElementType } from 'react' import { Button, ButtonIcon } from './button' /** * This module contains the parts of the Button component. * @module 'button/parts' */ interface ButtonPartsValue { /** * The context provider of the button. */ Root: ElementType /** * The icon of the button. */ Icon: ElementType } /** * An Object containing the parts of the Button component. For users that * prefer Object component syntax. * * @remarks * * When using object component syntax, you import the ButtonParts object and * the entire family of components vs. only what you use. */ export const ButtonParts: ButtonPartsValue = { Root: Button, Icon: ButtonIcon, }