Skip to content

Commit

Permalink
feat: added className property to radio box options
Browse files Browse the repository at this point in the history
  • Loading branch information
coderwelsch committed Jan 16, 2024
1 parent 8678e33 commit a35ae12
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/form-field/radio-box/radio-box-option.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,15 @@ export interface RadioBoxOptionProps {
value: string;
disabled?: boolean;
recommendationText?: string;
className?: string;
}

export const RadioBoxOption = ({
children,
value,
disabled,
recommendationText,
className,
}: RadioBoxOptionProps) => {
return (
<RadioGroup.Option
Expand Down Expand Up @@ -60,7 +62,8 @@ export const RadioBoxOption = ({
className={classNames(
"paragraph-200",
checked && "text-neutral-0",
optionDisabled && "text-neutral-600"
optionDisabled && "text-neutral-600",
className
)}
>
{children}
Expand Down

0 comments on commit a35ae12

Please sign in to comment.