dussy-components
v1.3.0
Published
Reusable React UI and higher-level components for financial and form-based applications.
Downloads
12
Maintainers
Readme
Dussy Components
A collection of reusable React UI components and higher-level components for financial and form-based applications.
Installation
npm install dussy-componentsUsage
Basic Import
import { FinancialCard, ProgressCard, FormBox } from 'dussy-components';
function App() {
return (
<div>
<FinancialCard
title="Revenue"
amount="$1,234.56"
change="+12.5%"
changeType="positive"
/>
<ProgressCard
title="Progress"
progress={75}
total={100}
/>
<FormBox>
{/* Your form content */}
</FormBox>
</div>
);
}Using the CLI (shadcn/ui style)
You can use the CLI to add components to your project:
# Install the package first
npm install dussy-components
# Add specific components
npx dussy-components@latest add form-box
npx dussy-components@latest add financial-card
npx dussy-components@latest add progress-cardThis will create example component files in your src/components/ui/ directory.
Available Components
UI Components
Button- Customizable button componentCard- Card container componentCheckbox- Checkbox input componentDialog- Modal dialog componentInput- Text input componentLabel- Form label componentRadioGroup- Radio button group componentSelect- Dropdown select componentSeparator- Visual separator componentTextarea- Multi-line text input componentAccordion- Collapsible content componentSymbolInputLeft- Input with left symbolSymbolInputRight- Input with right symbol
Higher-Level Components
FinancialCard- Financial data display cardProgressCard- Progress tracking cardCircularProgress- Circular progress indicatorFormBox- Form container componentFormBlock- Form section blockFormSection- Form section component
Dependencies
This library requires the following peer dependencies:
- React 19+
- React DOM 19+
- Tailwind CSS
- Radix UI components
- Lucide React (for icons)
- React Hook Form
- Zod (for validation)
Development
# Install dependencies
npm install
# Start development server
npm run dev
# Build for production
npm run build
# Build CLI only
npm run build:cliLicense
MIT
