# LocationMarker

Decorative square location mark with native current-location ownership.

[All components](https://rickylabs.github.io/netscript/design-system/components/) · [Theme builder](https://rickylabs.github.io/netscript/create/) · [Implementation source](https://github.com/rickylabs/netscript/blob/main/packages/fresh-ui/registry/components/ui/location-marker.tsx)

## Live preview

[Open live location-marker preview](https://rickylabs.github.io/netscript/assets/fresh-ui/preview/?component=location-marker&theme=studio-utility)

## Install

```bash
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.

```tsx
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 |  |

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