2024-12-22 23:35:56 +00:00
|
|
|
<script setup>
|
|
|
|
import { color, setColors } from "~/composables/colors.ts"
|
|
|
|
import { useRoute } from "vue-router"
|
|
|
|
|
|
|
|
import Button from "~/components/ui/Button.vue"
|
|
|
|
import Card from "~/components/ui/Card.vue"
|
|
|
|
import Link from "~/components/ui/Link.vue"
|
|
|
|
import Layout from "~/components/ui/Layout.vue"
|
|
|
|
import Alert from "~/components/ui/Alert.vue"
|
|
|
|
import Spacer from "~/components/ui/layout/Spacer.vue"
|
|
|
|
|
|
|
|
const route = useRoute();
|
|
|
|
const here = route.path
|
|
|
|
</script>
|
|
|
|
|
|
|
|
# Using widths
|
|
|
|
|
|
|
|
## Add width via prop
|
|
|
|
|
|
|
|
<Layout flex class="preview" style="flex-grow: 1">
|
|
|
|
|
|
|
|
```vue-html
|
|
|
|
<Card min-content title='min-content' />
|
|
|
|
<Card tiny title='tiny' />
|
|
|
|
<Card buttonWidth title='buttonWidth' />
|
|
|
|
<Card small title='small' />
|
|
|
|
<Card medium title='medium' />
|
|
|
|
<Card auto title='auto' />
|
2024-12-30 10:46:49 +00:00
|
|
|
<Card width="170.5px" title='width=170.5px' />
|
2024-12-22 23:35:56 +00:00
|
|
|
<Card full title='full' />
|
|
|
|
```
|
|
|
|
|
|
|
|
<Card min-content title='min-content' />
|
|
|
|
<Card tiny title='tiny' />
|
|
|
|
<Card buttonWidth title='buttonWidth' />
|
|
|
|
<Card small title='small' />
|
|
|
|
<Card medium title='medium' />
|
|
|
|
<Card auto title='auto' />
|
2024-12-30 10:46:49 +00:00
|
|
|
<Card width="170.5px" title='width=170.5px' />
|
2024-12-22 23:35:56 +00:00
|
|
|
<Card full title='full' />
|
|
|
|
</Layout>
|
2024-12-30 10:46:49 +00:00
|
|
|
|
|
|
|
## Widths in the grid
|
|
|
|
|
|
|
|
::: details Default widths
|
|
|
|
|
|
|
|

|
|
|
|
|
|
|
|
:::
|
|
|
|
|
|
|
|
[Designing Pages — The grid](designing-pages#grid)
|