Forms · FileInput
SSR NativeAccessibleFile Input
Provides an accessible file picker with selection feedback.
Astro
---
import { FileInput } from '@charvesta/cetha';
---
<FileInput id="assets" label="Upload assets" description="PNG or SVG" accept="image/*" />API reference
| Prop | Type | Default | Description |
|---|---|---|---|
id* | string | — | Input identifier. |
label* | string | — | Visible picker label. |
accept | string | — | Accepted file types. |
multiple | boolean | false | Allows multiple files. |
class | string | — | Additional classes forwarded to the rendered element. |
Accessibility
Uses a native file input and exposes the chosen file name.