Feedback

Callout

@xui/callout

A boxed note that draws attention to a piece of text.

Install

pnpm add @xui/callout

Add the barrel to a standalone component's imports:

import { XuiCalloutImports } from '@xui/callout';

@Component({
  imports: [XuiCalloutImports],
  // …
})

Examples

Default

Loading preview…

Without title

Loading preview…

Minimal

Loading preview…

Compact

Loading preview…

API

XuiCallout

componentxui-callout

A boxed note that draws attention to a piece of text.

Variants

AxisOptionsDefaultcolornoneprimarysecondarysuccesserrorwarninginfononeminimaltruefalsefalsecompacttruefalsefalse

Inputs

NameTypeDefaultclassClassValueThe user-defined classes. Merged last so they win over the variant classes.''colorXuiCalloutColorIntent of the callout. Picks the tint, the border and the default icon, and promotes error and warning to role="alert" so they are announced.this.config.colortitlestring | nullOptional heading rendered above the content.nulliconstring | 'none' | nullAn @ng-icons name, or 'none' to suppress the icon the colour would otherwise imply.nullminimalbooleanDrop the tinted fill, keeping only the border — for a callout inside an already-tinted surface.this.config.minimalcompactbooleanTighter padding and smaller text.this.config.compact

Source

libs/ui/callout/xui

xUI 2.0.0 — Apache 2.0 licensed. Built with Angular and Tailwind CSS.