This repository has been archived by the owner on Sep 20, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(components): Add as prop examples
- Loading branch information
Showing
3 changed files
with
34 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,16 @@ | ||
<template> | ||
<c-container> | ||
<CContainer> | ||
There are many benefits to a joint design and development system. Not only | ||
does it bring benefits to the design team, but it also brings benefits to | ||
engineering teams. It makes sure that our experiences have a consistent look | ||
and feel, not just in our design specs, but in production | ||
</c-container> | ||
<c-v-stack my="4"> | ||
<c-container max-w="container.xl">Extra-Large Container</c-container> | ||
<c-container max-w="container.lg">Large Container</c-container> | ||
<c-container max-w="container.md">Medium Container</c-container> | ||
<c-container max-w="container.sm">Small Container</c-container> | ||
</c-v-stack> | ||
</CContainer> | ||
<CVStack my="4"> | ||
<CContainer max-w="container.xl">Extra-Large Container</CContainer> | ||
<CContainer max-w="container.lg">Large Container</CContainer> | ||
<CContainer max-w="container.md">Medium Container</CContainer> | ||
<CContainer max-w="container.sm">Small Container</CContainer> | ||
</CVStack> | ||
|
||
<CContainer as="span"> As prop span </CContainer> | ||
</template> | ||
<script setup> | ||
import { CVStack } from "../src" | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,30 @@ | ||
<template> | ||
<c-stack spacing="{3}"> | ||
<c-text fontSize="6xl">(6xl) In love with React & Next</c-text> | ||
<c-text fontSize="5xl">(5xl) In love with React & Next</c-text> | ||
<c-text fontSize="4xl">(4xl) In love with React & Next</c-text> | ||
<c-text fontSize="3xl">(3xl) In love with React & Next</c-text> | ||
<c-text fontSize="2xl">(2xl) In love with React & Next</c-text> | ||
<c-text fontSize="xl">(xl) In love with React & Next</c-text> | ||
<c-text fontSize="lg">(lg) In love with React & Next</c-text> | ||
<c-text fontSize="md">(md) In love with React & Next</c-text> | ||
<c-text fontSize="sm">(sm) In love with React & Next</c-text> | ||
<c-text fontSize="xs">(xs) In love with React & Next</c-text> | ||
</c-stack> | ||
<c-divider my="4" /> | ||
<c-text>truncated:</c-text> | ||
<c-text maxW="sm" isTruncated> | ||
<CStack spacing="{3}"> | ||
<CText fontSize="6xl">(6xl) In love with React & Next</CText> | ||
<CText fontSize="5xl">(5xl) In love with React & Next</CText> | ||
<CText fontSize="4xl">(4xl) In love with React & Next</CText> | ||
<CText fontSize="3xl">(3xl) In love with React & Next</CText> | ||
<CText fontSize="2xl">(2xl) In love with React & Next</CText> | ||
<CText fontSize="xl">(xl) In love with React & Next</CText> | ||
<CText fontSize="lg">(lg) In love with React & Next</CText> | ||
<CText fontSize="md">(md) In love with React & Next</CText> | ||
<CText fontSize="sm">(sm) In love with React & Next</CText> | ||
<CText fontSize="xs">(xs) In love with React & Next</CText> | ||
</CStack> | ||
<CDivider my="4" /> | ||
<CText>truncated:</CText> | ||
<CText maxW="sm" isTruncated> | ||
Lorem ipsum is placeholder text commonly used in the graphic, print, and | ||
publishing industries for previewing layouts and visual mockups. | ||
</c-text> | ||
<c-divider my="4" /> | ||
<c-text>line clamp:</c-text> | ||
<c-text :noOfLines="[1, 2, 3]" maxW="sm"> | ||
</CText> | ||
<CDivider my="4" /> | ||
<CText>line clamp:</CText> | ||
<CText :noOfLines="[1, 2, 3]" maxW="sm"> | ||
"The quick brown fox jumps over the lazy dog" is an English-language | ||
pangram—a sentence that contains all of the letters of the English alphabet. | ||
Owing to its existence, Chakra was created. | ||
</c-text> | ||
</CText> | ||
<CDivider my="4" /> | ||
<CText>As prop:</CText> | ||
<CText as="h1" fontSize="xl"> As prop H1 </CText> | ||
</template> |