AI product
Attachment chip
Available forNativeWeb
a file in a conversation: icon by type, name, size · onRemove while composing
Usage
ChatComposer shows these itself; use it to show the files in a sent message. Without onRemove it is read-only.
API
<AttachmentChip file={{ name, size, type? }} onRemove? />Get it
Already in every copy of the native kit:
import { AttachmentChip, formatBytes } from '@/components/kit/attachment-chip';Details
- Exports
AttachmentChip,formatBytes- Packages
- lucide-react-native@^1.21.0
- Installs with
- @kit-native/icon, @kit-native/lib-utils, @kit-native/text
- Also searched as
- file, upload, attachment
- Registry JSON
- /r/native/attachment-chip.json
Usage
ChatComposer shows these itself; use it to show the files in a sent message. Without onRemove it is read-only.
API
<AttachmentChip file={{ name, size, type? }} onRemove? />Get it
Already in every copy of the web kit:
import { AttachmentChip, formatBytes } from '@/components/kit/attachment-chip';Details
- Exports
AttachmentChip,formatBytes- Packages
- cn@^0.4.0, lucide-react@^1.52.0
- Installs with
- @kit/button
- Also searched as
- file, upload, attachment
- Registry JSON
- /r/web/attachment-chip.json
Agents: the whole registry is at /llms.txt.