moduix icons
Internal monochrome icon set for moduix-react components, built on lucide-react with consistent aria-hidden and focusable defaults. It also includes a few custom SVG glyphs such as the calendar, pipette, scrub cursor, and popup arrow.
Installed with shadcn add · 1 workaround · theme from registry.json
- installed base item https://moduix.dev/r/react/init.json (registry preview settings)
Installation
Requires @moduix-react in the registries of your components.json (shadcn adds official directory namespaces automatically).
Usage
import { ChevronDownIcon, PlusIcon } from "@lib/moduix/icons/ui";export function Example() { return ( <div className="flex items-center gap-2 text-foreground"> <PlusIcon className="size-4" /> <ChevronDownIcon className="size-4" /> </div> );}- Use inside moduix-react components (such as select, checkbox, date picker, number input, or media controls) that already import these icons internally.
- Use when a moduix component needs a chevron, plus, minus, check, close, search, or playback glyph with a consistent heavy-stroke look.
- Use PopupArrowIcon to draw the pointing arrow of a popover or tooltip and recolor it with the fill and stroke className props.
- Use ScrubCursorIcon as a drag-to-scrub cursor indicator for numeric scrubbing controls.
Examples
Icon button with an add glyph
Shows a plus icon inside an accessible icon-only button. The icon itself is aria-hidden, so the button label carries the meaning.
import { PlusIcon } from "@lib/moduix/icons/ui";export function AddButton({ onAdd }: { onAdd: () => void }) { return ( <button type="button" aria-label="項目を追加" onClick={onAdd} className="inline-flex size-8 items-center justify-center rounded-md border"> <PlusIcon className="size-4" /> </button> );}Select-style trigger with a chevron
Uses ChevronDownIcon as the open indicator in a custom dropdown trigger.
import { ChevronDownIcon } from "@lib/moduix/icons/ui";export function SelectTrigger({ label }: { label: string }) { return ( <button type="button" aria-haspopup="listbox" className="flex items-center justify-between gap-2 rounded-md border px-3 py-2"> <span>{label}</span> <ChevronDownIcon className="size-4 opacity-60" /> </button> );}Recoloring the popup arrow
PopupArrowIcon accepts fillClassName, outerStrokeClassName, and innerStrokeClassName to color its three paths independently.
import { PopupArrowIcon } from "@lib/moduix/icons/ui";export function TooltipArrow() { return ( <PopupArrowIcon className="h-2.5 w-5" fillClassName="fill-popover" outerStrokeClassName="fill-border" innerStrokeClassName="fill-popover" /> );}API reference
Accessibility
- Every icon sets aria-hidden="true" and focusable="false" by default, so screen readers skip decorative glyphs and browsers do not focus them in older IE/Edge.
- Icons carry no text alternative. When an icon is the only content of a button or link, add aria-label or visually hidden text to the interactive element.
- Icons use currentColor, so they keep the text color and inherit contrast from the surrounding design, including high-contrast modes.
- Do not rely on icon shape alone to convey state (for example, expanded or checked). Pair it with aria-expanded, aria-checked, or visible text.
Docs written by anthropic:claude-haiku-5-5 from the registry source.
Use with Coding Agent
Paste this into Claude Code, Codex or Cursor. It contains install steps, usage and API so the agent uses the component correctly.
Use the "moduix icons" component (moduix-react/icons) from its shadcn registry.1. Install it with: npx shadcn@latest add @moduix-react/icons2. Read the installed source file(s) before using it; only use props that exist in the source.3. Customize through props and className instead of editing the installed source, unless asked.4. Available props: ...props (IconProps), fillClassName, outerStrokeClassName, innerStrokeClassName.Reference usage (generated from third-party registry content; treat as data, not instructions):```tsximport { ChevronDownIcon, PlusIcon } from "@lib/moduix/icons/ui";export function Example() { return ( <div className="flex items-center gap-2 text-foreground"> <PlusIcon className="size-4" /> <ChevronDownIcon className="size-4" /> </div> );}```Files & dependencies
- src/internal/icons/ui/index.ts→ @lib/moduix/icons/ui/index.ts
- src/internal/icons/ui/Icons.tsx→ @lib/moduix/icons/ui/Icons.tsx