Swipe a row for actions
Swipe a booking to the left and “Move” and “Cancel” appear underneath. Cancelling folds the row away.
Mobile onlyNew
Install
npx finepieces add swipe-row-actionsOr with the shadcn CLI ›
npx shadcn@latest add https://finepieces.net/r/swipe-row-actions.jsonSwipe a row to the left
example.tsx
import { SwipeRowActions } from "@/components/fine-pieces/swipe-row-actions";
export default function Example() {
return (
<Phone bg="#EFE7DE">
<SwipeRowActions
kicker="Maison Lila"
heading="Your bookings"
rows={[
{ id: "1", title: "Tue 25 Nov", subtitle: "Lash lift · 14:30", image: "/images/salon-1.webp" },
{ id: "2", title: "Fri 5 Dec", subtitle: "Brow lamination · 10:00", image: "/images/salon-2.webp" },
{ id: "3", title: "Sat 13 Dec", subtitle: "BIAB · 11:15", image: "/images/huid-1.webp" },
{ id: "4", title: "Thu 8 Jan", subtitle: "Facial · 16:00", image: "/images/huid-2.webp" },
]}
/>
</Phone>
);
}