dlv-react-console-lib
v1.0.1
Published
Delhivery React Console UI Library with Ant Design and Tailwind CSS integration for building modern admin dashboards
Maintainers
Readme
DLV React Console Library
A comprehensive React component library with Ant Design and Tailwind CSS integration for building modern admin dashboards and console applications.
🚀 Quick Installation
npm install dlv-react-console-libThat's it! The library will automatically install the required dependencies with fixed versions:
[email protected][email protected]@tailwindcss/forms@^0.5.7tailwind-scrollbar-hide@^1.1.7
📦 Manual Installation
If automatic installation fails, install manually:
npm install dlv-react-console-lib
npm install [email protected]
npm install -D [email protected] [email protected] [email protected] @tailwindcss/forms@^0.5.7 tailwind-scrollbar-hide@^1.1.7🎯 Usage
1. Import CSS
import "dlv-react-console-lib/dist/tailwind.css";2. Add Tailwind to your CSS
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&display=swap');
@tailwind base;
@tailwind components;
@tailwind utilities;3. Use Components
import React from 'react';
import {
DlvAntButton,
DlvButton,
DlvReactConsoleUI,
usePathnameDlv,
useRouterDlv
} from 'dlv-react-console-lib';
function App() {
return (
<div>
{/* Ant Design Wrapper Components */}
<DlvAntButton type="primary" onClick={() => console.log('Clicked!')}>
Ant Design Button
</DlvAntButton>
{/* Custom Components */}
<DlvButton variant="primary" size="large">
Custom Button
</DlvButton>
{/* Console UI */}
<DlvReactConsoleUI />
</div>
);
}📋 Available Components
Ant Design Wrapper Components
DlvAntButton- Ant Design Button wrapper with custom styling- More components can be added following the established pattern
Custom Components
DlvButton- Custom button component with multiple variants- More components can be added following the established pattern
Layout Components
DlvReactConsoleUI- Main console UI componentContent- Content wrapper componentHeader- Header componentLeftSideMenu- Left sidebar menu componentTopMenu- Top navigation menu componentUserProfile- User profile component
Hooks & Utilities
usePathnameDlv- Custom routing hookuseRouterDlv- Custom router hookuseApi- API integration hookuseDlvEnv- Environment configuration hook
🎨 Styling Features
- Tailwind CSS with custom theme configuration
- Inter Font integration for modern typography
- Custom color palette (primary, red-primary, white, black)
- Custom animations (fade-in, slide-up, scale-in)
- Responsive design utilities
- Ant Design component integration
🔧 Development
# Install dependencies
npm install
# Build library
npm run build:all
# Watch for changes
npm run start📄 License
MIT
🤝 Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
📞 Support
For support, email [email protected] or create an issue on GitHub.
