Feedback

Callout

Inline static note or aside that highlights supporting commentary alongside body content without claiming live-region urgency.

import { Callout } from '@lostgradient/cinder';
feedbacknotice
01

Overview

Reference usage

Inline highlight block for tips, warnings, or contextual notes within content flow.

Usage

svelte
<script lang="ts">
  import { Callout } from '@lostgradient/cinder';
</script>

<Callout title="Note">
  This setting applies to all projects in your organization and cannot be overridden per-project.
</Callout>

Neutral note with an action

variant="neutral" is a plain note that is not a status: it takes the neutral tokens instead of a status tint, and its row is vertically centred, so an icon and an action line up with the text however many lines it wraps to. Use it to explain a state, with one link or button at the inline end:

svelte
<script lang="ts">
  import { Callout, Link } from '@lostgradient/cinder';
  import { Info } from '@lucide/svelte';
</script>

<Callout variant="neutral" semantic="note">
  {#snippet icon()}
    <Info size={16} />
  {/snippet}
  Gave up after 5 attempts. The check was never met. Open the last attempt to see what the agent produced,
  or start again with the same prompt and check.
  {#snippet action()}
    <Link href="/goals/draft-release-notes/attempts/5">Open attempt 5</Link>
  {/snippet}
</Callout>
Live preview

Basic callout

02

When to use

Use when
  • Drawing attention to tangential information nested inside prose, documentation, or article content.
  • Calling out a tip, note, or caveat that belongs next to the content it qualifies.
  • Explaining a state in a quiet neutral note that is not a problem, with one link or button at its end.
Avoid when
  • Announcing a transient or urgent status — use alert or banner instead.
  • Communicating a page-wide system message — use banner so it reads as a landmark region.
03

Examples

Basic callout

Inline aside highlighting a tip next to body content.

Neutral note with an action

A plain note that explains a state, with an icon and one link at the inline end.

Callout variants

All four semantic variant styles for inline callouts.

04

Props

Props for callout
Name
Type
Default
Description
variant 'neutral''info''success''warning''danger' 'info' Visual + semantic variant. Default 'info'; 'neutral' is a plain note with no status tint.
semantic 'aside' | 'note' 'aside' Root semantics. Default 'aside'; use 'note' for static note semantics without a complementary landmark.
title text Optional title rendered as a <p class="cinder-callout__title">. Rendered as a paragraph rather than a heading element so the callout does not inject an entry into the document outline. If a callout genuinely participates in the outline (e.g. it titles a standalone section), wrap it in a <section> with its own heading rather than promoting this prop to <h*>. When supplied and no aria-label or aria-labelledby is passed on rest props, the title also becomes the aria-label of the root element so the landmark or note has an accessible name.
icon snippet Optional decorative icon rendered inside an aria-hidden wrapper. The icon is a second visual channel alongside variant color — it helps satisfy WCAG 1.4.1 (Use of Color) by ensuring the variant is conveyed by more than color alone. The accessible meaning still lives in title and/or children; the icon must not be the only carrier of information.
action snippet Optional action rendered at the inline end of the row, usually one Link or Button, such as "Open attempt 5". It is interactive content, so it is the one part of a callout a person can act on; the callout itself stays static.
children required snippet Callout body content.