-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
[Feature Request] Theme setting for default labelPlacement #4621
Comments
@jprosevear you can use the import { extendVariants, Input } from "@heroui/react"
const CustomInput = extendVariants(Input, {
variants: {
size: {
md: {
inputWrapper: "h-9 min-h-9",
},
},
},
defaultVariants: {
size: "md",
labelPlacement: "outside",
autoComplete: "off",
},
})
export { CustomInput as Input } |
This is nicer than what I'm doing, but still think its a valid feature request. |
There's a PR that allows you to set it in our provider to override it globally. ref: #4346. Scheduled in next minor release. |
Basically exactly what I need. |
Is your feature request related to a problem? Please describe.
Right now afaict have to override label placement for every individual select/input/etc if using something other than default.
Describe the solution you'd like
Theme setting { defaultLabelPlacement: 'outside-left' } or whatever.
Describe alternatives you've considered
Wrapping every labelled component
Screenshots or Videos
No response
The text was updated successfully, but these errors were encountered: