@rssb/ui v0.0.26
RSSB UI Component Library
An internal, TypeScript-based React component library for the Rwanda Social Security Board (RSSB) organization. Built with modern tools and atomic design principles to ensure consistency across all RSSB digital products.
š Overview
This private component library serves as the foundation for all RSSB web applications, ensuring a consistent user experience and accelerating development across teams.
Key Features
- š¢ Official RSSB design system implementation
- š¦ Built with TypeScript for enhanced reliability
- ā”ļø Powered by Vite and SWC for optimal performance
- š Comprehensive Storybook documentation
- šØ Structured using atomic design principles
šļø Component Structure
Following atomic design principles for scalable architecture:
src/
āāā components/
āāā atoms/ # Basic RSSB UI elements (Button, Input, etc.)
āāā molecules/ # Simple component combinations
āāā organisms/ # Complex RSSB-specific UI components
āāā templates/ # RSSB application layout templates
āāā pages/ # Complete page implementationsš Getting Started
For RSSB Developers
- Ensure you have access to the RSSB npm registry
- Set up your npm configuration with the appropriate credentials
# Authenticate with the RSSB registry
npm login --registry=https://rssb-registry.com
# Install the library in your project
yarn add @rssb/ui-componentsFor Library Developers
# Clone the repository from RSSB's internal GitLab
git clone https://gitlab.rssb.rw/frontend/ui-components.git
# Navigate to the project directory
cd ui-components
# Install dependencies
yarn installš¦ Usage in RSSB Applications
import { Button } from "@rssb/ui-components";
function LoginForm() {
return (
<Button variant="primary" onClick={() => console.log("Logged in")}>
Login
</Button>
);
}š ļø Available Scripts
yarn dev- Starts Storybook for component developmentyarn build- Builds the library for productionyarn test- Runs the test suiteyarn lint- Runs ESLint for code quality
š Project Structure
rssb-ui/
āāā .storybook/ # Storybook configuration
āāā src/
ā āāā components/ # RSSB React components
ā āāā utils/ # Utility functions
ā āāā index.ts # Main entry point
āāā stories/ # Storybook stories
āāā tests/ # Test files
āāā [Config files...] # Various configuration filesš Documentation
Internal documentation is available through Storybook and our internal developer portal:
Storybook (for component exploration):
- Local: Start with
yarn storybookand visithttp://localhost:6006
- Local: Start with
Developer Portal:
- Comming soon!
š¤ Contributing
As an internal RSSB project, contributions are welcome from all RSSB team members:
- Create a new branch from
develop - Make your changes following our coding standards
- Update tests and documentation
- Submit a merge request to
develop
š Version Control & Updates
We use semantic versioning for releases.
š„ Team
- RSSB Front-ent Team
š Changelog
See CHANGELOG.md for a list of changes and updates.
Copyright Ā© 2024 Rwanda Social Security Board (RSSB). All rights reserved.