Clevision

Widget Component

Cards 1

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
  • Syntra Hero

    Syntra Hero

    170
  • Calendar

    Calendar

    111
  • Card Studio

    Card Studio

    108
  • Hero Section 41

    Hero Section 41

    62
  • Agency Hero

    Agency Hero

    52
  • Hero Section

    Hero Section

    44
  • Logo Cloud

    Logo Cloud

    43
  • Collapsible

    Collapsible

    43

More in Cards

View all
  • Course Design Cards

    Course Design Cards

    1.3K
  • Statistics Card 7

    Statistics Card 7

    327
  • Statistics Card 2

    Statistics Card 2

    305
  • Interactive Tech Stack Bento Grid with Hover Effects

    Interactive Tech Stack Bento Grid with Hover Effects

    625
  • The Item one

    The Item one

    4
  • Weather Card

    Weather Card

    65
  • Card

    Card

    9
  • Statistics Card 10

    Statistics Card 10

    294

Explore more

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