Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: all groups input to accept react node as legend #4584

Merged
merged 1 commit into from
Dec 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading