Styled UI components for DoNotDev
npm install @donotdev/componentsCore easy-to-use components components built on radix-ui primites and our robust css styling system.
Explore all components, their props, and see them in action in our interactive demo application:
Launch Demo Application
``bash`
bun add @donotdev/components
`tsx
import { Button } from '@donotdev/components';
// Simple usage
// With icon and tooltip
variant="outline"
icon={Icon}
tooltip="Help text"
>
Action
`
`tsx
import { Tooltip } from '@donotdev/components';
// Simple usage - props-based, no nesting
`
`tsx
import { Popover } from '@donotdev/components';
// Props-based API
Popover content
`
`tsx
import { Dialog } from '@donotdev/components';
// Props-based API
trigger={}
title="Confirm Action"
description="Are you sure?"
actions={{
cancel: { label: 'Cancel' },
confirm: { label: 'Confirm', onClick: handleConfirm },
}}
>
Key Features
- Radix UI Primitives: Accessible, headless components in
./src/base/
- Props-Based Components: Simple, easy-to-use components in ./src/
- Pure CSS Styling: Highly customizable via CSS variables, no utility classes in JSX
- Type-Safe: Full TypeScript support with comprehensive types
- CSS Tokens Only: All styling based on dndev-*` CSS classes