Patterns

Live playground

Variant
Announce

Preview

Heads upYour trial ends in three days.

Code

<volt-alert variant="info">
  <volt-alert-title>Heads up</volt-alert-title>
  <volt-alert-description>Your trial ends in three days.</volt-alert-description>
  <volt-button slot="action" size="sm" variant="outline">Upgrade</volt-button>
</volt-alert>

Built from

Install with the CLI

Not on npm yet: volt composition needs @voltui/cli 1.4.0 or later. The latest version on npm when this page was built was 1.3.3.
Stable id recipes/live-playground. One command writes every file below and, in CLI-copy mode, the components it imports; components you customised are kept as they are.
npx @voltui/cli composition add recipes/live-playground --mode=package
Mode package · backend ng-primitives · needs @voltui/cli 1.4.0 or later.Files go to src/app/<folder>/ and copied components to src/app/ui/; choose others with --path and --ui. Add --dry-run to see every file first.Add --track to record what was installed; later, volt composition diff recipes/live-playground shows what you or the reference changed without touching your files.

Usage

Install via CLI:pnpm add @voltui/components lumen-icons
TypeScript
Loading editor…