Grapes homepage1.57.0
  • Guide
  • Tokens
  • Components
    Grapes on GithubGrapes on Figma
    Interaction
    • Button
    • IconButton
    • FloatingActionBar
    • Link
    Icons
    • Icon
    • HighlightIcon
    Form
    • AmountInput
    • Autocomplete
    • AutocompleteMultiple
    • AutocompletePlace
    • CheckboxBox
    • CheckboxField
    • DatePicker
    • FormField
    • Input
    • OptionGroup
    • PasswordInput
    • PhoneInput
    • RadioBox
    • RadioField
    • RadioGroup
    • Select
    • SwitchField
    • TextArea
    • TextInput
    • Upload
    • UploadButton
    Feedback
    • Badge
    • Banner
    • Callout
    • EmptyState
    • Modal
    • ModalSlideshow
    • DeprecatedModalSlideshow
    • PageModal
    • Skeleton
    • Tag
    • Toast
    • Tooltip
    Data display
    • Accordion
    • Avatar
    • Box
    • Calendar
    • CalendarRange
    • CollapsibleList
    • FileCard
    • InfoTip
    • ListBox
    • ListView
    • Panel
    • SidePanel
    • DeprecatedPreview
    • Table
    • Timeline
    • useDateFormatter
    Navigation
    • DropdownItem
    • DropdownMenu
    • Navigation
    • NavigationItem
    • Popover
    • Tabs

    FileCard

    This component is used to display a condensed view of a file. When clicked, the user should expect to see a detailed version.

    View source code
    • Usage
    • Props
    • title
      string

      The title to display in the file card

    • className
      string

      className for the element

    • description
      ReactNode

      The description to display in the file card

    • isHighlighted
      boolean

      Whether the file card component should be highlighted

      Default: false
    • mimeType
      string

      The file's mime type

    • onClick
      MouseEventHandler<HTMLButtonElement>

      Handler that is called when the file card is clicked

    • onDelete
      MouseEventHandler<HTMLButtonElement>

      Handler that is called when the delete icon is clicked

    • variant
      "alert" | "neutral"

      The visual style of the file card

      Default: neutral