| + Prop + | ++ Default + | +Description | +
|---|---|---|
+ {{ prop.name }}*
+ |
+
+ {{ prop.default }}
+ |
+
+
+ {{ prop.type }}
+
+
+ {{ prop.type }}
+
+ |
+
| Slot | +
|---|
+ {{ slot.name }}
+ |
+
+ {{ useLowerCase(page._dir) }} +
++ {{ page.description }} +
+--{{ code }}- --
- Dark mode implementation with Color Mode module. -
-TailwindCSS takes advantage of the `dark` class on the html tag:
- -
-
- {{ code4 }}
-
-
-
- The `@nuxtjs/color-mode` module is now installed by default, you can easily implement a toggle button:
- -
-
- {{ code1 }}
-
-
-
- A number of shortcuts are available to make your life with colors easier.
- -For each color utilities: `bg`, `text`, `border`, `ring` and `divide`, shortcuts for `white`, `black` and `gray` colors are generated (based on your prefix `u` by default) that handles the dark mode automatically:
- -
-
- {{ code3 }}
-
-
-
- For example `u-bg-gray-100` is a shortcut for `bg-gray-100 dark:bg-gray-800`. Take a look at the shortcuts definitions.
-- Examples of real-life usage of components. -
-- Are you sure you want to deactivate your account? All of your data will be permanently removed from our servers forever. This action cannot be undone. -
-
-{{ form }}
-
- - Components library as a Nuxt3 module using TailwindCSS. -
-
-
-
-
- Then, register the module in your `nuxt.config.js`:
- -
-
-
-
- If you want latest updates, please use `@nuxthq/ui-edge` in your `package.json`:
- -
-
-
-
- - `preset`
- -Choose preset. Defaults to `tailwindui`. An object can also be used to override some parts of the default preset.
- -- `prefix`
- -Define the prefix of the imported components. Defaults to `u`.
- -- Example: -
- -
-
-
-
- - `colors.primary`
- -Define the primary variant. Defaults to `indigo`. You can specify your own object of colors like here:
- -- Example: -
- -
-
-
-
- - `colors.gray`
- -Define the gray variant. Defaults to `zinc`. You can like the `primary` color specify your own object. https://tailwindcss.com/docs/customizing-colors#default-color-palette
- -- `tailwindcss.theme`. Defaults to `{}`.
- -Define TailwindCSS theme: https://tailwindcss.com/docs/theme.
-- Check out the components that have been migrated to Vue3 coming from `@nuxthq/volta-ui`. -
-| - Component - | -- Nuxt3 ready - | -- Composition API - | -- Preset system - | -- Typescript - | -
|---|---|---|---|---|
|
- |
- - ✅ - ❌ - | -- ✅ - ❌ - | -- ✅ - ❌ - | -- ✅ - ❌ - | -