mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-08 02:01:48 +08:00
- Newline following filename comment - Fix URLs in comments - Ensure consistent usage of `ts` vs `tsx` language
24 lines
483 B
Plaintext
24 lines
483 B
Plaintext
```ts
|
|
// ButtonGroup.stories.ts
|
|
|
|
import type { Meta, StoryObj } from '@storybook/web-components';
|
|
|
|
// 👇 Imports the Button stories
|
|
import * as ButtonStories from './Button.stories';
|
|
|
|
const meta: Meta = {
|
|
title: 'ButtonGroup',
|
|
component: 'demo-button-group',
|
|
};
|
|
export default meta;
|
|
|
|
type Story = StoryObj;
|
|
|
|
export const Pair: Story = {
|
|
args: {
|
|
buttons: [{ ...ButtonStories.Primary.args }, { ...ButtonStories.Secondary.args }],
|
|
orientation: 'horizontal',
|
|
},
|
|
};
|
|
```
|