UNPKG

@payfit/unity-components

Version:

19 lines (18 loc) • 1.13 kB
import { ReactElement, RefAttributes } from 'react'; import { TagGroupProps, TagListProps } from 'react-aria-components/TagGroup'; type AIComposerAttachmentsGroupProps<T> = Omit<TagGroupProps, 'children' | 'className' | 'style'> & Omit<TagListProps<T>, 'className' | 'style'>; /** * Keeps prompt context scannable when a person adds one or many attachments. * * Render static `AIComposerAttachment` children or provide `items` and a * render function for a dynamic collection. Pass `onRemove` to update the * source collection after a person removes an attachment. * @param props - React Aria tag-group and tag-list properties. * @see {@link AIComposerAttachmentsGroupProps} for all available props. * @remarks * The group provides tag-list semantics, a default `Attachments` label, and a * horizontally scrollable list. Supply `aria-label` when `Attachments` is too * generic in the surrounding conversation. */ export declare const AIComposerAttachmentsGroup: <T>(props: AIComposerAttachmentsGroupProps<T> & RefAttributes<HTMLDivElement>) => ReactElement | null; export type { AIComposerAttachmentsGroupProps };