Skip to content

Commit

Permalink
fix: all groups input to accept react node as legend
Browse files Browse the repository at this point in the history
  • Loading branch information
matthprost committed Dec 13, 2024
1 parent 54b5d89 commit 1262ccb
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .changeset/strong-trains-rule.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@ultraviolet/ui": patch
---

`<RadioGroup />`, `<SelectableCardGroup />`, `<CheckboxGroup />` and `<ToggleGroup />` to accept `ReactNode` as `legend` type
2 changes: 1 addition & 1 deletion packages/ui/src/components/CheckboxGroup/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ const StyledRequiredIcon = styled(AsteriskIcon)`
`

type CheckboxGroupProps = {
legend: string
legend: ReactNode
value?: string[]
className?: string
helper?: ReactNode
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/src/components/RadioGroup/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ const StyledRequiredIcon = styled(AsteriskIcon)`
`

type RadioGroupProps = {
legend: string
legend: ReactNode
value: string | number
className?: string
helper?: ReactNode
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/src/components/SelectableCardGroup/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ const StyledRequiredIcon = styled(AsteriskIcon)`
`

type SelectableCardGroupProps = {
legend?: string
legend?: ReactNode
value: string | number | (string | number)[]
className?: string
helper?: ReactNode
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/src/components/ToggleGroup/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ const StyledRequiredIcon = styled(AsteriskIcon)`
`

type ToggleGroupProps = {
legend: string
legend: ReactNode
value?: string[]
className?: string
helper?: ReactNode
Expand Down

0 comments on commit 1262ccb

Please sign in to comment.