storybook/docs/snippets/web-components/histogram-story.ts.mdx
2023-05-25 21:04:33 +01:00

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',
},
};
```