File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed
Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -37,6 +37,10 @@ Controls.args = {
3737 colors : [ "Red" , "Blue" ] ,
3838} ;
3939Controls . argTypes = {
40+ disabled : {
41+ control : { type : "boolean" } ,
42+ defaultValue : true ,
43+ } ,
4044 variant : {
4145 options : [ "primary" , "secondary" ] ,
4246 control : { type : "radio" } ,
Original file line number Diff line number Diff line change @@ -107,9 +107,11 @@ const ArgsProvider = ({
107107 name : argValue . name ,
108108 type : argValue . control . type ,
109109 labels : argValue . control . labels ,
110- defaultValue : args [ argKey ] ? args [ argKey ] : argValue . defaultValue ,
110+ defaultValue :
111+ args [ argKey ] === undefined ? argValue . defaultValue : args [ argKey ] ,
111112 options : argValue . options ,
112- value : args [ argKey ] ? args [ argKey ] : argValue . defaultValue ,
113+ value :
114+ args [ argKey ] === undefined ? argValue . defaultValue : args [ argKey ] ,
113115 description : argValue . description || argKey ,
114116 min : argValue . control . min ,
115117 max : argValue . control . max ,
You can’t perform that action at this time.
0 commit comments