@drams-design/components
v0.1.0
Published
DRAMS design component library - shadcn-style React components
Downloads
85
Readme
DRAMS Design Component Library
Shadcn-style React component library for ONDC portals.
Installation
pnpm add @drams-design/components @ondc-sdk/sharedComponents
| Component | Description |
|-----------|-------------|
| AddButton | Floating action button |
| AgentChat | AI chat interface |
| DramsButton | Styled button component |
| DramsDropdown | Dropdown menu |
| DramsEmptyState | Empty state placeholder |
| DramsInput | Text input field |
| DramsRadioGroup | Radio button group |
| DramsSelect | Select dropdown |
| DramsSpinner | Loading spinner |
| DramsTabGroup | Tab navigation |
| DramsToggle | Toggle switch |
| FlipCard | Flip card animation |
| PageLayout | Page layout wrapper |
| ProductCard | Product display card |
| RollingSearch | Animated search input |
Usage
import { DramsButton, DramsInput } from '@drams-design/components';
function MyComponent() {
return (
<div>
<DramsInput placeholder="Enter text..." />
<DramsButton variant="primary">Click me</DramsButton>
</div>
);
}Development
# Install dependencies
pnpm install
# Build
pnpm build
# Watch mode
pnpm devDesign Tokens
Uses design tokens from @ondc-sdk/shared/design-system.
