Skip to content

Commit 81ac076

Browse files
authoredDec 3, 2024
feat(module)!: migrate to reka-ui (#2448)
1 parent c440c91 commit 81ac076

File tree

229 files changed

+13703
-13682
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

229 files changed

+13703
-13682
lines changed
 

‎README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
[![License][license-src]][license-href]
88
[![Nuxt][nuxt-src]][nuxt-href]
99

10-
We're thrilled to introduce Nuxt UI v3, a significant upgrade to our UI library that delivers extensive improvements and robust new capabilities. This major update harnesses the combined strengths of [Radix Vue](https://www.radix-vue.com/), [Tailwind CSS v4](https://tailwindcss.com/docs/v4-beta), and [Tailwind Variants](https://www.tailwind-variants.org/) to offer developers an unparalleled set of tools for creating sophisticated, accessible, and highly performant user interfaces.
10+
We're thrilled to introduce Nuxt UI v3, a significant upgrade to our UI library that delivers extensive improvements and robust new capabilities. This major update harnesses the combined strengths of [Reka UI](https://reka-ui.com/), [Tailwind CSS v4](https://tailwindcss.com/docs/v4-beta), and [Tailwind Variants](https://www.tailwind-variants.org/) to offer developers an unparalleled set of tools for creating sophisticated, accessible, and highly performant user interfaces.
1111

1212
> [!NOTE]
1313
> You are on the `v3` development branch, check out the [dev branch](https://github.com/nuxt/ui) for Nuxt UI v2.
@@ -99,7 +99,7 @@ Learn more in the [installation guide](https://ui3.nuxt.dev/getting-started/inst
9999
- [nuxt/icon](https://github.com/nuxt/icon)
100100
- [nuxt/fonts](https://github.com/nuxt/fonts)
101101
- [nuxt-modules/color-mode](https://github.com/nuxt-modules/color-mode)
102-
- [radix-vue/radix-vue](https://github.com/radix-vue/radix-vue)
102+
- [unovue/reka-ui](https://github.com/unovue/reka-ui)
103103
- [tailwindlabs/tailwindcss](https://github.com/tailwindlabs/tailwindcss)
104104
- [vueuse/vueuse](https://github.com/vueuse/vueuse)
105105

‎cli/templates.mjs

+6-6
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ export interface ${upperName}Slots {
5555
</script>
5656
5757
<script setup lang="ts">
58-
import { Primitive } from 'radix-vue'
58+
import { Primitive } from 'reka-ui'
5959
6060
const props = withDefaults(defineProps<${upperName}Props>(), { as: 'div' })
6161
defineSlots<${upperName}Slots>()
@@ -72,7 +72,7 @@ const ui = ${camelName}()
7272
: `
7373
<script lang="ts">
7474
import { tv, type VariantProps } from 'tailwind-variants'
75-
import type { ${upperName}RootProps, ${upperName}RootEmits } from 'radix-vue'
75+
import type { ${upperName}RootProps, ${upperName}RootEmits } from 'reka-ui'
7676
import type { AppConfig } from '@nuxt/schema'
7777
import _appConfig from '#build/app.config'
7878
import theme from '#build/${path}/${prose ? 'prose/' : ''}${content ? 'content/' : ''}${kebabName}'
@@ -94,7 +94,7 @@ export interface ${upperName}Slots {}
9494
</script>
9595
9696
<script setup lang="ts">
97-
import { ${upperName}Root, useForwardPropsEmits } from 'radix-vue'
97+
import { ${upperName}Root, useForwardPropsEmits } from 'reka-ui'
9898
import { reactivePick } from '@vueuse/core'
9999
100100
const props = defineProps<${upperName}Props>()
@@ -149,7 +149,7 @@ import ComponentRender from '../${content ? '../' : ''}component-render'
149149
describe('${upperName}', () => {
150150
it.each([
151151
// Props
152-
['with as', { props: { as: 'div' } }],
152+
['with as', { props: { as: 'section' } }],
153153
['with class', { props: { class: '' } }],
154154
['with ui', { props: { ui: {} } }],
155155
// Slots
@@ -175,8 +175,8 @@ links: ${pro
175175
? ''
176176
: `
177177
- label: ${upperName}
178-
icon: i-custom-radix-vue
179-
to: https://www.radix-vue.com/components/${kebabName}.html`}
178+
icon: i-custom-reka-ui
179+
to: https://www.reka-ui.com/components/${kebabName}.html`}
180180
- label: GitHub
181181
icon: i-simple-icons-github
182182
to: https://github.com/nuxt/${pro ? 'ui-pro' : 'ui'}/tree/v3/src/runtime/components/${upperName}.vue

0 commit comments

Comments
 (0)
Please sign in to comment.