mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-08 07:13:34 +08:00
22 lines
387 B
Plaintext
22 lines
387 B
Plaintext
```ts
|
|
// MyComponent.stories.ts
|
|
|
|
import type { Meta, StoryObj } from '@storybook/web-components';
|
|
|
|
const meta: Meta = {
|
|
component: 'histogram-component',
|
|
};
|
|
|
|
export default meta;
|
|
type Story = StoryObj;
|
|
|
|
export const Default: Story = {
|
|
args: {
|
|
dataType: 'latency',
|
|
showHistogramLabels: true,
|
|
histogramAccentColor: '#1EA7FD',
|
|
label: 'Latency distribution',
|
|
},
|
|
};
|
|
```
|