Skip to content

Commit

Permalink
Add color prop to CardValue component for customizable icon color
Browse files Browse the repository at this point in the history
  • Loading branch information
ap0k4 committed Mar 5, 2025
1 parent acd9db8 commit d7e9ced
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/protolib/src/bundles/services/widgets.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,10 @@ export const BasicCard = ({ title, id, children }) => {
);
}

export const CardValue = ({ Icon, value }) => {
export const CardValue = ({ Icon, value, color="var(--color7)" }) => {
return (
<YStack alignItems='center' justifyContent='center'>
<Icon color="var(--color7)" size={48} strokeWidth={1.75} />
<Icon color={color} size={48} strokeWidth={1.75} />
<Text mt={10} fontSize={48} fontWeight="bold" color="$primary">
{value}
</Text>
Expand Down

0 comments on commit d7e9ced

Please sign in to comment.