React Shared Components Library System for Forcepoint. Built on Vite.
Library bundler | Vite |
Component visualization | Storybook |
Storybook | 8.0 |
Storybook instance | GitHub Pages |
CSS Framework | TailwindCSS |
Node | 18 |
This section provides a concise overview of the key classes and functions available in our library, aiding developers in understanding and utilizing the provided functionalities effectively.
import type { Config } from 'tailwindcss';
import themePreset from './node_modules/forcepoint-shared-components/dist/tailwind-theme-preset.js';
export default {
presets: [themePreset],
content: ['./src/lib/**/*.{ts,tsx}'],
} satisfies Config;
- Branding
- Breadcrumb
- Button
- Callout
- CTA
- Card 380
- Card Nav Highlight
- Content Image Slider
- Featured Resource - Card
- Featured Resource - List Item
- Footer Menu
- Image
- Language Switcher
- Legal Menu
- Link
- Logo Grid
- Main Menu
- Secondary Menu
- Social Menu
- Typography
This section is intended for developers who want to contribute to the project or explore its internals. If you're interested in enhancing our codebase, fixing bugs, or adding new features, follow the guidelines below to get started.
- Clone the repository
- Run
nvm use
or use a tool such as NVM to automatically switch to the correct Node version - Run
npm install
- Run
npm run dev
to start storybook and the Typescript compiler.
This project uses Yalc for local package publishing and sharing.
- Publish local changes:
yalc-publish
Follow the coding style and guidelines specified in CONTRIBUTING.md to maintain a consistent codebase.
We welcome your feedback! If you encounter any issues, have suggestions, or want to discuss improvements, open an issue or reach out to us.
Happy coding! 🚀