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

    Callout

    Callouts are used to communicate a state that affects a system, feature or page.

    View source code
    • Usage
    • Props
    • Accessibility

    Variant

    The Callout comes with four visual styles: info (default), alert, warning, and success.

    Info callout title
    Alert callout title
    Warning callout title
    Success callout title
    <>
      <Callout title="Info callout title" variant="info" />
      <Callout title="Alert callout title" variant="alert" />
      <Callout title="Warning callout title" variant="warning" />
      <Callout title="Success callout title" variant="success" />
    </>
    

    Content

    Use the children prop to add any content to the callout.

    <Callout title="Callout title">
      On the budget, the amount of the invoice will be proportionally reflected over
      the period.
    </Callout>
    

    CTAs

    CTAs can be added through the children prop as well.

    <Callout
      className="mt-4"
      title="This automation rule changed"
      variant="info"
      iconName="lightning"
    >
      <div className="flex flex-row gap-8">
        <Button
          variant="primaryInfo"
          text="Update with rule value"
          onClick={() => {}}
        />
        <Button
          variant="secondaryNeutral"
          text="Ignore"
          label="Ignore"
          onClick={() => {}}
        />
      </div>
    </Callout>
    
    Callout title

    On the budget, the amount of the invoice will be proportionally reflected over the period.

    This automation rule changed