This page as markdown: /note.md · Index for agents: /llms.txt · Everything in one file: /llms-full.txt

Note

Status: stable

Callout / admonition box. Its tone follows the shared status-tone vocabulary (neutral/info/success/warning/destructive), pairing a soft tone fill with a matching leading icon. Optional title.

Keywords: note, callout, admonition, warning, caveat, hint, context

Usage

Use Note for helpful supporting information that should sit near the relevant content — including a caveat or warning attached to a form, a dialog, or a section. It is the in-context callout; Banner is the page-level strip.

Best practices

Props

Name Type Default Description
action { label: string; onClick?: () => void; href?: string } — A single remedy, rendered below the body and aligned to the text column. Deliberately data, not a slot: Note owns the placement, weight, ink and motion, so the action cannot be styled into a button that outweighs the sentence explaining it. Use onClick for an in-place action (renders a button, no glyph) or href for a link (renders an anchor with a trailing chevron) — the chevron means navigate, so it appears only when the action genuinely goes somewhere.
tone "neutral" | "info" | "success" | "warning" | "destructive" "info" Severity tone — drives the border, fill, and leading icon color/name. The shared status-tone vocabulary (STATUS_TONES).
title string — Optional bold lead-in rendered above the body (text-title-sm).
icon string | ReactNode | null — Override the variant glyph: a string swaps the icon name (keeping the tone color), a ReactNode replaces it, null removes it; omit for the variant default.

Variants

Tokens used

foreground, border, muted, muted-foreground, tone-info, tone-warning, success, destructive, destructive-mark, success-mark, tone-warning-mark, tone-info-mark

Motion

Accessibility

Related

Examples

Info

import { Note } from "@sableui/react"

<Note tone="info">Reports refresh every hour.</Note>

With title

import { Note } from "@sableui/react"

<Note tone="warning" title="Low balance">Add credits before your next export.</Note>

Warning with a remedy, inside a dialog

import { Note } from "@sableui/react"

<Note tone="warning" action={{ label: "Unload chat model", onClick: unloadChatModel }}>gemma-4 is holding VRAM — generating now may be slow or fail.</Note>

Custom icon

import { Note } from "@sableui/react"

<Note tone="neutral" icon="lock">Pricing cannot be changed after an order is placed.</Note>