UNPKG

@snowball-tech/fractal

Version:

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

19 lines (16 loc) 560 B
import { AllHTMLAttributes, ReactNode } from 'react'; import { Variants } from './Toggle.constants.js'; interface ToggleProps extends Omit<AllHTMLAttributes<HTMLButtonElement>, 'label' | 'onToggle' | 'type'> { children?: ReactNode; defaultToggled?: boolean; disabled?: boolean; fullWidth?: boolean; icon?: ReactNode; iconOnly?: boolean; label?: ReactNode; labelElement?: keyof HTMLElementTagNameMap; toggled?: boolean; variant?: `${Variants}`; onToggle?: (toggled: boolean) => void; } export type { ToggleProps };