import type { Meta, StoryObj } from '@storybook/react-vite';
import ButtonGroup from './ButtonGroup';
import Button from '../Button';
const meta = {
title: 'Components/Buttons/ButtonGroup',
component: ButtonGroup,
parameters: {
controls: { sort: 'alpha' }
},
argTypes: {
isInline: {
description: 'Force inline buttons on small screens',
control: 'boolean',
table: {
type: {
summary: 'boolean'
}
}
},
isWrap: {
description: 'Force wrap buttons on small screens',
control: 'boolean',
table: {
type: {
summary: 'boolean'
}
}
}
},
args: {
children: <>
>
}
} satisfies Meta;
export default meta;
type Story = StoryObj;
export const Default: Story = {
};
export const Inline: Story = {
args: {
isInline: true
}
};
export const Wrap: Story = {
args: {
isWrap: true
}
};
export const InlineWrap: Story = {
args: {
isInline: true,
isWrap: true
}
};