Skip to content

Commit

Permalink
docs: fix radius prop type in storybook to be number instead of object (
Browse files Browse the repository at this point in the history
#561)

fix-radius-storybook
  • Loading branch information
davidhu2000 committed Jan 19, 2023
1 parent b33fb0d commit 38448c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/stories.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def get_args(content)

description = "Can be number or string. When number, unit is assumed as px. When string, a unit is expected to be passed in"

["size", "height", "width", "margin"].each do |arg|
["size", "height", "width", "margin", "radius"].each do |arg|
if content.include?("#{arg} =")
args << " #{arg}: { description: \"#{description}\", control: { type: \"number\" } },"
end
Expand Down

0 comments on commit 38448c5

Please sign in to comment.