Installation
bash
npx axis-cli add inputUsage
tsx
import { Input } from '@ax/ui'
export function Example() {
return <Input type="email" placeholder="Email" />
}With Label
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="Email" />
</div>
)
}With Button
tsx
<div className="flex w-full max-w-sm items-center space-x-2">
<Input type="email" placeholder="Email" />
<Button type="submit">Subscribe</Button>
</div>Disabled
tsx
<Input disabled type="email" placeholder="Email" />File Input
tsx
<Input type="file" />Props
| Prop | Type | Default | Description |
|---|---|---|---|
type | string | "text" | Input 타입 (text, email, password 등) |
placeholder | string | - | 플레이스홀더 텍스트 |
disabled | boolean | false | 비활성화 상태 |
className | string | - | 추가 CSS 클래스 |