Skip to content

Commit

Permalink
fix: disallow setting button variant for ToggleGroup.Item
Browse files Browse the repository at this point in the history
  • Loading branch information
unekinn committed Feb 26, 2025
1 parent ce54538 commit ac32b69
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .changeset/better-eagles-greet.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
"@digdir/designsystemet-react": minor
---

Rename `variant` prop to `data-variant` on Avatar, Button, Dialog, Dropdown, Dropdown.Button, Paragraph, Popover, Skeleton, and ToggleGroup.Item
Rename `variant` prop to `data-variant` on Avatar, Button, Paragraph, Popover, and Skeleton
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export type ToggleGroupItemProps = {
* Generates a random value if not set.
**/
value?: string;
} & Omit<ButtonProps, 'loading' | 'value'>;
} & Omit<ButtonProps, 'loading' | 'value' | 'data-variant'>;

/**
* A single item in a ToggleGroup.
Expand Down

0 comments on commit ac32b69

Please sign in to comment.