@snowball-tech/fractal
Version:
Fractal's (Snowball's design system) React component library based on RadixUI and PandaCSS
23 lines (19 loc) • 851 B
TypeScript
import { V as Variants } from '../../../Toggle.constants-CdYGwS01.js';
export { D as DEFAULT_TOGGLE_VARIANT } from '../../../Toggle.constants-CdYGwS01.js';
import * as react from 'react';
import { AllHTMLAttributes, ReactNode } from 'react';
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;
}
declare const Toggle: react.ForwardRefExoticComponent<ToggleProps & react.RefAttributes<HTMLButtonElement | null>>;
export { Toggle, type ToggleProps, Variants as ToggleVariants };