Installation
bash
npx axis-cli add labelUsage
tsx
import { Label } from '@ax/ui'
export function Example() {
return <Label htmlFor="email">Email</Label>
}With Input
tsx
import { Input, Label } from '@ax/ui'
export function Example() {
return (
<div className="grid w-full max-w-sm items-center gap-1.5">
<Label htmlFor="email">Email</Label>
<Input type="email" id="email" placeholder="Enter your email" />
</div>
)
}Props
| Prop | Type | Default | Description |
|---|---|---|---|
htmlFor | string | - | 연결할 input의 id |
className | string | - | 추가 CSS 클래스 |