signaturestrata original
NodeMap
Main nodes on a ring; child nodes surface around them on hover, tap or focus.
strata
hover, tap or tab to a node to bring its layer upThe system.
strata
01 / usage
import { NodeMap } from '@mikestecker/strata'
import { NodeMap } from '@mikestecker/strata'
const nodes = [
{
id: 'tokens',
label: 'tokens',
description: 'Values stored as data.',
children: ['color', 'type', 'space', 'motion'],
},
{
id: 'components',
label: 'components',
description: 'Styled UI SDK parts.',
children: ['tabs', 'dialog', 'select', 'menu'],
},
{
id: 'agents',
label: 'agents',
description: 'createAgent reads and acts on them.',
children: ['snapshot', 'act', 'query'],
},
{
id: 'docs',
label: 'docs',
description: 'This site, and llms.txt.',
children: ['previews', 'source', 'registry'],
},
]
export default function NodeMapDemo() {
return (
<NodeMap
center={{ label: 'strata', description: 'The system.' }}
nodes={nodes}
links={[['tokens', 'components']]}
/>
)
}02 / parts
NodeMap
03 / keyboard
- Main nodes are buttons: Tab to one to surface its children.
- The side card announces changes politely.