Every premium and members-only resource for $9.99/month, as a no-commitment subscription. See the plans

PalateKit

Menu

Request a resource

Describe the resource you are missing in one sentence. We will email you when it is published.

0 / 280

Unlock PalateKit

Unlock everything

Plan

Paying means accepting our terms of sale.

Secure payment by Stripe. Receipts and invoices sent by email.

Welcome back

Sign in to install, download or save this resource. A free account is enough for free resources.

Toolbar whose height adapts v1.0.0

Use this resource to keep the screen tidy with expandable tools

New

  • 560 downloads
  • 226 likes
  • 155 saves

Free

Install with the CLI

In a terminal, from the folder you want:

npx --yes palatekit@latest install height-expanding-toolbar

First time: connect the CLI with

npx --yes palatekit@latest login

The agent adds a toolbar React (Tailwind) component to your page whose height varies. It also needs a small hook to close on outside click and a class utility function. You adapt the content and style to your project and get a component ready to use.

Mostly picked by

Updated November 2, 2026

Details

Generates with
Your agent's model
Uses
  • React
  • Tailwind CSS
  • react-use-measure
  • motion
  • clsx
  • tailwind-merge
  • lucide-react
Licence
MIT

Similar resources

View all

What you get

  • README.md: usage guide
  • page.mdx: the author's original file
  • toolbar-expandable.tsx: the author's original file

Good fit for

  • Action panel of an app
  • Quick reply bar of a chat
  • Contextual tools of a text editor

Not for

  • A site without React or Tailwind CSS, without adapting it
  • A motion-sensitive audience, without adding prefers-reduced-motion

Tags

  • toolbar
  • height
  • expandable
  • actions
  • react

About

You say

"Add an expandable toolbar at the bottom of my app with three main actions."

Toolbar that grows in height to show more content then folds back.

Component published by ibelick (Motion Primitives) under the MIT license, resource page and guide written by PalateKit.

Show more

Prerequisites

You bring
Your React project with Tailwind CSS and Your colors and texts
Dependencies
React, Tailwind CSS, react-use-measure, motion, clsx, tailwind-merge, and lucide-react

How to use it

  1. Copy toolbar-expandable.tsx into your React project's components folder.
  2. Install the required packages: react-use-measure, motion, clsx, tailwind-merge, lucide-react.
  3. Ask the agent to place the component on the page and match it to your brand.

Content preview

Files

  • app/docs/toolbar-expandable/page.mdx0.9 KB
  • components/core/toolbar-expandable.tsx6.5 KB
  • LICENSE1.1 KB
  • NOTICE-PALATEKIT.md0.4 KB
  • README.md0.9 KB

Origin and licence

Modified by PalateKit

Author
ibelick (Motion Primitives)
Source
github.com/ibelick/motion-primitives/tree/120f64f6ca60348e251f929e9c81f11ccbe45eda/components/core/toolbar-expandable.tsx
Licence
MIT

Notice

Version modifiée de « toolbar-expandable » (ibelick (Motion Primitives), MIT) : traduction française et fiche par PalateKit.

User reviews

–

No ratings yet

Loading reviews…

Delete your review?

Your rating and comment will be removed from the page.

Frequently asked questions

Which packages do I install?

React, Tailwind CSS and react-use-measure, motion, clsx, tailwind-merge, lucide-react.

Does it work without Next.js?

Yes, in any React project with Tailwind CSS; just drop the "use client" directive if your tooling does not support it.