tristan-ui
v0.4.66
Published
A modern React component library and design system
Maintainers
Readme
🎨 Tristan Design System
A modern React component library and design system built with TypeScript and SCSS.
🚀 Requirements
- React: >=18.0.0
- React DOM: >=18.0.0
- React Router DOM: >=6.0.0 <8.0.0 (supports both v6 and v7)
📦 Installation
npm install tristan-uiNote: Make sure you have React Router DOM installed as a peer dependency:
npm install react-router-dom🔄 React Router Compatibility
This library supports both React Router v6 and v7. The navigation components (TristanNavLink, etc.) include automatic fallback mechanisms to ensure compatibility across different router versions.
If you encounter any router context issues, the components will gracefully fall back to basic navigation functionality while logging helpful warnings.
🎯 Usage
import { TristanNavLink, TopNav, Button } from 'tristan-ui';
import 'tristan-ui/style.css';
function App() {
return (
<TopNav
left={[<Logo />]}
right={[
<TristanNavLink to="/" name="Home" />,
<TristanNavLink to="/about" name="About" />
]}
/>
);
}📚 Documentation
For detailed component documentation and examples, please visit our documentation site.
