Skip to main content

Blazor Callout

The Blazor Bootstrap Callout component sets content apart in a visually distinct box, with a custom heading, large text, or no heading at all.

Parameters​

NameTypeDefaultRequiredDescriptionAdded Version
ChildContentRenderFragment?null✔️Gets or sets the content to be rendered within the component.1.0.0
ColorCalloutColorCalloutColor.DefaultGets or sets the callout color.1.0.0
HeadingstringnullGets or sets the callout heading.1.0.0
HideHeadingboolfalseGets or sets a value indicating whether to hide the callout heading.2.0.0

Examples​

Callout​

Blazor Bootstrap: Callout Component - Examples
<Callout>
<strong>This is a default callout</strong>. Example text to show it in action. See <a href="https://docs.blazorbootstrap.com/components/callout">callout documentation</a>.
</Callout>

<Callout Type="CalloutType.Danger">
<strong>This is an danger callout</strong>. Example text to show it in action. See <a href="https://docs.blazorbootstrap.com/components/callout">callout documentation</a>.
</Callout>

<Callout Type="CalloutType.Warning">
<strong>This is an warning callout</strong>. Example text to show it in action. See <a href="https://docs.blazorbootstrap.com/components/callout">callout documentation</a>.
</Callout>

<Callout Type="CalloutType.Info">
<strong>This is an info callout</strong>. Example text to show it in action. See <a href="https://docs.blazorbootstrap.com/components/callout">callout documentation</a>.
</Callout>

<Callout Type="CalloutType.Tip">
<strong>This is an tip callout</strong>. Example text to show it in action. See <a href="https://docs.blazorbootstrap.com/components/callout">callout documentation</a>.
</Callout>

See demo here.

Custom heading​

Blazor Bootstrap: Callout Component - Custom heading
<Callout Heading="Important">
<strong>This is a default callout</strong>. Example text to show it in action. See <a href="https://docs.blazorbootstrap.com/components/callout">callout documentation</a>.
</Callout>

<Callout Type="CalloutType.Danger" Heading="Important">
<strong>This is an danger callout</strong>. Example text to show it in action. See <a href="https://docs.blazorbootstrap.com/components/callout">callout documentation</a>.
</Callout>

<Callout Type="CalloutType.Warning" Heading="Important">
<strong>This is an warning callout</strong>. Example text to show it in action. See <a href="https://docs.blazorbootstrap.com/components/callout">callout documentation</a>.
</Callout>

<Callout Type="CalloutType.Info" Heading="Important">
<strong>This is an info callout</strong>. Example text to show it in action. See <a href="https://docs.blazorbootstrap.com/components/callout">callout documentation</a>.
</Callout>

<Callout Type="CalloutType.Tip" Heading="Important">
<strong>This is an tip callout</strong>. Example text to show it in action. See <a href="https://docs.blazorbootstrap.com/components/callout">callout documentation</a>.
</Callout>

See demo here.

Large text​

Blazor Bootstrap: Callout Component - Large text
<Callout>
<h4>Conveying meaning to assistive technologies</h4>
<p>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 <code>.visually-hidden</code> class.</p>
</Callout>

<Callout Type="CalloutType.Danger">
<h4>Conveying meaning to assistive technologies</h4>
<p>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 <code>.visually-hidden</code> class.</p>
</Callout>

<Callout Type="CalloutType.Warning">
<h4>Conveying meaning to assistive technologies</h4>
<p>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 <code>.visually-hidden</code> class.</p>
</Callout>

<Callout Type="CalloutType.Info">
<h4>Conveying meaning to assistive technologies</h4>
<p>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 <code>.visually-hidden</code> class.</p>
</Callout>

<Callout Type="CalloutType.Tip">
<h4>Conveying meaning to assistive technologies</h4>
<p>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 <code>.visually-hidden</code> class.</p>
</Callout>

See demo here.

Hide heading​

Blazor Bootstrap: Callout Component - Hide heading
<Callout HideHeading="true">
<h4>Conveying meaning to assistive technologies</h4>
<p>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 <code>.visually-hidden</code> class.</p>
</Callout>

<Callout Type="CalloutType.Danger" HideHeading="true">
<h4>Conveying meaning to assistive technologies</h4>
<p>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 <code>.visually-hidden</code> class.</p>
</Callout>

<Callout Type="CalloutType.Warning" HideHeading="true">
<h4>Conveying meaning to assistive technologies</h4>
<p>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 <code>.visually-hidden</code> class.</p>
</Callout>

<Callout Type="CalloutType.Info" HideHeading="true">
<h4>Conveying meaning to assistive technologies</h4>
<p>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 <code>.visually-hidden</code> class.</p>
</Callout>

<Callout Type="CalloutType.Tip" HideHeading="true">
<h4>Conveying meaning to assistive technologies</h4>
<p>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 <code>.visually-hidden</code> class.</p>
</Callout>

See demo here.

More libraries from the team

Free, open-source .NET libraries built by the same team.

UnlimitedPDF

A pure .NET library to create, merge and split PDFs, and convert HTML to PDF.

BlazorExpress.ChartJS

Chart.js charts for Blazor, configured in C#.

BlazorExpress.Bulma

Enterprise-class Blazor components built on the Bulma CSS framework.