Clevision

Widget Component

Cards 3

About

Total earning widget card with trend, dropdown menu and progress list by Shadcn Studio.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Widget Component to your project and fits it to your theme.

Code

How Widget Component is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import TotalEarningCard from '@/components/ui/shadcn-studio-widget-component-01'

const earningData = [
  {
    img: 'https://cdn.21st.dev/assets/mirror/0f/0f9ebe33288b671343b3cf9989a4b1e162dbed6f4600463672bd091f434c322f.png',
    platform: 'Zipcar',
    technologies: 'Vuejs & HTML',
    earnings: '-$23,569.26',
    progressPercentage: 75
  },
  {
    img: 'https://cdn.21st.dev/assets/mirror/84/840f8dada0e907ac1b56cf1df69438a523c59d30516cde7957ae90dca8f4f158.png',
    platform: 'Bitbank',
    technologies: 'Figma & React',
    earnings: '-$12,650.31',
    progressPercentage: 25
  },
  {
    img: 'https://cdn.21st.dev/assets/mirror/dc/dc423adfa6743da1bea9ba5cf5ef68221253e6b65e4ba27195083dedae94178a.png',
    platform: 'Aviato',
    technologies: 'HTML & Angular',
    earnings: '-$55,699.50',
    progressPercentage: 50
  }
]

const WidgetCardPreview = () => {
  return (
    <div className='mx-auto max-w-7xl px-4 py-8 sm:px-8 sm:py-16'>
      <div className='flex justify-center'>
        <TotalEarningCard
          title='Total Earning'
          earning={24650}
          trend='up'
          percentage={10}
          comparisonText='Compare to last year ($84,325)'
          earningData={earningData}
          className='w-full max-w-100'
        />
      </div>
    </div>
  )
}

export default WidgetCardPreview

Dependencies

More by Clevision

View all
  • Portfolio Hero

    Portfolio Hero

    1.2K
  • Syntra Hero

    Syntra Hero

    760
  • Hero Section

    Hero Section

    441
  • Hardware Hero

    Hardware Hero

    251
  • Studio Hero

    Studio Hero

    241
  • Saas Hero Section

    Saas Hero Section

    236
  • Hero Section 41

    Hero Section 41

    206
  • Nexa Canvas Hero

    Nexa Canvas Hero

    121

More in Cards

View all
  • Course Design Cards

    Course Design Cards

    1.4K
  • Stats cards with links

    Stats cards with links

    46
  • Statistics Card 7

    Statistics Card 7

    342
  • Statistics Card 2

    Statistics Card 2

    322
  • Card Studio

    Card Studio

    37
  • Card

    Card

    65
  • Admin Dashboard Cards

    Admin Dashboard Cards

    44
  • Interactive Tech Stack Bento Grid with Hover Effects

    Interactive Tech Stack Bento Grid with Hover Effects

    778

Explore more

Part of ShadcnStudio — browse the full library on 21st.dev.