Updated
Feature Morph
ProCustomize
Visible7
Duration2500ms
Installation
ProFeature Morph is a Pro component
Sign in to see the source, or install it with a license key. The live preview and props above are free to explore.
Install with a key
- Add the Pro registry to
components.json:components.json { "registries": { "@uibrik-pro": { "url": "https://uibrik.com/r/pro/{name}.json", "headers": { "Authorization": "Bearer ${UIBRIK_LICENSE}" } } } } - Put your key in
.env.localand add that file to.gitignore:.env.local UIBRIK_LICENSE=your-license-key - Install it:
Terminal npx shadcn@latest add @uibrik-pro/feature-morph
Loading your installation…
Usage
import { FeatureMorph } from "@/components/uibrik/feature-morph/feature-morph";<FeatureMorph visible={7} autoplay duration={2500} label="Features" onChange={(index) => {}} // features={[{ title: "…", description: "…", icon: <…/> }]}/>Where to use Feature Morph
Feature overviews
One feature open as a card at a time keeps a list of six benefits short.
Pairs with Stacked Steps
Product tours in a hero
The card folding back into its icon and the next growing out works as an autoplaying tour.
Bento sections
Icon tiles plus an open card fit a tidy row inside a larger bento layout.
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
- 2500
- 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.