Skip to main content
NetScriptdocs Search docs ⌘K v0.0.9
Browse documentation

LocationMarker

Decorative square location mark with native current-location ownership.

All components · Theme builder · Implementation source

Live preview

Open live location-marker preview

Install

Shell
netscript ui:add location-marker

Usage and examples

The preview runs this JSX with the installed components. Import any composed primitives from your UI directory.

TypeScript
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.

OwnerPropTypeOptionalDescription
LocationMarkerPropssize"sm" | "md"Yes
LocationMarkerPropsclassstringYes
TypeScript
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.

Search all documentation

Type a term to search the documentation.