@blueprintjs/core
Version:
Core styles & components
63 lines (35 loc) • 1.61 kB
Markdown
@for the user. They may contain
a title, an icon and content. Each intent has a default icon associated with it.
@
```tsx
import { Callout } from "@blueprintjs/core";
```
@
A **Callout** highlights important content with an optional title and body text.
@reactCodeExample CalloutBasicExample
@
The `intent` prop sets the visual style of the **Callout**, reflecting its purpose or severity. Each intent applies a unique color and includes a default icon.
@reactCodeExample CalloutIntentExample
@
The `icon` prop allows customization of the **Callout** icon. Provide a custom
icon, or disable it by setting `icon={false}`.
@reactCodeExample CalloutIconExample
@
Enable the `compact` prop to reduce the padding of the **Callout** for a more condensed appearance.
@reactCodeExample CalloutCompactExample
@
@reactExample CalloutPlaygroundExample
@
@interface CalloutProps
@
<div class="@ns-callout @ns-intent-warning @ns-icon-warning-sign @ns-callout-has-body-content">
<h5 class="@ns-heading">
Deprecated API: use [`<Callout>`](
</h5>
CSS APIs for Blueprint components are considered deprecated, as they are verbose, error-prone, and they
often fall out of sync as the design system is updated. You should use the React component APIs instead.
</div>
Callouts use the same visual intent modifier classes as buttons. If you need a heading, use the `<h5>`
element with a `.@ns-heading` class.
@css callout
**Callouts** visually highlight important content