npm install @idyeah/diya
GitHub
Appearance
Color scheme

Menu

Get code

Three steps. The first two happen once per app.

Step 1: Install

Terminal, in your app’s folder
npm install @idyeah/diya

Once per app. Every component and pattern is in this one package.

Working in Claude Code or Cursor? Connect your editor once and it fetches this for you.

No app yet? npm create diya@latest sets up Next.js or Vite with the styles and provider already in place. Then skip to step 3.

Step 2: Add the styles and provider

Once, at your app’s root: app/layout.tsx in Next.js, src/main.tsx in Vite. DIYA Sans comes with it.

Root layout or entry
import '@idyeah/diya/styles.css'
import { DiyaProvider } from '@idyeah/diya'

<DiyaProvider theme="dark">
  {children}
</DiyaProvider>

theme="dark" matches the catalog as you’re viewing it. theme="system" follows each visitor’s light or dark setting instead.

Get theme

Your brand as one CSS file and a few props.

Brand
AaAaNeutral (DIYA default)
Font
DIYA Sans
Corners · Elevation
Soft · Soft
Control height · Fields
Default · Auto
Glass
Off
Motion
Match device
Status colors
DIYA defaults

Step 1: Save the theme file

diya-theme.css · 6 lines
/* diya-theme.css, made in the DIYA catalog.
   Import it after '@idyeah/diya/styles.css'. Public tokens only.
   Brand: Neutral (DIYA default). */

/* No color, corner or elevation changes: DIYA's defaults apply. */

Public tokens only: the names DIYA promises not to rename in 1.x.

Step 2: Import it after DIYA’s styles

Root layout or entry
import '@idyeah/diya/styles.css'
import './diya-theme.css'

Order matters. The theme goes second so it wins.

Type
Options
State

Sample projects

Sample projects
NameStatusUpdated
AvyraIn review2026-10-14
KelmioReady2026-10-13
NuvioIn progress2026-10-12

File details

Rename project

Delete Nuvio?

This removes only the local sample record.

Using Menu

A button that opens a list of actions, links, checkboxes or radio choices, with arrow-key and typeahead navigation; className, style, other attributes and the ref go to the trigger.

A Markdown brief for Claude, Cursor or v0: install, setup, props and a complete example.

When to use

For a short list of actions or options behind one button: row actions, sort order, visible columns.

Navigation between pages? Links. A choice inside a form? Select.

Accessibility

Follows the ARIA menu button pattern: arrows and typeahead move through items, Escape closes and returns focus to the button.

Props

import { Menu } from '@idyeah/diya'Stable since 1.0.0

itemsRequiredMenuItem[]

The menu's items, in order.

labelRequiredstring

The trigger button's visible text, or only its accessible name when triggerIcon is set; also names the menu.

disabledboolean

Disables the trigger.

Default false

onOpenChange(open: boolean) => void

Called with the next open state whenever the panel opens or closes.

openboolean

Whether the panel is open; leave it out to let the trigger manage it.

triggerReactElement<any, string | React.JSXElementConstructor<any>>

Your own trigger element, such as <Button iconOnly aria-label="More">…</Button>; DIYA wires its click, keys and ARIA. Defaults to a DIYA Button showing label.

triggerIconReactNode

Shows this icon as an icon-only trigger instead of the label text.

Also takes every native <button> attribute, such as name, id or data-*.