Calm motion: animations on this site only fade, with no movement
Feature flags
Flags with a switch, a note, the rollout share, and the environment
Lets a team turn features on and off for a part of the users, on an admin page. Each flag shows how many users get it while it is on. For one setting with a switch, use the switch.
Basic
new-playerproductionThe redesigned audio player with chapters.
25% of usersai-notesproductionA draft of the notes after each upload.
5% of userslive-roomsstagingRecord with listeners in the room.
Offdark-embedproductionAll users
flagsis a list of flags. Each flag has akeyand aname, and an optionaldescription,rolloutshare from 0 to 100, andenv.v-modelholds which flags are on, by key. A switch emitstogglewith the key and the new state. Send it to your server.- A bar and a line show who gets an on flag: a share such as "25% of users", or "All users" with no rollout. An off flag says "Off".
- Each switch is a switch named by the name of its flag. The list is a region. Change the words with
labelsor a label pack:title,everyone,off, androllout(a function of the share).
Usage
ts
import { BlessFeatureFlags } from "blessing-ui";API
Props
| Name | Type | Default | Description |
|---|---|---|---|
flags* | BlessFlag[] | — | |
labels | Partial<{ title: string; rollout: (pct: number) => string; everyone: string; off: string; }> | — | |
modelValue | Record<string, boolean> | {} | which flags are on, by key |
Events
| Name | Payload | Description |
|---|---|---|
update:modelValue | [value: Record<string, boolean>] | |
toggle | [key: string, on: boolean] |