Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
khiga8 committed Feb 10, 2025
1 parent 03ee595 commit c0a1013
Showing 1 changed file with 20 additions and 2 deletions.
22 changes: 20 additions & 2 deletions packages/react/src/SegmentedControl/SegmentedControl.docs.json
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@
"description": "Whether the segment is selected. This is used for controlled SegmentedControls, and needs to be updated using the onChange handler on SegmentedControl."
},
{
"name": "selected",
"name": "size",
"type": "'small' | 'medium'",
"defaultValue": "",
"description": "The size of the buttons"
Expand All @@ -162,8 +162,26 @@
{
"name": "ref",
"type": "React.RefObject<HTMLButtonElement>"
},
{
"name": "tooltipDirection",
"type": "'n' | 'ne' | 'e' | 'se' | 's' | 'sw' | 'w' | 'nw'",
"required": false
},
{
"name": "unsafeDisableTooltip",
"type": "boolean",
"defaultValue": "false",
"required": false
},
{
"name": "description",
"type": "string",
"required": false,
"description": "If `description` is provided, we will use a Tooltip to describe the button. Then `aria-label` is used to label the button.",
"defaultValue": ""
}
]
}
]
}
}

0 comments on commit c0a1013

Please sign in to comment.