UNPKG

@snowball-tech/fractal

Version:

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

23 lines (19 loc) 796 B
import { V as Variants } from '../../../Toggle.constants-B2vOk7Mr.js'; export { D as DEFAULT_TOGGLE_VARIANT } from '../../../Toggle.constants-B2vOk7Mr.js'; import * as react from 'react'; import { AllHTMLAttributes, ReactNode } from 'react'; interface ToggleProps extends Omit<AllHTMLAttributes<HTMLButtonElement>, 'type'> { children?: ReactNode; defaultToggled?: boolean; disabled?: boolean; fullWidth?: boolean; icon?: ReactNode; iconOnly?: boolean; label?: string; labelAsDiv?: boolean; toggled?: boolean; variant?: `${Variants}`; onToggle?: (toggled: boolean) => void; } declare const Toggle: react.ForwardRefExoticComponent<ToggleProps & react.RefAttributes<HTMLButtonElement>>; export { Toggle, type ToggleProps, Variants as ToggleVariants };