Founding price: $35, then $99 after 23:59 UTC on 4 November, then $99
Get ProAn extended Compose button that shrinks to an icon while the list scrolls down and grows back on the way up, always keeping its name for screen readers. Use this when a phone list screen has one dominant create action that should stay reachable without covering the content.
Derived from this item’s props table, because it declares no controls of its own. This item has no standalone playground, so changes update the code, the share link and the AI prompt.
Use it when a phone list screen has one dominant create action that should stay reachable without covering the content.
Do not use it for screens with several equal actions (use a speed dial) or short screens that do not scroll.
It composes @tealmac/fab, which the CLI installs for you.
import { ComposeFabCollapse } from "@/components/compose-fab-collapse"<div className="grid gap-2">
<ComposeFabCollapse onCompose={() => setCount((n) => n + 1)}>
<ul className="divide-y px-4">
{Array.from({ length: 20 }, (_, i) => (
<li key={i} className="py-3">
Draft {i + 1}
</li>
))}
</ul>
</ComposeFabCollapse>
<p role="status" className="text-sm">
Drafts started: {count}
</p>
</div>| Prop | Type | Default | Description |
|---|---|---|---|
label | string | "Compose" | Name and text of the button. |
onCompose | () => void | required | Called when pressed. |
children | ReactNode | required | The scrolling content. |
aria-label.The pattern ships with a Testing Library test (compose-fab-collapse.test.tsx) that drives it through roles and the keyboard.