UNPKG

@snowball-tech/fractal

Version:

Fractal's (Snowball's design system) React component library based on RadixUI and TailwindCSS

32 lines (31 loc) 1.16 kB
import { Variants } from "../Toggle/Toggle.constants.js"; import { ReactNode } from "react"; import { ToggleGroupItemProps, ToggleGroupMultipleProps } from "@radix-ui/react-toggle-group"; //#region src/components/ToggleGroup/ToggleGroup.types.d.ts interface ToggleGroupProps extends Omit<ToggleGroupMultipleProps, 'defaultValue' | 'type' | 'value'> { children: ReactNode; defaultValue?: string | Array<string>; disabled?: boolean; fullWidth?: boolean; grouped?: boolean; label?: string; multiple?: boolean; orientation?: ToggleGroupMultipleProps['orientation']; value?: string | Array<string>; variant?: `${Variants}`; onValueChange?: (value: string | Array<string>) => void; } interface ToggleGroupItemProps$1 extends Omit<ToggleGroupItemProps, 'onToggle'> { value: string; children?: ReactNode; disabled?: boolean; fullWidth?: boolean; icon?: ReactNode; iconOnly?: boolean; label?: ReactNode; labelElement?: keyof HTMLElementTagNameMap; onToggle?: (toggled: boolean) => void; } //#endregion export { ToggleGroupItemProps$1 as ToggleGroupItemProps, ToggleGroupProps }; //# sourceMappingURL=ToggleGroup.types.d.ts.map