Settings
Layer access radio group
Who can see a layer — public, link, members, a named tier, or invite only.
Available
Needs mock props
Dual breakpoint
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.
Layer access radio group
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 |
|---|---|---|---|
value* | AccessValue | — | Currently selected access option id — one of the built-ins, or a tier id. |
onChange* | (value: AccessValue) => void | — | Undocumented — add TSDoc to the prop in the library. |
spaceName* | string | — | Space name, interpolated into the "Members of …" option. |
spaceIconSrc | string | PLACEHOLDER_SPACE_ICON | Space avatar for the "Members of {space}" row. Defaults to an inline placeholder. |
tiers | AccessTierOption[] | [] | Access tiers to offer between "Members of {space}" and "By invite only". Supplied by the caller — this control reads no tier data itself. |
defaultOpen | boolean | — | Start with the list open — lets a story render the options statically. |
Reference
Transcribed from the component audit. If this disagrees with the source, the source is right.
- Source
src/components/settings/LayerAccessRadioGroup.tsx- Portability
- Needs its app dependencies replaced by props before it renders in isolation.
- Responsive
- Carries a load-bearing
max-md:/md:pair. Sign off at both viewports — see the rule. - Notes
- Takes the tier list as a prop. Needs the space-switcher tile classes.