Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs(VCard): update all examples, rearrange content
- Loading branch information
1 parent
da06d21
commit 04400f0
Showing
26 changed files
with
518 additions
and
396 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,15 +1,16 @@ | ||
<template> | ||
<v-card | ||
class="mx-auto" | ||
prepend-icon="mdi-home" | ||
prepend-icon="$vuetify" | ||
subtitle="The #1 Vue UI Library" | ||
width="400" | ||
> | ||
<template v-slot:title> | ||
This is a title | ||
<span class="font-weight-black">Welcome to Vuetify</span> | ||
</template> | ||
|
||
<v-card-text> | ||
This is content | ||
<v-card-text class="bg-surface-light pt-4"> | ||
Lorem ipsum dolor sit amet consectetur adipisicing elit. Commodi, ratione debitis quis est labore voluptatibus! Eaque cupiditate minima, at placeat totam, magni doloremque veniam neque porro libero rerum unde voluptatem! | ||
</v-card-text> | ||
</v-card> | ||
</template> |
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,42 +1,47 @@ | ||
<template> | ||
<div class="d-flex align-center flex-column"> | ||
<div class="text-subtitle-2">With props</div> | ||
|
||
<v-card | ||
subtitle="This is a subtitle" | ||
text="This is content" | ||
title="This is a title" | ||
width="400" | ||
></v-card> | ||
|
||
<div class="mt-4 text-subtitle-2">With slots</div> | ||
|
||
<v-card width="400"> | ||
<template v-slot:title> | ||
This is a title | ||
</template> | ||
|
||
<template v-slot:subtitle> | ||
This is a subtitle | ||
</template> | ||
|
||
<template v-slot:text> | ||
This is content | ||
</template> | ||
</v-card> | ||
|
||
<div class="mt-4 text-subtitle-2">With markup</div> | ||
|
||
<v-card width="400"> | ||
<v-card-item> | ||
<v-card-title>This is a title</v-card-title> | ||
|
||
<v-card-subtitle>This is a subtitle</v-card-subtitle> | ||
</v-card-item> | ||
|
||
<v-card-text> | ||
This is content | ||
</v-card-text> | ||
</v-card> | ||
</div> | ||
<v-row> | ||
<v-col cols="12" md="4"> | ||
<v-card | ||
subtitle="This is a card subtitle" | ||
text="Lorem ipsum dolor sit amet consectetur adipisicing elit. Commodi, ratione debitis quis est labore voluptatibus!" | ||
title="This is a title" | ||
></v-card> | ||
|
||
<div class="text-center text-caption">Using Props Only</div> | ||
</v-col> | ||
|
||
<v-col cols="12" md="4"> | ||
<v-card> | ||
<template v-slot:title> | ||
This is a title | ||
</template> | ||
|
||
<template v-slot:subtitle> | ||
This is a card subtitle | ||
</template> | ||
|
||
<template v-slot:text> | ||
Lorem ipsum dolor sit amet consectetur adipisicing elit. Commodi, ratione debitis quis est labore voluptatibus! | ||
</template> | ||
</v-card> | ||
|
||
<div class="text-center text-caption">Using Slots Only</div> | ||
</v-col> | ||
|
||
<v-col cols="12" md="4"> | ||
<v-card> | ||
<v-card-item> | ||
<v-card-title>This is a title</v-card-title> | ||
|
||
<v-card-subtitle>This is a card subtitle</v-card-subtitle> | ||
</v-card-item> | ||
|
||
<v-card-text> | ||
Lorem ipsum dolor sit amet consectetur adipisicing elit. Commodi, ratione debitis quis est labore voluptatibus! | ||
</v-card-text> | ||
</v-card> | ||
|
||
<div class="text-center text-caption">Using Markup Only</div> | ||
</v-col> | ||
</v-row> | ||
</template> |
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
84 changes: 37 additions & 47 deletions
84
packages/docs/src/examples/v-card/misc-content-wrapping.vue
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
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 |
---|---|---|
@@ -0,0 +1,40 @@ | ||
<template> | ||
<v-card class="mx-auto" max-width="500" border flat> | ||
<v-list-item class="px-6" height="88"> | ||
<template v-slot:prepend> | ||
<v-avatar color="surface-light" size="32">🎯</v-avatar> | ||
</template> | ||
|
||
<template v-slot:title> Set an earnings goal. </template> | ||
|
||
<template v-slot:append> | ||
<v-btn | ||
class="text-none" | ||
color="primary" | ||
text="Create goal" | ||
variant="text" | ||
slim | ||
></v-btn> | ||
</template> | ||
</v-list-item> | ||
|
||
<v-divider></v-divider> | ||
|
||
<v-card-text class="text-medium-emphasis pa-6"> | ||
<div class="text-h6 mb-6">Earn my first $100</div> | ||
|
||
<div class="text-h4 font-weight-black mb-4">0%</div> | ||
|
||
<v-progress-linear | ||
bg-color="surface-variant" | ||
class="mb-6" | ||
color="primary" | ||
height="10" | ||
model-value="2" | ||
rounded="pill" | ||
></v-progress-linear> | ||
|
||
<div>$0 of $100 earned — 7 days left</div> | ||
</v-card-text> | ||
</v-card> | ||
</template> |
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
Oops, something went wrong.