---
title: React Callout Component
name: Callout
description: React callout component provides presentation of content in a visually distinct manner. Includes a heading, icon and typically text-based content.
menu: Components
route: /components/callout
other_frameworks: callout
---

import { CCallout } from '@coreui/react/src/index'

## Examples

Callout component is prepared for any length of text, as well as an optional elements like icons, headings, etc. For a styling, use one of the **required** contextual props (e.g., `color="success"`).

```jsx preview
<CCallout color="primary">
  New to or unfamiliar with flexbox? Read this CSS Tricks flexbox guide for background,
  terminology, guidelines, and code snippets.
</CCallout>
<CCallout color="secondary">
  New to or unfamiliar with flexbox? Read this CSS Tricks flexbox guide for background,
  terminology, guidelines, and code snippets.
</CCallout>
<CCallout color="success">
  New to or unfamiliar with flexbox? Read this CSS Tricks flexbox guide for background,
  terminology, guidelines, and code snippets.
</CCallout>
<CCallout color="danger">
  New to or unfamiliar with flexbox? Read this CSS Tricks flexbox guide for background,
  terminology, guidelines, and code snippets.
</CCallout>
<CCallout color="warning">
  New to or unfamiliar with flexbox? Read this CSS Tricks flexbox guide for background,
  terminology, guidelines, and code snippets.
</CCallout>
<CCallout color="info">
  New to or unfamiliar with flexbox? Read this CSS Tricks flexbox guide for background,
  terminology, guidelines, and code snippets.
</CCallout>
<CCallout color="light">
  New to or unfamiliar with flexbox? Read this CSS Tricks flexbox guide for background,
  terminology, guidelines, and code snippets.
</CCallout>
<CCallout color="dark">
  New to or unfamiliar with flexbox? Read this CSS Tricks flexbox guide for background,
  terminology, guidelines, and code snippets.
</CCallout>
```

<Callout color="info" title="Conveying meaning to assistive technologies">
  Using color to add meaning only provides a visual indication, which will not be conveyed to
  users of assistive technologies – such as screen readers. Ensure that information denoted by the
  color is either obvious from the content itself (e.g. the visible text), or is included through
  alternative means, such as additional text hidden with the `.visually-hidden` class.
</Callout>

## Customizing

### CSS variables

React callouts use local CSS variables on `.callout` for enhanced real-time customization. Values for the CSS variables are set via Sass, so Sass customization is still supported, too.

<ScssDocs file="_callout.scss" capture="callout-css-vars"/>

#### How to use CSS variables

```jsx
const vars = { 
  '--my-css-var': 10,
  '--my-another-css-var': "red" 
}
return <CCallout style={vars}>...</CCallout>
```

### SASS variables

<ScssDocs file="_variables.scss" capture="callout-variables"/>

## API

### CCallout

`markdown:CCallout.api.mdx`
