#021
Images only and disabled
Two FileUpload dropzones: one restricted to images with custom label and hint, and one disabled.
Hand this to your AI. It names the exact library parts, timings and accessibility promises of this demo.
Build the "Images only and disabled" pattern (@codeatlasdev/ui demo #021, inputs/file-upload) in my app.
Call get_demo({ ids: ["#021"] }) first and keep its structure. It needs @codeatlasdev/[email protected].
Use: Image-only upload fields and upload areas that are unavailable to the current user.
Keep these library parts, with the props and tokens the demo uses:
- FileUpload from "@codeatlasdev/ui"
Behaviour to keep:
- `accept="image/*"` with `label="Drop images here"` and `hint="PNG, JPG, GIF, WebP"`
- `disabled` with `label="Upload unavailable"`
- Wrapper `.wrap` stacks both with `max-width: 480px`
Reduced motion: the demo handles it; keep that branch.
Keyboard: operable; keep the focus order and key handling.
Change only the copy and the data. Use the theme tokens (--ca-*), never raw colours. Library parts
- FileUpload
@codeatlasdev/ui
How it is built
- `accept="image/*"` with `label="Drop images here"` and `hint="PNG, JPG, GIF, WebP"`
- `disabled` with `label="Upload unavailable"`
- Wrapper `.wrap` stacks both with `max-width: 480px`
Related
Loading source.