Skip to content

Commit

Permalink
Remove the length restrictions on button groups
Browse files Browse the repository at this point in the history
  • Loading branch information
jessepinho committed Jul 20, 2024
1 parent 3973f91 commit 5147459
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions packages/ui/src/ButtonGroup/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,8 @@ export interface ButtonGroupProps<IconOnly extends boolean> {
/**
* An array of objects, each describing a button to render. The first will be
* rendered with the `primary` variant, the rest with the `secondary` variant.
*
* Minimum length: 1. Maximum length: 3.
*/
buttons:
| [ButtonDescription<IconOnly>]
| [ButtonDescription<IconOnly>, ButtonDescription<IconOnly>]
| [ButtonDescription<IconOnly>, ButtonDescription<IconOnly>, ButtonDescription<IconOnly>];
buttons: ButtonDescription<IconOnly>[];
/**
* The action type of the button group. Will be used for all buttons in the
* group.
Expand Down

0 comments on commit 5147459

Please sign in to comment.