Skip to content
Shamar

Callout

Callout highlights guidance or warnings inside a form or infolist schema.

import { Callout, Section, TextInput } from '@shamar/core'
Section.make('Checkout').schema([
Callout.make('Billing note')
.warning()
.description('Charges apply after the trial ends.')
.icon('bell'),
TextInput.make('plan').required(),
])

When there are no nested children, .description() is also used as the callout body.

Callout

MethodDescription
Callout.make(title?)Defaults to info status.
.info() / .success() / .warning() / .danger()Status tone.
.icon(name)Optional icon.
.description(text)Body text (also fills content when empty).
.schema([...])Optional nested children below the body.