Skip to content

Commit 294fe9e

Browse files
authored
chore: Document options limit on segmented control (#3586)
1 parent 69c8d30 commit 294fe9e

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/__tests__/snapshot-tests/__snapshots__/documenter.test.ts.snap

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15780,7 +15780,8 @@ the label is visible and attached to the select component, unless \`ariaLabelled
1578015780
"type": "string",
1578115781
},
1578215782
{
15783-
"description": "An array of objects representing options. Each segment has the following properties:
15783+
"description": "An array of objects representing options. Only up to 6 options are supported.
15784+
Each segment has the following properties:
1578415785

1578515786
- \`id\` (string) - The ID of the segment.
1578615787
- \`disabled\` [boolean] - (Optional) Determines whether the segment is disabled, which prevents the user from selecting it.

src/segmented-control/interfaces.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ export interface SegmentedControlProps extends BaseComponentProps {
1313
selectedId: string | null;
1414

1515
/**
16-
* An array of objects representing options. Each segment has the following properties:
16+
* An array of objects representing options. Only up to 6 options are supported.
17+
* Each segment has the following properties:
1718
*
1819
* - `id` (string) - The ID of the segment.
1920
* - `disabled` [boolean] - (Optional) Determines whether the segment is disabled, which prevents the user from selecting it.

0 commit comments

Comments
 (0)