

Every state


default


locked


owned


pnpm


copied


focus


key-in-env


locked-key-in-env


narrow


locked-no-links
Props
| Prop | Type | Default | What it does |
|---|---|---|---|
| access | "free" | "locked" | "owned" | "free" | Which state to show; the key is never in the HTML. |
| url | string | – | The registry URL of the item, without the key. |
| keyName | string | – | Environment variable that holds the key (owned). |
| tokenParam | string | null | "token" | Query parameter that carries the key ("token" gives ?token=). Null: the key is not in the URL, so locked shows the plain command and owned the key hint. |
| managers | PackageManager[] | – | The tabs, in order. |
| defaultManager | PackageManager | – | The tab open first, server HTML included. |
| lands | string | null | – | Where the files land. Null: no line about it. |
| badge | string | null | – | Small badge beside the heading, e.g. "Free". |
| signInHref | string | null | – | Locked: sign-in link. Null: none. |
| buyHref | string | null | – | Locked: buy link. Null: none. |
| heading | string | – | Panel heading. |
| managerLabel | string | – | Accessible name of the tab list. |
| lockedText | string | – | Locked: the one line beside the buttons. |
| signInLabel | string | – | Sign-in link text. |
| buyLabel | string | – | Buy link text. |
| keyHint | string | – | Owned: the key line; {key} becomes the variable name. |
| copyLabel | string | – | Copy button name. |
| copiedLabel | string | – | Shown after copying. |
More code
All 6code-06 is in UI ProGet UI Pro, €199


