Clevision

Widget Component

Cards 2

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

    472
  • Portfolio Hero

    Portfolio Hero

    463
  • Hero Section

    Hero Section

    197
  • Hero Section 41

    Hero Section 41

    155
  • Calendar

    Calendar

    115
  • Card Studio

    Card Studio

    110
  • Agency Hero

    Agency Hero

    97
  • Saas Hero Section

    Saas Hero Section

    93

More in Cards

View all
  • Course Design Cards

    Course Design Cards

    1.3K
  • Photo Deck

    Photo Deck

    47
  • Folded Card

    Folded Card

    45
  • Statistics Card 10

    Statistics Card 10

    304
  • Statistics Card 2

    Statistics Card 2

    309
  • Statistics Card 7

    Statistics Card 7

    336
  • CTA Section

    CTA Section

    6
  • Liquid Glass Card

    Liquid Glass Card

    198

Explore more

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