Feature Card

This is a Feature Card component.

We are Solaris !

At Solaris we are dedicated to work hard for better future.

Image

Installation

1. Dependencies

npm install clsx tailwind-merge framer-motion

2. Paste inside @/lib/utils.ts

import { clsx } from "clsx";
import { twMerge } from "tailwind-merge";

export function cn(...inputs: Parameters<typeof clsx>) {
  return twMerge(clsx(...inputs));
}

3. Copy Feature Card Code

Loading...

Copy Feature Card Code

FeatureCard Props

NameTypeRequiredDefaultDescription
childrenReact.ReactNodeYesundefinedThe child elements to be rendered inside the card.
classNamestringNo""Additional class names for styling.

FeatureCardHeader Props

NameTypeRequiredDefaultDescription
headingstringYesundefinedThe title of the feature.
textstringYesundefinedThe description of the feature.
hoveredbooleanNofalseIndicates if the card is hovered.

FeatureCardMedia Props

NameTypeRequiredDefaultDescription
imgstringYesundefinedThe source of the image.
headingstringYesundefinedThe title of the feature.
mockupSizestringYesundefinedThe size class for the mockup image.
mockupPositionstringYesundefinedThe position class for the mockup image.
hoveredbooleanNofalseIndicates if the card is hovered.

FeatureCardVideo Props

NameTypeRequiredDefaultDescription
videostringYesundefinedThe source of the video.
hoveredbooleanNofalseIndicates if the card is hovered.