Floating Pill

Floating Pill: Floating rounded pill with a soft drop shadow — light or dark. Pass any children. Nudges down slightly on press. Free MIT React & Next.js source with Motion and Tailwind CSS, live preview, CLI install and docs.

Install Floating Pill

npx motion-ui-skill add soft-pill-button

Components install as source into your project. The interactive page also includes preview, code, documentation and install tabs.

Dependencies

  • clsx
  • react
  • tailwind-merge

Source files

Floating Pill

Floating rounded pill with a soft drop shadow — light or dark. Pass any children. Nudges down slightly on press.

Install

npx motion-ui-skill add soft-pill-button

Dependencies

  • clsx
  • react
  • tailwind-merge

Usage

"use client";

import { SoftPillButton } from "@/components/buttons/soft-pill-button";

export function SoftPillButtonDemo() {
  return (
    <div className="flex items-center justify-center p-6">
      <SoftPillButton />
    </div>
  );
}

API Reference

SoftPillButton

Prop Type Default Required Description
className string — No Additional CSS classes

Browse this category