Merged new Docs and Demos

This commit is contained in:
Cagatay Civici 2023-02-28 11:29:30 +03:00
parent 296cc217fb
commit dfcc8ef4e7
1235 changed files with 130757 additions and 122640 deletions

54
doc/chip/BasicDoc.vue Normal file
View file

@ -0,0 +1,54 @@
<template>
<DocSectionText v-bind="$attrs">
<p>A basic chip with a text is created with the <i>label</i> property. In addition when <i>removable</i> is added, a delete icon is displayed to remove a chip.</p>
</DocSectionText>
<div class="card flex flex-wrap gap-2">
<Chip label="Action" />
<Chip label="Comedy" />
<Chip label="Mystery" />
<Chip label="Thriller" removable />
</div>
<DocSectionCode :code="code" />
</template>
<script>
export default {
data() {
return {
code: {
basic: `
<Chip label="Action" />
<Chip label="Comedy" />
<Chip label="Mystery" />
<Chip label="Thriller" removable />`,
options: `
<template>
<div class="card flex flex-wrap gap-2">
<Chip label="Action" />
<Chip label="Comedy" />
<Chip label="Mystery" />
<Chip label="Thriller" removable />
</div>
</template>
<script>
<\/script>`,
composition: `
<template>
<div class="card flex flex-wrap gap-2">
<Chip label="Action" />
<Chip label="Comedy" />
<Chip label="Mystery" />
<Chip label="Thriller" removable />
</div>
</template>
<script setup>
<\/script>`
}
};
}
};
</script>