Documentation
Learn how to integrate and customize CodeHut UI components in your projects
Quick Links
Installation
Get started with CodeHut UI components
Install the component library using your preferred package manager:
BASH
# Install via npm
npm install @codehut/ui-components
# Install via yarn
yarn add @codehut/ui-components
# Install via pnpm
pnpm add @codehut/ui-componentsNote: Some components require a subscription for access. Free tier includes basic components and previews.
Basic Usage
How to use components in your React application
Import and use components in your React components:
JAVASCRIPT
1 2 3 4 5 6 7 8 9 10import { LoadingSpinner, Button } from '@codehut/ui-components'; function App() { return ( <div> <LoadingSpinner variant="code-matrix" size="lg" /> <Button variant="primary">Get Started</Button> </div> ); }
Theming & Customization
Customize components to match your design system
Customize the color scheme by extending your Tailwind CSS configuration:
JAVASCRIPT
1 2 3 4 5 6 7 8 9 10 11 12 13 14// tailwind.config.js module.exports = { theme: { extend: { colors: { primary: { 50: '#f0f9ff', 500: '#3b82f6', 900: '#1e3a8a', } } } } }
Component Reference
Complete list of available components and their props
Loading Spinner
FeedbackTech-themed loading animations with multiple variants
Props:
variantsizemessageclassName
Advanced Button
InputEnhanced button component with loading states and icons
Props:
variantsizeloadingiconchildren
Data Table
DisplayFully featured table with sorting, filtering, and pagination
Props:
datacolumnssortablefilterablepageSize
Form Builder
InputDrag-and-drop form builder with validation
Props:
schemaonSubmitvalidationtheme