uibrik

Feature Morph

Preview

Customize

Visible7
Duration3200ms

Usage

import { FeatureMorph } from "@/components/uibrik/feature-morph/feature-morph";

<FeatureMorph />

Installation

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

Props

FeatureMorph
visible
Type number
7
Items in the row, the open card included. Fewer show when they don't fit, or when there are fewer features.
autoplay
Type boolean
true
Turn on its own. Holds while pointed at or focused, and with reduced motion.
duration
Type number
3200
How long each feature stays open while playing.
features
Type { title: string; description: string; icon: ReactNode; color?: string; cta?: { label: string; href?: string; onClick?: () => void } }[]
7 sample features
Features in order. <Duotone icon={…} fill={…} /> pairs a Tabler outline icon with its filled twin; color tints it while open.
label
Type string
"Features"
Names the row for screen readers.
onChange
Type (index: number) => void
–
Called with the newly open feature.
className
Type string
–
Classes for the wrapper.