UNPKG

welcome-ui

Version:

Customizable design system with react • styled-components • styled-system and ariakit.

16 lines (15 loc) 656 B
import { default as React } from 'react'; import { Button, ButtonProps } from '../Button'; import { CreateWuiProps } from '../System'; export interface ButtonGroupOptions { children: ChildrenProps; /** Disable all your buttons components */ disabled?: boolean; size?: ButtonProps['size']; variant?: ButtonProps['variant']; } export type ButtonGroupProps = CreateWuiProps<'div', ButtonGroupOptions>; type ChildrenProps = ChildType | ChildType[]; type ChildType = boolean | null | React.ReactElement<typeof Button> | undefined; export declare const ButtonGroup: import('../System').CreateWuiComponent<"div", ButtonGroupProps>; export {};