# StoryRing

> A picture in a ring that says whether there is a story to watch: a bright ring for one not yet seen, a thin quiet one once it has been, and a gap between ring and picture so it reads at any size.

```ts
import { StoryRing } from "@sdxc/ui/video";
```

Renders the ring around its picture, its size set on the element itself so every ring shares
one set of rules and the seen state always wins. The unseen ring paints `--ui-story-ring`, the brand's
solid colour unless a page names a gradient; the seen ring paints the quiet border colour.

## Examples

```tsx
<StoryRing seen={person.seen}><Avatar src={person.photo} alt="" /></StoryRing>
```

## Props

| Prop | Type | Description |
| --- | --- | --- |
| `children` | `RemixNode` | The picture inside the ring: an avatar, a drawn cover. |
| `seen?` | `boolean` | Whether every story behind it has been seen, which quiets the ring. Default: `false`. |
| `size?` | `number \| string` | The ring's outer size in rem, or a CSS length, such as a custom property a page changes with its width. Default: `4`. |

Also accepts everything in `Omit<TagProps<"span">, "children">`.

