Playground GitHub npm

Pricing

Three-tier pricing cards with a highlighted plan. Composed block.

block block

Preview

Installation

npx slintcn@latest add pricing

Usage

import { Pricing } from "slintcn/blocks/pricing.slint";

Pricing { chosen: 1; pick(i) => { /* … */ } }

Properties

chosen in-out int

Two-way; index of the highlighted tier.

pick callback (int)

Fired when a tier's CTA is pressed; argument is the tier index.

Dependencies

cardbuttonbadgeseparator

Installed automatically as transitive dependencies of slintcn add pricing.