UNPKG

@payfit/unity-components

Version:

20 lines (19 loc) • 925 B
import { ComponentPropsWithoutRef } from 'react'; /** Displays an icon or image for an attachment. */ export interface AttachmentMediaProps extends Omit<ComponentPropsWithoutRef<'div'>, 'className' | 'style'> { /** * Selects the background for an icon or a cropped image preview. * @default 'icon' */ variant?: 'icon' | 'image'; } /** * Helps people identify an attachment with an icon or image preview. * * Use the default `icon` variant with an icon, or set `variant="image"` and * provide an image that fills the media frame. Give informative images useful * alternative text; use empty `alt` for decorative images. * @param props - Media content, variant, and div attributes. * @see {@link AttachmentMediaProps} for available variants. */ export declare const AttachmentMedia: import('react').ForwardRefExoticComponent<AttachmentMediaProps & import('react').RefAttributes<HTMLDivElement>>;