import { ReactNode } from "react"; export interface FileFieldItemProps { /** Children of the component. */ children?: ReactNode; /** * Called when the close button is pressed to remove this item. */ onRemove?: () => void; /** * Accessible name for the remove button. Defaults to "Remove file", so pass * the file's name when you compose items yourself and rows stay * distinguishable to a screen reader. */ removeLabel?: string; /** * Size of the component. Which values exist is defined by the theme and listed * in the "Appearance" section of the component's documentation. */ size?: 'default' | 'small' | (string & {}); }