Origin UI

Hero Pill

Heroes 99

About

A pill-shaped component for highlighting key features or messages with optional icons and animations. Features - Optional leading icon - Smooth entrance animation - Dark mode support - Customizable styles and animations - Hover effects

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Hero Pill to your project and fits it to your theme.

Code

How Hero Pill is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import { HeroPill, StarIcon } from "@/components/ui/hero-pill"

function HeroPillDemo() {
  return (
    <div className="space-y-4">

      <HeroPill 
        icon={<StarIcon />}
        text="New releases every week"
      />
      
      <HeroPill 
        icon={
          <svg 
            xmlns="http://www.w3.org/2000/svg" 
            width="12" 
            height="12" 
            viewBox="0 0 24 24" 
            className="fill-zinc-500"
          >
            <path d="M12 2L1 21h22L12 2z" />
          </svg>
        }
        text="Custom Icon Pill"
      />
      
    </div>
  )
}

export { HeroPillDemo }

More by Origin UI

View all
  • Dialog

    Dialog

    1.2K
  • Avatar

    Avatar

    973
  • useImageUpload

    useImageUpload

    932
  • usePagination

    usePagination

    628
  • Popover

    Popover

    384
  • Button

    Button

    367
  • Command

    Command

    328
  • Calendar [React Day Picker]

    Calendar [React Day Picker]

    265

More in Heroes

View all
  • SaaS Template

    SaaS Template

    2.5K
  • Hero

    Hero

    1.3K
  • Responsive Hero Banner

    Responsive Hero Banner

    2K
  • Centered Hero with Image Fan

    Centered Hero with Image Fan

    968
  • Editorial Collage Hero

    Editorial Collage Hero

    458
  • Minimalist Hero Fashion

    Minimalist Hero Fashion

    296
  • Aero Hero-3

    Aero Hero-3

    576
  • Glass Fold

    Glass Fold

    277