dssoca docs

Icon

The inline SVG icon set.

A small, token-sized SVG icon set (stroke icons drawn from a fixed `name` map). Decorative by default; pass `title` to expose an accessible name.

Demo

live · storybook Open in Storybook

Demo loads from http://localhost:6006. Run pnpm storybook for it to render locally.

Usage

svelte
<script>
  import { Icon } from 'dssoca';
</script>

<Icon name="activity" />
<Icon name="settings" title="Settings" />

Props

PropTypeDefaultDescription
nameIconNameRequired. Which glyph to render (e.g. grid, activity, terminal).
size'sm' | 'md' | 'lg'Per-instance size override; inherits the ancestor `data-size-variant` when unset.
pxnumberExplicit pixel size; overrides the size axis.
titlestringAccessible name; when set the icon gets role="img". Omit for decorative icons (aria-hidden).
classstring''Extra class on the root svg.