New! PrismUI Components
The better way to build apps fast
A fully customizable component library built on top of shadcn/ui. Beautiful, accessible, and ready for production.
The Hero component provides a flexible and animated way to create hero sections with support for pills, content, and preview sections. Perfect for landing pages, marketing sites, and product showcases.
Examples
With Preview
New! PrismUI Components
The better way to build apps fast
A fully customizable component library built on top of shadcn/ui. Beautiful, accessible, and ready for production.
Give it a click!
In Progress
PrismUI Components
Progress75%
Last updated: 2 hours ago/5 open issues
Usage
Basic Usage
With Pill and Preview
Customization
Custom Animations
Custom Styling
Custom Preview Content
Notes
- Built with Framer Motion for smooth animations
- Responsive design with mobile-first approach
- Customizable content and styling
- TypeScript support with proper types
- SSR compatible with "use client" directive
- Optimized performance with proper memoization
- Supports reduced motion preferences
- ARIA attributes for accessibility
Features
- Smooth animations with spring physics
- Responsive layout
- Customizable pill component
- Flexible content structure
- Optional preview section
- TypeScript support
- SSR compatibility
- Accessibility features
Props
Hero Props
Prop | Type | Description | Default |
---|---|---|---|
pill | HeroPillProps | Configuration for the pill component | - |
content | HeroContentProps | Main content configuration | Required |
preview | React.ReactNode | Optional preview content | - |
HeroPillProps
Prop | Type | Description | Default |
---|---|---|---|
href | string | Link destination | "/docs" |
text | string | Pill text content | Required |
icon | React.ReactNode | Custom icon | <Icons.logo /> |
endIcon | React.ReactNode | Custom end icon | <Icons.chevronRight /> |
HeroContentProps
Prop | Type | Description | Default |
---|---|---|---|
title | string | Main title text | Required |
titleHighlight | string | Highlighted portion of title | - |
description | string | Description text | Required |
primaryAction | ActionProps | Primary button configuration | - |
secondaryAction | ActionProps | Secondary button configuration | - |
ActionProps
Prop | Type | Description | Default |
---|---|---|---|
href | string | Button link destination | Required |
text | string | Button text | Required |
icon | React.ReactNode | Button icon | - |