Getting Started
This guide covers common usage patterns for the Openlane UI component library. All examples use real components from the@repo/ui package.
Basic Components
Button Component
The Button component supports multiple variants, sizes, icons, and loading states:Input Component
The Input component supports prefixes, suffixes, and icons:Alert Component
Compose alerts with title and description:Badge Component
Display status indicators and labels:Form Components
React Hook Form Integration
The library provides seamless integration with React Hook Form:Layout Components
Tabs Component
Organize content with tabs:Dialog Component
Create modal dialogs:Data Display Components
Data Table
Build powerful data tables with TanStack Table:Feedback Components
Toast Notifications
Show toast notifications using Sonner:Tooltip
Add tooltips to provide additional context:Utility Functions
cn() - Class Name Utility
Merge Tailwind classes intelligently:Best Practices
Import Only What You Need
Import Only What You Need
Use individual imports to enable tree-shaking:
Use TypeScript
Use TypeScript
Take advantage of built-in TypeScript types:
Leverage Composition
Leverage Composition
Use component composition for flexibility:
Extend with Tailwind
Extend with Tailwind
Add custom styling with Tailwind classes:
Next Steps
Theming
Customize colors and design tokens
Storybook
Explore all components interactively
Component Overview
View all available components
Installation
Review installation steps