This guide provides an overview of all the components and pre-built sections available in Prism UI. Our components are built on top of shadcn/ui, extending its functionality with additional features and pre-built sections.
Page Sections
Hero Section
The Hero section is a key component for landing pages. It comes with several variants:
Key features:
- Responsive design
- Customizable background
- Optional image placement
- Call-to-action buttons
- Animated elements
Features Grid
The Features section displays your product's features in a grid layout:
Key features:
- Responsive grid layout
- Icon support
- Hover animations
- Customizable content
Main Features
The MainFeatures section showcases your primary features with more detail:
Key features:
- Large feature cards
- Image support
- Detailed descriptions
- Interactive elements
Navigation Components
Header
The Header component provides navigation and branding:
Features:
- Responsive mobile menu
- Logo placement
- Navigation links
- Optional call-to-action button
- Dark mode toggle
Footer
The Footer component includes site navigation and information:
Features:
- Multi-column layout
- Social media links
- Newsletter signup
- Copyright information
- Responsive design
Customization
All components can be customized using:
- Tailwind Classes
- Props
- Theme Variables
Component Architecture
Our components follow these principles:
-
Server Components First
- Most components are React Server Components
- Client components are marked with 'use client'
- Optimized for Next.js App Router
-
Accessibility
- ARIA labels
- Keyboard navigation
- Screen reader support
-
Performance
- Lazy loading where appropriate
- Optimized images
- Minimal client-side JavaScript
All components are built on top of shadcn/ui, which means they inherit its accessibility and customization features.
Best Practices
When using Prism UI components:
- Layout Structure
- Responsive Design
- All components are mobile-first
- Use responsive variants for optimal display
- Test on multiple screen sizes
- Performance
- Use Image component for images
- Implement proper loading strategies
- Consider component splitting for large pages
Next Steps
- Check out our Getting Started guide
- Explore the shadcn/ui documentation
- Join our Discord community for support