Components
Learn the page tabs and start with the most useful primitives.
- - Read the Components Introduction page.
- - Open a Configurator page and test states with keyboard.
Diwa is a framework-agnostic design system built on Web Components and shared CSS tokens. Load once, use anywhere — React, Angular, Vue, Next.js, or plain HTML.
1. Install packages
Install the Diwa component package in your app.
npm install @diwacopilot/components2. Load global tokens and web components
Include generated CSS tokens and the ESM loader in your root layout.
<link rel="stylesheet" href="/stencil/diwa-components.css" />
<Script src="/stencil/diwa-components.esm.js" type="module" strategy="beforeInteractive" />3. Render your first component
Use a Diwa element directly in JSX, HTML, or your framework template.
<diwa-button variant="primary">Save</diwa-button>Learn the page tabs and start with the most useful primitives.
Choose your framework setup path and integration strategy.
Learn tokens, theming, and the interaction contract before customization.
Align design intent with token architecture and component usage.
Track releases, roadmap priorities, and future migration guidance.
Start with these components to cover common product surfaces: actions, forms, feedback, and navigation.