@duskmoon-dev/components
v0.3.1
Published
The DuskMoon React component package.
Readme
@duskmoon-dev/components
The DuskMoon React component package.
Installation
bun add @duskmoon-dev/components @duskmoon-dev/core react react-domImport the stylesheet once in your app:
import "@duskmoon-dev/components/styles.css";Features
- React 19 ready: Components and examples target the current React runtime.
- TypeScript first: Public props and helper APIs ship with declarations.
- Modular exports: Import from the root package or from component subpaths.
- DuskMoon styling: Component classes and CSS are backed by
@duskmoon-dev/core.
Usage
import "@duskmoon-dev/components/styles.css";
import { Button } from "@duskmoon-dev/components/button";
export default function MyComponent() {
return <Button>Hello World</Button>;
}Root imports are also supported:
import { Button, DmTable, theme } from "@duskmoon-dev/components";Public Surface
- 71 standard components such as
Button,Table,Modal,Select, andTypography. - 21 DuskMoon workflow components such as
DmLayout,DmSearch,DmTable,DmProTable, andDmToolbar. - 13 infrastructure exports including
theme,version,unstableSetRender,GetProps,GetRef, and DuskMoon theme helpers. - Component subpath exports follow
@duskmoon-dev/components/{component-id}, for example@duskmoon-dev/components/date-picker.
Development
# Build the package
bun run build
# Run tests
bun run test
# Typecheck
bun run typecheck
# Check parity manifest coverage
bun run parity:components