File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ const { data: meta } = await useAsyncData('my-component', () => $fetch('/api/com
4949You can also use the ` getComponentMeta ` utility directly to extract component metadata programmatically:
5050
5151``` ts
52- import { getComponentMeta } from ' nuxt-component-meta'
52+ import { getComponentMeta } from ' nuxt-component-meta/parser '
5353
5454// Basic usage
5555const meta = getComponentMeta (' components/MyComponent.vue' )
@@ -79,7 +79,8 @@ console.log(meta.exposed) // Exposed properties
7979The ` propsToJsonSchema ` utility converts Vue component props metadata into JSON Schema format, enabling validation and type checking:
8080
8181``` ts
82- import { getComponentMeta , propsToJsonSchema } from ' nuxt-component-meta'
82+ import { getComponentMeta } from ' nuxt-component-meta/parser'
83+ import { propsToJsonSchema } from ' nuxt-component-meta/utils'
8384
8485// Get component metadata
8586const meta = getComponentMeta (' components/MyComponent.vue' )
You can’t perform that action at this time.
0 commit comments