|
| 1 | +--- |
| 2 | +title: Prose Components |
| 3 | +description: Components to help you structure your content. |
| 4 | +navigation.icon: i-lucide-component |
| 5 | +--- |
| 6 | + |
| 7 | +### Accordion |
| 8 | + |
| 9 | +Use the `accordion` and `accordion-item` components to display an [Accordion](/components/accordion) in your content. |
| 10 | + |
| 11 | +::code-preview{class="[&>div]:*:my-0"} |
| 12 | + |
| 13 | +:::accordion |
| 14 | + |
| 15 | +::accordion-item{label="What are the main considerations when upgrading to Nuxt UI v3?" icon="i-lucide-circle-help"} |
| 16 | +The transition to v3 involves significant changes, including new component structures, updated theming approaches, and revised TypeScript definitions. We recommend a careful, incremental upgrade process, starting with thorough testing in a development environment. |
| 17 | +:: |
| 18 | + |
| 19 | +::accordion-item{label="Is Nuxt UI v3 compatible with standalone Vue projects?" icon="i-lucide-circle-help"} |
| 20 | +Nuxt UI is now compatible with Vue! You can follow the [installation guide](/getting-started/installation/vue) to get started. |
| 21 | +:: |
| 22 | + |
| 23 | +::accordion-item{label="What about Nuxt UI Pro?" icon="i-lucide-circle-help"} |
| 24 | +We've also rebuilt Nuxt UI Pro from scratch and released a `v3.0.0-alpha.x` package but it only contains the components to build this documentation yet. This will be a free update, so the license you buy now will be valid for v3. We're actively working to finish the rewrite of all Nuxt UI Pro components. |
| 25 | +:: |
| 26 | + |
| 27 | +::: |
| 28 | + |
| 29 | +#code |
| 30 | + |
| 31 | +```mdc |
| 32 | +::accordion |
| 33 | +
|
| 34 | +::accordion-item{label="What are the main considerations when upgrading to Nuxt UI v3?" icon="i-lucide-circle-help"} |
| 35 | +The transition to v3 involves significant changes, including new component structures, updated theming approaches, and revised TypeScript definitions. We recommend a careful, incremental upgrade process, starting with thorough testing in a development environment. |
| 36 | +:: |
| 37 | +
|
| 38 | +::accordion-item{label="Is Nuxt UI v3 compatible with standalone Vue projects?" icon="i-lucide-circle-help"} |
| 39 | +Nuxt UI is now compatible with Vue! You can follow the [installation guide](/getting-started/installation/vue) to get started. |
| 40 | +:: |
| 41 | +
|
| 42 | +::accordion-item{label="What about Nuxt UI Pro?" icon="i-lucide-circle-help"} |
| 43 | +We've also rebuilt Nuxt UI Pro from scratch and released a `v3.0.0-alpha.x` package but it only contains the components to build this documentation yet. This will be a free update, so the license you buy now will be valid for v3. We're actively working to finish the rewrite of all Nuxt UI Pro components. |
| 44 | +:: |
| 45 | +
|
| 46 | +:: |
| 47 | +``` |
| 48 | + |
| 49 | +:: |
| 50 | + |
| 51 | +### Badge |
| 52 | + |
| 53 | +Use markdown in the default slot of the `badge` component to display a [Badge](/components/badge) in your content. |
| 54 | + |
| 55 | +::code-preview{label="Preview"} |
| 56 | + |
| 57 | +:::badge |
| 58 | +**v3.0.0-alpha.10** |
| 59 | +::: |
| 60 | + |
| 61 | +#code |
| 62 | + |
| 63 | +```mdc |
| 64 | +::badge |
| 65 | +**v3.0.0-alpha.10** |
| 66 | +:: |
| 67 | +``` |
| 68 | + |
| 69 | +:: |
| 70 | + |
| 71 | +### Callout |
| 72 | + |
| 73 | +Use markdown in the default slot of the `callout` component to add eye-catching context to your content. |
| 74 | + |
| 75 | +Use the `icon` and `color` props to customize it. You can also pass any property from the [`<NuxtLink>`](https://nuxt.com/docs/api/components/nuxt-link) component. |
| 76 | + |
| 77 | +::code-preview{class="[&>div]:*:my-0 [&>div]:*:w-full"} |
| 78 | + |
| 79 | +::callout |
| 80 | +This is a `callout` with full **markdown** support. |
| 81 | +:: |
| 82 | + |
| 83 | +#code |
| 84 | + |
| 85 | +```mdc |
| 86 | +::callout |
| 87 | +This is a `callout` with full **markdown** support. |
| 88 | +:: |
| 89 | +``` |
| 90 | + |
| 91 | +:: |
| 92 | + |
| 93 | +You can also use the `note`, `tip`, `warning` and `caution` shortcuts with pre-defined icons and colors. |
| 94 | + |
| 95 | +::code-preview{label="Preview"} |
| 96 | + |
| 97 | +:::div{class="flex flex-col gap-4 w-full"} |
| 98 | + |
| 99 | +::note{class="w-full my-0"} |
| 100 | +Here's some additional information for you. |
| 101 | +:: |
| 102 | + |
| 103 | +::tip{class="w-full my-0"} |
| 104 | +Here's a helpful suggestion. |
| 105 | +:: |
| 106 | + |
| 107 | +::warning{class="w-full my-0"} |
| 108 | +Be careful with this action as it might have unexpected results. |
| 109 | +:: |
| 110 | + |
| 111 | +::caution{class="w-full my-0"} |
| 112 | +This action cannot be undone. |
| 113 | +:: |
| 114 | + |
| 115 | +::: |
| 116 | + |
| 117 | +#code |
| 118 | + |
| 119 | +```mdc |
| 120 | +::note |
| 121 | +Here's some additional information. |
| 122 | +:: |
| 123 | +
|
| 124 | +::tip |
| 125 | +Here's a helpful suggestion. |
| 126 | +:: |
| 127 | +
|
| 128 | +::warning |
| 129 | +Be careful with this action as it might have unexpected results. |
| 130 | +:: |
| 131 | +
|
| 132 | +::caution |
| 133 | +This action cannot be undone. |
| 134 | +:: |
| 135 | +``` |
| 136 | + |
| 137 | +:: |
0 commit comments