Overview
The Crocante platform provides a comprehensive set of reusable UI components. All components are fully typed with TypeScript and follow consistent design patterns.Button
Flexible button component with multiple variants and loading states.Props
Usage
Features
- Loading State: Displays spinner when
isLoadingis true - Variants: 7 different visual styles
- Active State: Special highlighting for navigation
- Disabled State: Automatic styling for disabled buttons
Input
Versatile input component with validation, icons, and password visibility toggle.Props
Usage
Features
- Password Toggle: Eye icon to show/hide password
- Validation States: Success and error states with icons
- Max Button: Quick fill with maximum value
- Left Icon: Support for icon prefix
- Secondary Label: Additional context below input
Select
Dropdown select component with icon support.Props
Usage
Modal
Flexible modal component with responsive design and portal rendering.Props
Usage
Features
- Portal Rendering: Renders in
document.body - Responsive: Bottom sheet on mobile, centered on desktop
- Backdrop Click: Close on backdrop click (unless blocked)
- Custom Actions: Footer action buttons
- Icons: Title icon and status icon support
Table
Advanced table component with filtering, sorting, and responsive scrolling.Props
Usage
Features
- Responsive Scrolling: Horizontal scroll on mobile with arrow navigation
- Vertical Scrolling: Smooth scrolling with up/down indicators
- Loading State: Skeleton placeholder during data fetch
- Row Click: Interactive rows with hover states
- Cell Formatting: Subtitles, highlights, and icons
Card
Simple card container component.Props
Usage
Tabs
Tab navigation component.Props
Usage
Tooltip
Contextual tooltip component with multiple positions and variants.Props
Usage
Features
- Auto-positioning: Automatically positions to stay in viewport
- Multiple Variants: Different colors for different contexts
- Trigger Options: Hover, click, or focus
- Configurable Delay: Control tooltip show delay
Skeleton
Loading placeholder component.Props
Usage
Next Steps
Custom Hooks
Learn about React hooks
Context Providers
Understand context providers
