Created
June 18, 2024 21:50
-
-
Save sullemanhossam/7b618a8a144547d81b54a29953be663c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { fn } from "@storybook/test"; | |
import 国有 from "./网路"; | |
// More on how to set up stories at: https://storybook.js.org/docs/writing-stories#default-export | |
export default { | |
title: "Section| |Header/国有", | |
component: 国有, | |
parameters: { | |
// Optional parameter to center the component in the Canvas. More info: https://storybook.js.org/docs/configure/story-layout | |
// layout: "centered", | |
}, | |
// This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/writing-docs/autodocs | |
tags: ["autodocs"], | |
// More on argTypes: https://storybook.js.org/docs/api/argtypes | |
argTypes: { | |
backgroundColor: { control: "color" }, | |
}, | |
// Use `fn` to spy on the onClick arg, which will appear in the actions panel once invoked: https://storybook.js.org/docs/essentials/actions#action-args | |
args: { onClick: fn() }, | |
}; | |
// More on writing stories with args: https://storybook.js.org/docs/writing-stories/args | |
export const Primary = { | |
args: { | |
primary: true, | |
label: "国有", | |
backgroundColor: "hello", | |
}, | |
}; | |
export const Secondary = { | |
args: { | |
label: "国有", | |
}, | |
}; | |
export const Large = { | |
args: { | |
size: "large", | |
label: "国有", | |
}, | |
}; | |
export const Small = { | |
args: { | |
size: "small", | |
label: "国有", | |
}, | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment