import { Meta, Story, Canvas, ArgsTable, Preview } from '@storybook/addon-docs/blocks'; import { Badge } from './Badge'; import { Icon } from './Icon'; # Badge ## 顯示有意義的標識 ### All Badges 5 basic status are supported.
Positive Negative Neutral Error Warning
### Preview and ArgsTable Initial ### Positive Badge 表示正面的 Badge
Positive
### Negative Badge 表示負面的 Badge
Negative
### Neutral Badge 表示中立的 Badge
Neutral
### Error Badge 表示錯誤的 Badge
Error
### Warning Badge 表示警示的 Badge
Warning
### WithIcon Badge 帶有 Icon 的 Badge export const IconTemplate = (args) => (
WithIcon
) {IconTemplate.bind({})} ### Playground 用這個 Story 搭配 Controls Addon 在 Canvas 呈現實驗修改的結果 export const Template = (args) => Playground {Template.bind({})}