0.1.2 • Published 6 months ago
@c-rex/components v0.1.2
C-Rex Components
A collection of reusable React components built on top of @c-rex/ui for the C-Rex application.
Features
- Pre-built components following C-Rex design system
- Built with TypeScript for type safety
- Fully customizable and extensible
- Integration with C-Rex services and utilities
Installation
This package is part of the C-Rex monorepo and comes pre-installed. If you need to install it separately:
npm install @c-rex/componentsAvailable Components
AppSidebar
A navigation sidebar component that supports:
- Nested menu items
- Loading states with skeletons
- Active state indicators
- Collapsible functionality
import { AppSidebar } from '@c-rex/components';
<AppSidebar
data={treeData}
loading={false}
/>Development
Prerequisites
- Node.js 18 or higher
- Access to @c-rex/ui package
- Access to @c-rex/interfaces package
Testing
npm run testStorybook
View and interact with components in isolation:
npm run storybookContributing
- Components should be built using @c-rex/ui as the foundation
- Include TypeScript types
- Add Storybook stories for new components
- Write unit tests for component logic
- Follow the existing component patterns
Dependencies
- @c-rex/ui: Base UI components
- @c-rex/interfaces: Type definitions
- @c-rex/services: API services
- React 18+
License
Internal use only - C-Rex.net