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

    Banner

    Callout to prompt the user for an action.

    View source code
    • Usage
    • Props
    • Accessibility

    Variant

    The Badge comes with two visual styles: brand (default) and neutral.

    Neutral variant

    You can now track sub-budgets based on expense categories. It will help you track your budgets with more granularity and precision.

    Brand variant

    You can now track sub-budgets based on expense categories. It will help you track your budgets with more granularity and precision.

    <>
      <Banner
        variant="neutral"
        illustration={<img src="/user-infinite.webp" />}
        title="Neutral variant"
        actions={<Button variant="secondaryNeutral" text="Set up sub-budgets" />}
      >
        You can now track sub-budgets based on expense categories. It will help you
        track your budgets with more granularity and precision.
      </Banner>
      <Banner
        variant="brand"
        illustration={<img src="/user-infinite.webp" />}
        title="Brand variant"
        actions={<Button variant="secondaryNeutral" text="Set up sub-budgets" />}
      >
        You can now track sub-budgets based on expense categories. It will help you
        track your budgets with more granularity and precision.
      </Banner>
    </>
    

    Banner without illustration

    The illustration prop is not mandatory in the Banner component. However, it is strongly advised to add an illustration when space is not a constraint.

    Neutral variant

    You can now track sub-budgets based on expense categories. It will help you track your budgets with more granularity and precision.

    <>
      <Banner
        variant="neutral"
        title="Neutral variant"
        actions={<Button variant="secondaryNeutral" text="Set up sub-budgets" />}
      >
        You can now track sub-budgets based on expense categories. It will help you
        track your budgets with more granularity and precision.
      </Banner>
    </>