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















