LocationMarker
Decorative square location mark with native current-location ownership.
All components · Theme builder · Implementation source
Live preview
Open live location-marker preview
Install
netscript ui:add location-markerUsage and examples
The preview runs this JSX with the installed components. Import any composed primitives from your UI directory.
import { useState } from 'preact/hooks';
import { LocationMarker } from '@app/components/ui/location-marker.tsx';
export function Example() {
const [value, setValue] = useState('standard');
const [open, setOpen] = useState(false);
const [notice, report] = useState('');
return (<><div><span>Current section <LocationMarker /></span></div><p role="status">{notice}</p></>);
}Props
Generated from native deno doc --json --private over the shipped implementation. Compound component props retain their owning interface; native attributes pass through where declared.
| Owner | Prop | Type | Optional | Description |
|---|---|---|---|---|
LocationMarkerProps | size | "sm" | "md" | Yes | |
LocationMarkerProps | class | string | Yes |
LocationMarkerProps extends Omit<JSX.HTMLAttributes<HTMLSpanElement>, "size" | "class" | "tabIndex" | "children">Keyboard
Presentation component; no component-specific keyboard interactions.
Tokens
Semantic contract roles: deco/marker.
CSS custom properties referenced directly: --ns-fg, --ns-space-1, --ns-space-1-5, --ns-studio-signal-marker.
Contract and compatibility
Accessibility pattern: noninteractive presentation
- Decorative aria-hidden square; parent owns aria-current. No focus stop. Existing Studio marker token with foreground fallback; no token changes.
Design contract values marked planned are not implementation props. The props above describe what ships today.