JSPM

@synu/core

0.1.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 6
  • Score
    100M100P100Q30899F
  • License MIT

Framework-agnostic headless primitives for Synu — state machines, accessibility helpers, and focus management. Zero dependencies.

Package Exports

  • @synu/core

Readme

@synu/core

Framework-agnostic headless primitives for the Synu design system — state machines, accessibility helpers, and focus management. Zero dependencies.

Installation

npm install @synu/core

Or install everything at once: npm install synu

Usage

import {
  createFocusTrap,
  rovingTabIndex,
  generateId,
  createMachine,
} from '@synu/core';

What's Included

  • Focus ManagementcreateFocusTrap, rovingTabIndex, useFocusVisible
  • Accessibility — ARIA attribute helpers, unique ID generation
  • State Machines — Lightweight createMachine for component behavior
  • Controllable State — Unified controlled/uncontrolled state pattern

Why Use This?

@synu/core contains no React, no DOM assumptions, and no CSS. Use it to build your own component library on top of Synu's battle-tested accessibility and state management layer — in React, Vue, Svelte, or vanilla JS.

Documentation

Visit synu.dev for the full documentation.

License

MIT