import React from 'react'; import { tv, type VariantProps } from 'tailwind-variants'; import { cn } from '../../utils/cn'; const buttonGroupVariants = tv({ base: '[&>button:first-child]:rounded-l-xs [&>button:last-child]:rounded-r-xs inline-flex [&>button]:mx-[-0.5px] [&>button]:rounded-none', }); export interface ButtonGroupProps extends React.HTMLAttributes, VariantProps {} const ButtonGroup = React.forwardRef(({ className, children, ...props }, ref) => { return (
{children}
); }); ButtonGroup.displayName = 'ButtonGroup'; export { ButtonGroup, buttonGroupVariants };