import { useState } from 'react'; import { Screen, View, Text, Card, Button } from '../index'; export const CardExamples = () => { const handleCardPress = (cardType: string) => { console.log(`Card pressed: ${cardType}`); }; const [cardDimensions, setCardDimensions] = useState({ width: 0, height: 0 }); return ( Card Examples {/* Card Variants */} Variants Outlined Card This is an outlined card with border Elevated Card This is an elevated card with shadow Filled Card This is a filled card with background {/* Card Intents */} Intents Neutral Card Primary Card Success Card Error Card Warning Card Info Card {/* Card Padding */} Padding No Padding Small Padding Medium Padding Large Padding {/* Card Radius */} Border Radius No Radius Small Radius Medium Radius Large Radius {/* Pressable Cards */} Interactive Cards handleCardPress('pressable')} type="outlined" padding="md" > Pressable Card Press me to see interaction handleCardPress('disabled')} type="outlined" padding="md" > Disabled Card This card is disabled {/* Complex Card Layout */} Complex Layout Product Card This is a more complex card layout with multiple elements {/* onLayout Example */} onLayout Callback Track card dimensions as they change { const { width, height } = event.nativeEvent.layout; setCardDimensions({ width, height }); }} > Responsive Card Width: {Math.round(cardDimensions.width)}px Height: {Math.round(cardDimensions.height)}px ); };