Files
native-app/apps/expo/src/components/ui/Card.tsx
2024-04-15 19:34:42 +02:00

22 lines
433 B
TypeScript

import { Card, styled, withStaticProperties } from "tamagui";
export const MWCardFrame = styled(Card, {
backgroundColor: "$shade400",
borderColor: "$shade400",
variants: {
bordered: {
true: {
borderWidth: 1,
borderColor: "$shade500",
},
},
},
});
export const MWCard = withStaticProperties(MWCardFrame, {
Header: Card.Header,
Footer: Card.Footer,
Background: Card.Background,
});