48 Pro components and page blocks

Get Pro

Cart Flight

New

Preview

Customize

Duration0.70s
Arc96px
Tilt14°
Trail1
circle
Radius14px
USD

Usage

import { CartFlight } from "@/components/uibrik/cart-flight/cart-flight";

<CartFlight />

Installation

npx shadcn@latest add https://uibrik.com/r/cart-flight.json
Adds the files to components/uibrik/cart-flight and installs @tabler/icons-react and motion. With the @uibrik namespace set up: npx shadcn@latest add @uibrik/cart-flight.

Props

CartFlight
duration
Type number
0.7
Seconds a photo spends in the air.
arc
Type number
96
How far the flight bows upward. It flattens on its own if it would leave the shop.
tilt
Type number
14
Most the photo leans into its turn.
trail
Type number
1
Fading copies that follow the photo.
shape
Type "circle" | "square"
"circle"
Shape the photo arrives in.
anticipation
Type boolean
true
Lift the photo off its card before it flies.
motionBlur
Type boolean
true
Blur the photo slightly at its fastest.
flyBack
Type boolean
true
Fly removed items back to their card.
filters
Type boolean
true
Show filter chips built from the products' tags.
radius
Type number
14
Corner radius of the product photos.
currency
Type "USD" | "EUR" | "GBP" | "INR" | "JPY"
"USD"
ISO 4217 code used to format prices.
products
Type { id: string; title: string; price: number; image: string; alt?: string; tag?: string }[]
SAMPLE_PRODUCTS
Products in the grid. Tags become the filter chips.
locale
Type string
"en-US"
Locale used to format prices.
onCheckout
Type (lines: { product, quantity }[]) => void
–
Called with every line when Checkout is pressed.
className
Type string
–
Classes for the wrapper. It fills its parent; the drawer opens inside it.