@@ -45,25 +45,55 @@ export default {
4545 } ,
4646} ;
4747
48- const Template : StoryFn < CubeTagProps > = ( { label, ...props } ) => (
49- < Tag { ...props } onClose = { ( ) => console . log ( 'close' ) } >
50- { label }
51- </ Tag >
48+ const Template : StoryFn < CubeTagProps > = ( { ...props } ) => (
49+ < Tag { ...props } onClose = { ( ) => console . log ( '! onClose' ) } />
5250) ;
5351
5452export const Default = Template . bind ( { } ) ;
5553Default . args = {
56- label : 'Tag name or content' ,
54+ children : 'Tag name or content' ,
55+ } ;
56+
57+ export const Danger = Template . bind ( { } ) ;
58+ Danger . args = {
59+ children : 'Tag name or content' ,
60+ theme : 'danger' ,
61+ } ;
62+
63+ export const Success = Template . bind ( { } ) ;
64+ Success . args = {
65+ children : 'Tag name or content' ,
66+ theme : 'success' ,
67+ } ;
68+
69+ export const Note = Template . bind ( { } ) ;
70+ Note . args = {
71+ children : 'Tag name or content' ,
72+ theme : 'note' ,
73+ } ;
74+
75+ export const Disabled = Template . bind ( { } ) ;
76+ Disabled . args = {
77+ children : 'Tag name or content' ,
78+ theme : 'disabled' ,
79+ } ;
80+
81+ export const Special = Template . bind ( { } ) ;
82+ Special . args = {
83+ children : 'Tag name or content' ,
84+ theme : 'special' ,
5785} ;
5886
5987export const WithIcon = Template . bind ( { } ) ;
6088WithIcon . args = {
89+ children : 'Tag name or content' ,
6190 icon : < DollarCircleOutlined /> ,
6291 label : 'Tag name or content' ,
6392} ;
6493
6594export const Closable = Template . bind ( { } ) ;
6695Closable . args = {
96+ children : 'Tag name or content' ,
6797 label : 'Tag name or content' ,
6898 isClosable : true ,
6999} ;
0 commit comments