Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

Commit

Permalink
fix(components): Add as prop examples
Browse files Browse the repository at this point in the history
  • Loading branch information
carwack committed Oct 7, 2023
1 parent b2c341b commit 9eafb74
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 33 deletions.
21 changes: 10 additions & 11 deletions packages/layout/examples/base-container.vue
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>
3 changes: 1 addition & 2 deletions packages/layout/examples/base-stack.vue
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@
</chakra.div>
</template>

<script lang="ts" setup>
import { CHStack, CVStack } from "../src"
<script setup lang="ts">
import { chakra } from "../../system/src"
</script>
43 changes: 23 additions & 20 deletions packages/layout/examples/base-text.vue
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>

0 comments on commit 9eafb74

Please sign in to comment.