|
| 1 | +import { ImageFrame, Flex, VStack, Text } from "@seed-design/react"; |
| 2 | + |
| 3 | +export default function ImageFrameBorderRadius() { |
| 4 | + return ( |
| 5 | + <VStack gap="x6" alignItems="flex-start"> |
| 6 | + <Flex gap="x4" wrap="wrap" align="flex-end"> |
| 7 | + <VStack gap="x2" alignItems="center"> |
| 8 | + <ImageFrame |
| 9 | + ratio={4 / 3} |
| 10 | + borderRadius="r1" |
| 11 | + src="https://images.unsplash.com/photo-1535025183041-0991a977e25b?w=120&dpr=2&q=80" |
| 12 | + alt="size 20 borderRadius=r1" |
| 13 | + style={{ width: 20 }} |
| 14 | + /> |
| 15 | + <Text color="palette.gray700" textStyle="t1Regular"> |
| 16 | + 20 / r1 (4px) |
| 17 | + </Text> |
| 18 | + </VStack> |
| 19 | + <VStack gap="x2" alignItems="center"> |
| 20 | + <ImageFrame |
| 21 | + ratio={4 / 3} |
| 22 | + borderRadius="r1" |
| 23 | + src="https://images.unsplash.com/photo-1535025183041-0991a977e25b?w=120&dpr=2&q=80" |
| 24 | + alt="size 24 borderRadius r1" |
| 25 | + style={{ width: 24 }} |
| 26 | + /> |
| 27 | + <Text color="palette.gray700" textStyle="t1Regular"> |
| 28 | + 24 / r1 (4px) |
| 29 | + </Text> |
| 30 | + </VStack> |
| 31 | + <VStack gap="x2" alignItems="center"> |
| 32 | + <ImageFrame |
| 33 | + ratio={4 / 3} |
| 34 | + borderRadius="r1_5" |
| 35 | + src="https://images.unsplash.com/photo-1535025183041-0991a977e25b?w=120&dpr=2&q=80" |
| 36 | + alt="size 36 borderRadius r1_5" |
| 37 | + style={{ width: 36 }} |
| 38 | + /> |
| 39 | + <Text color="palette.gray700" textStyle="t1Regular"> |
| 40 | + 36 / r1_5 (6px) |
| 41 | + </Text> |
| 42 | + </VStack> |
| 43 | + <VStack gap="x2" alignItems="center"> |
| 44 | + <ImageFrame |
| 45 | + ratio={4 / 3} |
| 46 | + borderRadius="r1_5" |
| 47 | + src="https://images.unsplash.com/photo-1535025183041-0991a977e25b?w=120&dpr=2&q=80" |
| 48 | + alt="size 42 borderRadius r1_5" |
| 49 | + style={{ width: 42 }} |
| 50 | + /> |
| 51 | + <Text color="palette.gray700" textStyle="t1Regular"> |
| 52 | + 42 / r1_5 (6px) |
| 53 | + </Text> |
| 54 | + </VStack> |
| 55 | + <VStack gap="x2" alignItems="center"> |
| 56 | + <ImageFrame |
| 57 | + ratio={4 / 3} |
| 58 | + borderRadius="r1_5" |
| 59 | + src="https://images.unsplash.com/photo-1535025183041-0991a977e25b?w=120&dpr=2&q=80" |
| 60 | + alt="size 48 borderRadius r1_5" |
| 61 | + style={{ width: 48 }} |
| 62 | + /> |
| 63 | + <Text color="palette.gray700" textStyle="t1Regular"> |
| 64 | + 48 / r1_5 (6px) |
| 65 | + </Text> |
| 66 | + </VStack> |
| 67 | + <VStack gap="x2" alignItems="center"> |
| 68 | + <ImageFrame |
| 69 | + ratio={4 / 3} |
| 70 | + borderRadius="r2" |
| 71 | + src="https://images.unsplash.com/photo-1535025183041-0991a977e25b?w=160&dpr=2&q=80" |
| 72 | + alt="size 64 borderRadius r2" |
| 73 | + style={{ width: 64 }} |
| 74 | + /> |
| 75 | + <Text color="palette.gray700" textStyle="t1Regular"> |
| 76 | + 64+ / r2 (8px) |
| 77 | + </Text> |
| 78 | + </VStack> |
| 79 | + </Flex> |
| 80 | + </VStack> |
| 81 | + ); |
| 82 | +} |
0 commit comments