Settings
Access tier card
An editable membership tier card covering its name, description, pricing model, optional free trial, and tags, used by the space access settings screen.
Available
Ports as-is
Examples
Rendered live from the maintained Storybook story. Lantern stores only the story id and embeds Storybook rather than duplicating the component or its demo.
Access tier card
Rendered live from Storybook
Storybook must be running for this to load — bun run start:storybook from the monorepo root, or set NEXT_PUBLIC_STORYBOOK_URL to a deployed instance.
Props
The component's public API, read from its TypeScript source. Descriptions come from TSDoc on the prop, so this table cannot drift from the component.
| Prop | Type | Default | Description |
|---|---|---|---|
tier* | AccessTier | — | Undocumented — add TSDoc to the prop in the library. |
index* | number | — | Zero-based position. Only used for the "Tier N" caption. |
isDefault* | boolean | — | Adds the "· Default" caption and disables "Make default". |
onUpdate | (id: string, updates: Partial<Omit<AccessTier, "id">>) => void | — | Undocumented — add TSDoc to the prop in the library. |
onRemove | (id: string) => void | — | Undocumented — add TSDoc to the prop in the library. |
onMakeDefault | (id: string) => void | — | Undocumented — add TSDoc to the prop in the library. |
onCopyLink | (tier: AccessTier, url: string) => void | — | Fired by "Copy link". The caller owns the clipboard and the toast. |
tierLinkBase | string | "https://behindthescenes.com" | Prefix for the link handed to `onCopyLink`. The app used `window.location.origin`. |
maxTags | number | 5 | Cap on the tag field. |
initialBlockedDialogOpen | boolean | false | Renders the "can't remove" AlertDialog on mount — makes the blocked state a static story. |
className | string | — | Undocumented — add TSDoc to the prop in the library. |
Reference
Transcribed from the component audit. If this disagrees with the source, the source is right.
- Source
src/components/settings/AccessTierCard.tsx- Portability
- Copies across unchanged — only the utils import path moves.
- Notes
- Stack up to five per space to let creators configure free, one-time, or subscription tiers; the pricing fields and free-trial block mount or unmount based on the selected model, and removal is blocked with an explanatory dialog whenever the tier still has members.