AI product

Attachment chip

Available forNativeWeb

a file in a conversation: icon by type, name, size · onRemove while composing

The native kit's real component, live in its web build at phone width. Follows this site's theme.

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

Agents: the whole registry is at /llms.txt.