The one sentence a person needs about a protection, large, with whether it is running. Heads a panel or a page.
The title says what IS, not what the feature is called: "Privacy protection is on: High" rather than "Privacy". A person checking whether they are protected should not have to interpret a label.
live pairs a dot with text. The dot alone would be decoration, and a safeguard that signals only in colour is a safeguard some readers cannot verify.
import { ProtectionStatus } from '@redrob-labs/ui';
| Prop | Type | Notes |
|---|---|---|
title required |
React.ReactNode |
|
icon |
React.ReactNode |
|
tone |
'safe' | 'warn' | 'brand' | 'plain' |
safe on, warn off or degraded, brand a feature in force, plain neutral. |
size |
'sm' | 'md' | 'lg' |
sm for a composer popover where a chip already names the panel; lg to head a settings page. Default md. |
live |
string |
Text beside a live dot: what is running right now. |
as |
keyof React.JSX.IntrinsicElements |
Element for the title, when the card opens a section. |
className |
string |
|
children |
React.ReactNode |