mirror of
https://github.com/zhigang1992/bug-free-fiesta.git
synced 2026-01-12 22:38:24 +08:00
boom
This commit is contained in:
@@ -9,9 +9,9 @@ export default {
|
||||
};
|
||||
|
||||
export const Single = () => {
|
||||
const type = select<AwesomeButtonProps['type']>(
|
||||
const type = select<AwesomeButtonProps["type"]>(
|
||||
"Type",
|
||||
['Awesome', 'Cool', 'Sup'],
|
||||
["Awesome", "Cool", "Sup"] as any,
|
||||
"Awesome"
|
||||
);
|
||||
return (
|
||||
@@ -20,16 +20,3 @@ export const Single = () => {
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
export const Multiple = () => {
|
||||
const type = select<AwesomeButtonProps['type']>(
|
||||
"Type",
|
||||
['Awesome', 'Cool', 'Sup'],
|
||||
"Cool"
|
||||
);
|
||||
return (
|
||||
<div className="flex">
|
||||
<AwesomeButton type={type}/>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user