SpotLight Card

Use this card for highlighting product
features or services with a dynamic and interactive spotlight effect.

Next.js

A React framework for server-rendered or statically-exported React apps.

React

A JavaScript library for building user interfaces.

Framer Motion

A production-ready motion library for React.

Installation
npx @ayushmxxn/serenity-ui@latest add spotlightcard
Usage
import React from 'react';
import { FaReact } from 'react-icons/fa';
import { SiNextdotjs, SiFramer} from 'react-icons/si';
import SpotlightCard from '../components/cards/spotlightcard/page';


const cardData = [
  {
    title: 'Next.js',
    description: 'A React framework for server-rendered or statically-exported React apps.',
    icon: <SiNextdotjs size={40} />,
    
  },
  {
    title: 'React',
    description: 'A JavaScript library for building user interfaces.',
    icon: <FaReact size={40}  />,
  },
  {
    title: 'Framer Motion',
    description: ' A production-ready motion library for React.',
    icon: <SiFramer size={40} />,
  },
];

const Page = () => {
  return (
    <div className='mt-10'>
      <SpotlightCard cards={cardData} />
    </div>
  );
};

export default Page;

Props

Prop NameTypeDescription
titlestringTitle of the card
descriptionstringDescription of the card
iconReact.ReactNode / stringIcon of the card
Built byAyushmaan Singh. The source code is available onGithub