UNPKG

@snowball-tech/fractal

Version:

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

19 lines (16 loc) 512 B
import { AllHTMLAttributes, ReactNode } from 'react'; import { Variants } from './Toggle.constants.js'; 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; } export type { ToggleProps };