infinity-ui-elements
Version:
A React TypeScript component library with Tailwind CSS design system
26 lines • 1.19 kB
TypeScript
import * as React from "react";
import { type VariantProps } from "class-variance-authority";
declare const buttonGroupVariants: (props?: ({
variant?: "attached" | "separated" | null | undefined;
orientation?: "horizontal" | "vertical" | null | undefined;
size?: "medium" | "large" | "small" | "xsmall" | null | undefined;
isFullWidth?: boolean | null | undefined;
isDisabled?: boolean | null | undefined;
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
export interface ButtonGroupProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "onChange">, VariantProps<typeof buttonGroupVariants> {
children: React.ReactNode;
variant?: "attached" | "separated";
isDisabled?: boolean;
isFullWidth?: boolean;
/**
* Value for controlled button group
*/
value?: string | number;
/**
* Callback when value changes (for controlled mode)
*/
onChange?: (value: string | number) => void;
}
declare const ButtonGroup: React.ForwardRefExoticComponent<ButtonGroupProps & React.RefAttributes<HTMLDivElement>>;
export { ButtonGroup, buttonGroupVariants };
//# sourceMappingURL=ButtonGroup.d.ts.map