-
Notifications
You must be signed in to change notification settings - Fork 574
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
feat(RadioGroup): configurable label size #881
feat(RadioGroup): configurable label size #881
Conversation
The latest updates on your projects. Learn more about Vercel for Git βοΈ
|
} | ||
}, | ||
emits: ['update:modelValue', 'change'], | ||
setup (props, { emit }) { | ||
const { ui, attrs } = useUI('radioGroup', toRef(props, 'ui'), config, toRef(props, 'class')) | ||
const { ui: radioUI } = useUI('radio', toRef(props, 'uiRadio'), configRadio) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd rather call it uiRadio
to keep consistency with SelectMenu
and others: https://github.com/nuxt/ui/blob/dev/src/runtime/components/forms/SelectMenu.vue#L319
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure why I didn't change that to match the prop π
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't you remove the hard-coded text-sm
? https://github.com/nuxt/ui/blob/dev/src/runtime/components/forms/Radio.vue#L17
Well never mind I figured it out. Needing to add an |
β¦ton/nuxt-ui into feat/custom-radio-group-label
Let me know when you're done π |
All done. Ready to merge in! |
Thanks π |
π Linked issue
#779
β Type of change
π Description
Allowing the label, required, and help text size on a Radio component to be configured. This also includes a fix where the RadioGroup component was allowed to be configured in the
app.config.ts
file using theselect
key. Documentation updated to include callout about using the newuiRadio
prop to configure the Radio options when using theRadioGroup
component.Resolves #779
π Checklist