chore: typos (#519)
This commit is contained in:
parent
f6bc669106
commit
18e40cf002
|
|
@ -123,7 +123,7 @@ function constructFiles(componentName: string, style: Style, sources: Record<str
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
// @ts-expect-error componentName migth not exist in Index
|
// @ts-expect-error componentName might not exist in Index
|
||||||
const registryDependencies = demoIndex[style][componentName as any]?.registryDependencies?.filter(i => i !== 'utils')
|
const registryDependencies = demoIndex[style][componentName as any]?.registryDependencies?.filter(i => i !== 'utils')
|
||||||
|
|
||||||
const files = {
|
const files = {
|
||||||
|
|
|
||||||
|
|
@ -23,7 +23,7 @@ The `<Form />` component is a wrapper around the `vee-validate` library. It prov
|
||||||
- Composable components for building forms.
|
- Composable components for building forms.
|
||||||
- A `<FormField />` component for building controlled form fields.
|
- A `<FormField />` component for building controlled form fields.
|
||||||
- Form validation using `zod`.
|
- Form validation using `zod`.
|
||||||
- Applies the correct `aria` attributes to form fields based on states, handle unqiue IDs
|
- Applies the correct `aria` attributes to form fields based on states, handle unique IDs
|
||||||
- Built to work with all Radix Vue components.
|
- Built to work with all Radix Vue components.
|
||||||
- Bring your own schema library. We use `zod` but you can use any other supported schema validation you want, like [`yup`](https://github.com/jquense/yup) or [`valibot`](https://valibot.dev/).
|
- Bring your own schema library. We use `zod` but you can use any other supported schema validation you want, like [`yup`](https://github.com/jquense/yup) or [`valibot`](https://valibot.dev/).
|
||||||
- **You have full control over the markup and styling.**
|
- **You have full control over the markup and styling.**
|
||||||
|
|
|
||||||
|
|
@ -176,7 +176,7 @@ To do so, we have a helper function named [`useForwardPropsEmits`](https://www.r
|
||||||
To be more clear, the function `useForwardPropsEmits` takes in props and an optional emit function, and returns a
|
To be more clear, the function `useForwardPropsEmits` takes in props and an optional emit function, and returns a
|
||||||
computed object that combines the parsed props and emits as props.
|
computed object that combines the parsed props and emits as props.
|
||||||
|
|
||||||
Here's an example from `Accordian` root component.
|
Here's an example from `Accordion` root component.
|
||||||
|
|
||||||
```vue
|
```vue
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
|
|
@ -200,7 +200,7 @@ const forwarded = useForwardPropsEmits(props, emits)
|
||||||
</template>
|
</template>
|
||||||
```
|
```
|
||||||
|
|
||||||
As you can see, `AccordionRootEmits` and `AccordionRootProps` types are imported from radix, combined with `useForwardPropsEmits` and then are binded using `v-bind` syntaxt.
|
As you can see, `AccordionRootEmits` and `AccordionRootProps` types are imported from radix, combined with `useForwardPropsEmits` and then are binded using `v-bind` syntax.
|
||||||
|
|
||||||
### CSS Classes
|
### CSS Classes
|
||||||
There are cases when we want to accept `class` as a prop in our `shadcn/vue` component and then combine it with a default tailwind class on our `radix-vue` component via `cn` utility function.
|
There are cases when we want to accept `class` as a prop in our `shadcn/vue` component and then combine it with a default tailwind class on our `radix-vue` component via `cn` utility function.
|
||||||
|
|
|
||||||
|
|
@ -41,7 +41,7 @@ const onSubmit = handleSubmit((values) => {
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<h3 class="text-lg font-medium">
|
<h3 class="text-lg font-medium">
|
||||||
Appearence
|
Appearance
|
||||||
</h3>
|
</h3>
|
||||||
<p class="text-sm text-muted-foreground">
|
<p class="text-sm text-muted-foreground">
|
||||||
Customize the appearance of the app. Automatically switch between day and night themes.
|
Customize the appearance of the app. Automatically switch between day and night themes.
|
||||||
|
|
|
||||||
|
|
@ -218,7 +218,7 @@ import {
|
||||||
</MenubarRadioGroup>
|
</MenubarRadioGroup>
|
||||||
<MenubarSeparator />
|
<MenubarSeparator />
|
||||||
<MenubarItem inset>
|
<MenubarItem inset>
|
||||||
Manage Famliy...
|
Manage Family...
|
||||||
</MenubarItem>
|
</MenubarItem>
|
||||||
<MenubarSeparator />
|
<MenubarSeparator />
|
||||||
<MenubarItem inset>
|
<MenubarItem inset>
|
||||||
|
|
|
||||||
|
|
@ -59,7 +59,7 @@ function computeLineOpacity(val: any, index: number) {
|
||||||
<CardHeader>
|
<CardHeader>
|
||||||
<CardTitle>Exercise Minutes</CardTitle>
|
<CardTitle>Exercise Minutes</CardTitle>
|
||||||
<CardDescription>
|
<CardDescription>
|
||||||
Your excercise minutes are ahead of where you normally are.
|
Your exercise minutes are ahead of where you normally are.
|
||||||
</CardDescription>
|
</CardDescription>
|
||||||
</CardHeader>
|
</CardHeader>
|
||||||
<CardContent class="pb-4">
|
<CardContent class="pb-4">
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@ const plugin = Autoplay({
|
||||||
class="relative w-full max-w-xs"
|
class="relative w-full max-w-xs"
|
||||||
:plugins="[plugin]"
|
:plugins="[plugin]"
|
||||||
@mouseenter="plugin.stop"
|
@mouseenter="plugin.stop"
|
||||||
@mouseleave="[plugin.reset(), plugin.play(), console.log('Runing')];"
|
@mouseleave="[plugin.reset(), plugin.play(), console.log('Running')];"
|
||||||
>
|
>
|
||||||
<CarouselContent>
|
<CarouselContent>
|
||||||
<CarouselItem v-for="(_, index) in 5" :key="index">
|
<CarouselItem v-for="(_, index) in 5" :key="index">
|
||||||
|
|
|
||||||
|
|
@ -59,7 +59,7 @@ function computeLineOpacity(val: any, index: number) {
|
||||||
<CardHeader>
|
<CardHeader>
|
||||||
<CardTitle>Exercise Minutes</CardTitle>
|
<CardTitle>Exercise Minutes</CardTitle>
|
||||||
<CardDescription>
|
<CardDescription>
|
||||||
Your excercise minutes are ahead of where you normally are.
|
Your exercise minutes are ahead of where you normally are.
|
||||||
</CardDescription>
|
</CardDescription>
|
||||||
</CardHeader>
|
</CardHeader>
|
||||||
<CardContent class="pb-4">
|
<CardContent class="pb-4">
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@ const plugin = Autoplay({
|
||||||
class="relative w-full max-w-xs"
|
class="relative w-full max-w-xs"
|
||||||
:plugins="[plugin]"
|
:plugins="[plugin]"
|
||||||
@mouseenter="plugin.stop"
|
@mouseenter="plugin.stop"
|
||||||
@mouseleave="[plugin.reset(), plugin.play(), console.log('Runing')];"
|
@mouseleave="[plugin.reset(), plugin.play(), console.log('Running')];"
|
||||||
>
|
>
|
||||||
<CarouselContent>
|
<CarouselContent>
|
||||||
<CarouselItem v-for="(_, index) in 5" :key="index">
|
<CarouselItem v-for="(_, index) in 5" :key="index">
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user