NuxtN
Nuxt3mo ago
3 replies
ryzzer

Nuxt UI responsive defaultVariants

Hi! Is there a supported way to change Nuxt UI’s defaultVariants (e.g., set size="xl" on mobile but size="lg" on desktop) based on breakpoints? I know I can override defaultVariants globally in app.config.ts, but that applies everywhere. Does anyone have an example on making those defaults responsive without manually passing size on every component. Thanks!
Was this page helpful?