Sheet

Sheet: A draggable sheet / drawer that slides in from any side and can be dragged away to dismiss — swipe left/right sheets anywhere on touch, top/bottom sheets via the grab handle. Springs back if you let go early. Free MIT React & Next.js source with Motion and Tailwind CSS, live preview, CLI install and docs.

Install Sheet

npx motion-ui-skill add sheet

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

Dependencies

  • clsx
  • lucide-react
  • motion
  • react
  • react-dom
  • tailwind-merge

Source files

Sheet

A draggable sheet / drawer that slides in from any side and can be dragged away to dismiss — swipe left/right sheets anywhere on touch, top/bottom sheets via the grab handle. Springs back if you let go early.

Install

npx motion-ui-skill add sheet

Dependencies

  • clsx
  • lucide-react
  • motion
  • react
  • react-dom
  • tailwind-merge

Usage

"use client";

import { Sheet as Sheet } from "@/components/craft/sheet";

export function Example() {
  return (
    <div className="p-6">
      <Sheet />
    </div>
  );
}

Browse this category