mubaidr
mubaidr
NNuxt
Created by mubaidr on 4/8/2025 in #❓・help
Set default full-width for <UInput> in Nuxt UI
How can I make all <UInput> components default to w-full without manually adding the class each time? Looking for a global/default override—ideally via app.vue, a plugin, or config—so that all input fields stretch full width by default when wrapped in FormField. Any clean solutions?
5 replies
NNuxt
Created by mubaidr on 1/21/2025 in #❓・help
Set global size for all component using app.config.ts
How to set global size for all component using app.config.ts> I tried the followinf it does nto work:
export default defineAppConfig({
ui: {
// base colors
primary: "green",
gray: "slate",
defaults: {
size: "lg",
}
}
})
export default defineAppConfig({
ui: {
// base colors
primary: "green",
gray: "slate",
defaults: {
size: "lg",
}
}
})
4 replies