mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-10 00:12:22 +08:00
24 lines
450 B
Plaintext
24 lines
450 B
Plaintext
```ts
|
|
// Histogram.stories.ts|tsx
|
|
|
|
import type { Meta, StoryObj } from '@storybook/react';
|
|
|
|
import { Histogram } from './Histogram';
|
|
|
|
const meta = {
|
|
component: Histogram,
|
|
} satisfies Meta<typeof Histogram>;
|
|
|
|
export default meta;
|
|
type Story = StoryObj<typeof meta>;
|
|
|
|
export const Default: Story = {
|
|
args: {
|
|
dataType: 'latency',
|
|
showHistogramLabels: true,
|
|
histogramAccentColor: '#1EA7FD',
|
|
label: 'Latency distribution',
|
|
},
|
|
};
|
|
```
|