@szum-tech/design-system
Version:
Szum-Tech design system with tailwindcss support
26 lines (21 loc) • 1.13 kB
TypeScript
import * as React from 'react';
import { ToggleGroup as ToggleGroup$1 } from 'radix-ui';
import { a as ToggleVariant, T as ToggleSize } from '../../toggle.types-D3M8ZN2a.js';
import 'class-variance-authority';
import 'class-variance-authority/types';
type ToggleGroupProps = React.ComponentProps<typeof ToggleGroup$1.Root> & {
variant?: ToggleVariant;
size?: ToggleSize;
/**
* Gap between items in spacing scale units. Use 0 to join items without gap.
*/
spacing?: number;
};
declare function ToggleGroup({ className, variant, size, spacing, orientation, children, ...props }: ToggleGroupProps): React.JSX.Element;
type ToggleGroupItemProps = React.ComponentProps<typeof ToggleGroup$1.Item> & {
variant?: ToggleVariant;
size?: ToggleSize;
};
declare function ToggleGroupItem({ children, className, variant, size, ...props }: ToggleGroupItemProps): React.JSX.Element;
type ToggleGroupOrientationType = React.ComponentProps<typeof ToggleGroup$1.Root>["orientation"];
export { ToggleGroup, ToggleGroupItem, type ToggleGroupItemProps, type ToggleGroupOrientationType, type ToggleGroupProps };