chore: fix label for attribute in registry examples

`html-for` -> `for`
This commit is contained in:
sadeghbarati 2023-12-12 10:02:55 +03:30
parent 24027aa1a1
commit f82e4011e6
4 changed files with 6 additions and 6 deletions

View File

@ -22,11 +22,11 @@ import { Button } from '@/lib/registry/default/ui/button'
<form> <form>
<div class="grid items-center w-full gap-4"> <div class="grid items-center w-full gap-4">
<div class="flex flex-col space-y-1.5"> <div class="flex flex-col space-y-1.5">
<Label html-for="name">Name</Label> <Label for="name">Name</Label>
<Input id="name" placeholder="Name of your project" /> <Input id="name" placeholder="Name of your project" />
</div> </div>
<div class="flex flex-col space-y-1.5"> <div class="flex flex-col space-y-1.5">
<Label html-for="framework">Framework</Label> <Label for="framework">Framework</Label>
<Select> <Select>
<SelectTrigger id="framework"> <SelectTrigger id="framework">
<SelectValue placeholder="Select" /> <SelectValue placeholder="Select" />

View File

@ -31,7 +31,7 @@ import { Label } from '@/lib/registry/default/ui/label'
</DialogHeader> </DialogHeader>
<div class="flex items-center space-x-2"> <div class="flex items-center space-x-2">
<div class="grid flex-1 gap-2"> <div class="grid flex-1 gap-2">
<Label html-for="link" class="sr-only"> <Label for="link" class="sr-only">
Link Link
</Label> </Label>
<Input <Input

View File

@ -22,11 +22,11 @@ import { Button } from '@/lib/registry/new-york/ui/button'
<form> <form>
<div class="grid items-center w-full gap-4"> <div class="grid items-center w-full gap-4">
<div class="flex flex-col space-y-1.5"> <div class="flex flex-col space-y-1.5">
<Label html-for="name">Name</Label> <Label for="name">Name</Label>
<Input id="name" placeholder="Name of your project" /> <Input id="name" placeholder="Name of your project" />
</div> </div>
<div class="flex flex-col space-y-1.5"> <div class="flex flex-col space-y-1.5">
<Label html-for="framework">Framework</Label> <Label for="framework">Framework</Label>
<Select> <Select>
<SelectTrigger id="framework"> <SelectTrigger id="framework">
<SelectValue placeholder="Select" /> <SelectValue placeholder="Select" />

View File

@ -31,7 +31,7 @@ import { Label } from '@/lib/registry/new-york/ui/label'
</DialogHeader> </DialogHeader>
<div class="flex items-center space-x-2"> <div class="flex items-center space-x-2">
<div class="grid flex-1 gap-2"> <div class="grid flex-1 gap-2">
<Label html-for="link" class="sr-only"> <Label for="link" class="sr-only">
Link Link
</Label> </Label>
<Input <Input