Gravity Tags

Gravity Tags

A physics playground for tags — chips rain in from above, land as capsule bodies, pile up, and can be grabbed and thrown with real inertia.

Installation

▸ Run the following command

npx shadcn@latest add https://www.mellowui.com/r/gravity-tags.json

▸ Or install manually

  1. Copy the source from the Code tab above.
  2. Place it at components/mellow/gravity-tags.tsx
  3. Import and use.

API Reference

PropTypeDefaultDescription
tagsstring[]The tag labels to drop in.
accentTagsstring[][]Tags rendered in the accent color.
heightnumber360Playground height in px.
gravitynumber1800Gravity in px/s².
classNamestringAdditional CSS classes.