Bulk create components

This commit is contained in:
Richard Gilbert
2022-07-09 11:47:37 +10:00
parent 388eed8286
commit d33f195214
56 changed files with 1319 additions and 0 deletions

View File

@@ -30,6 +30,25 @@ function getComponents() {
{ text: 'Dropdown', link: '/guide/dropdown/dropdown.md' },
{ text: 'Spinner', link: '/guide/spinner/spinner.md' },
{ text: 'Tabs', link: '/guide/tabs/tabs.md' },
{ text: 'Accordion', link: 'guide/accordion/accordion.md' },
{ text: 'Avatar', link: 'guide/avatar/avatar.md' },
{ text: 'Badge', link: 'guide/badge/badge.md' },
{ text: 'Breadcrumb', link: 'guide/breadcrumb/breadcrumb.md' },
{ text: 'Card', link: 'guide/card/card.md' },
{ text: 'Carousel', link: 'guide/carousel/carousel.md' },
{ text: 'Footer', link: 'guide/footer/footer.md' },
{ text: 'ListGroup', link: 'guide/listGroup/listGroup.md' },
{ text: 'Modal', link: 'guide/modal/modal.md' },
{ text: 'Navbar', link: 'guide/navbar/navbar.md' },
{ text: 'Pagination', link: 'guide/pagination/pagination.md' },
{ text: 'Progress', link: 'guide/progress/progress.md' },
{ text: 'Rating', link: 'guide/rating/rating.md' },
{ text: 'Sidebar', link: 'guide/sidebar/sidebar.md' },
{ text: 'Table', link: 'guide/table/table.md' },
{ text: 'Timeline', link: 'guide/timeline/timeline.md' },
{ text: 'Toast', link: 'guide/toast/toast.md' },
{ text: 'Tooltip', link: 'guide/tooltip/tooltip.md' },
]
}

View File

@@ -0,0 +1,15 @@
<script setup>
import AccordionExample from './examples/AccordionExample.vue'
</script>
# Accordion
```vue
<script setup>
import { Accordion } from 'flowbite-vue'
</script>
<template>
<Accordion></Accordion>
</template>
```
<AccordionExample />

View File

@@ -0,0 +1,8 @@
<template>
<div class="vp-raw flex flex-col">
<Accordion></Accordion>
</div>
</template>
<script setup>
import { Accordion } from '../../../../src/index'
</script>

View File

@@ -0,0 +1,15 @@
<script setup>
import AvatarExample from './examples/AvatarExample.vue'
</script>
# Avatar
```vue
<script setup>
import { Avatar } from 'flowbite-vue'
</script>
<template>
<Avatar></Avatar>
</template>
```
<AvatarExample />

View File

@@ -0,0 +1,8 @@
<template>
<div class="vp-raw flex flex-col">
<Avatar></Avatar>
</div>
</template>
<script setup>
import { Avatar } from '../../../../src/index'
</script>

15
docs/guide/badge/badge.md Normal file
View File

@@ -0,0 +1,15 @@
<script setup>
import BadgeExample from './examples/BadgeExample.vue'
</script>
# Badge
```vue
<script setup>
import { Badge } from 'flowbite-vue'
</script>
<template>
<Badge></Badge>
</template>
```
<BadgeExample />

View File

@@ -0,0 +1,8 @@
<template>
<div class="vp-raw flex flex-col">
<Badge></Badge>
</div>
</template>
<script setup>
import { Badge } from '../../../../src/index'
</script>

View File

@@ -0,0 +1,15 @@
<script setup>
import BreadcrumbExample from './examples/BreadcrumbExample.vue'
</script>
# Breadcrumb
```vue
<script setup>
import { Breadcrumb } from 'flowbite-vue'
</script>
<template>
<Breadcrumb></Breadcrumb>
</template>
```
<BreadcrumbExample />

View File

@@ -0,0 +1,8 @@
<template>
<div class="vp-raw flex flex-col">
<Breadcrumb></Breadcrumb>
</div>
</template>
<script setup>
import { Breadcrumb } from '../../../../src/index'
</script>

15
docs/guide/card/card.md Normal file
View File

@@ -0,0 +1,15 @@
<script setup>
import CardExample from './examples/CardExample.vue'
</script>
# Card
```vue
<script setup>
import { Card } from 'flowbite-vue'
</script>
<template>
<Card></Card>
</template>
```
<CardExample />

View File

@@ -0,0 +1,8 @@
<template>
<div class="vp-raw flex flex-col">
<Card></Card>
</div>
</template>
<script setup>
import { Card } from '../../../../src/index'
</script>

View File

@@ -0,0 +1,15 @@
<script setup>
import CarouselExample from './examples/CarouselExample.vue'
</script>
# Carousel
```vue
<script setup>
import { Carousel } from 'flowbite-vue'
</script>
<template>
<Carousel></Carousel>
</template>
```
<CarouselExample />

View File

@@ -0,0 +1,8 @@
<template>
<div class="vp-raw flex flex-col">
<Carousel></Carousel>
</div>
</template>
<script setup>
import { Carousel } from '../../../../src/index'
</script>

View File

@@ -0,0 +1,8 @@
<template>
<div class="vp-raw flex flex-col">
<Footer></Footer>
</div>
</template>
<script setup>
import { Footer } from '../../../../src/index'
</script>

View File

@@ -0,0 +1,15 @@
<script setup>
import FooterExample from './examples/FooterExample.vue'
</script>
# Footer
```vue
<script setup>
import { Footer } from 'flowbite-vue'
</script>
<template>
<Footer></Footer>
</template>
```
<FooterExample />

View File

@@ -0,0 +1,8 @@
<template>
<div class="vp-raw flex flex-col">
<ListGroup></ListGroup>
</div>
</template>
<script setup>
import { ListGroup } from '../../../../src/index'
</script>

View File

@@ -0,0 +1,15 @@
<script setup>
import ListGroupExample from './examples/ListGroupExample.vue'
</script>
# ListGroup
```vue
<script setup>
import { ListGroup } from 'flowbite-vue'
</script>
<template>
<ListGroup></ListGroup>
</template>
```
<ListGroupExample />

View File

@@ -0,0 +1,8 @@
<template>
<div class="vp-raw flex flex-col">
<Modal></Modal>
</div>
</template>
<script setup>
import { Modal } from '../../../../src/index'
</script>

15
docs/guide/modal/modal.md Normal file
View File

@@ -0,0 +1,15 @@
<script setup>
import ModalExample from './examples/ModalExample.vue'
</script>
# Modal
```vue
<script setup>
import { Modal } from 'flowbite-vue'
</script>
<template>
<Modal></Modal>
</template>
```
<ModalExample />

View File

@@ -0,0 +1,8 @@
<template>
<div class="vp-raw flex flex-col">
<Navbar></Navbar>
</div>
</template>
<script setup>
import { Navbar } from '../../../../src/index'
</script>

View File

@@ -0,0 +1,15 @@
<script setup>
import NavbarExample from './examples/NavbarExample.vue'
</script>
# Navbar
```vue
<script setup>
import { Navbar } from 'flowbite-vue'
</script>
<template>
<Navbar></Navbar>
</template>
```
<NavbarExample />

View File

@@ -0,0 +1,8 @@
<template>
<div class="vp-raw flex flex-col">
<Pagination></Pagination>
</div>
</template>
<script setup>
import { Pagination } from '../../../../src/index'
</script>

View File

@@ -0,0 +1,15 @@
<script setup>
import PaginationExample from './examples/PaginationExample.vue'
</script>
# Pagination
```vue
<script setup>
import { Pagination } from 'flowbite-vue'
</script>
<template>
<Pagination></Pagination>
</template>
```
<PaginationExample />

View File

@@ -0,0 +1,8 @@
<template>
<div class="vp-raw flex flex-col">
<Progress></Progress>
</div>
</template>
<script setup>
import { Progress } from '../../../../src/index'
</script>

View File

@@ -0,0 +1,15 @@
<script setup>
import ProgressExample from './examples/ProgressExample.vue'
</script>
# Progress
```vue
<script setup>
import { Progress } from 'flowbite-vue'
</script>
<template>
<Progress></Progress>
</template>
```
<ProgressExample />

View File

@@ -0,0 +1,8 @@
<template>
<div class="vp-raw flex flex-col">
<Rating></Rating>
</div>
</template>
<script setup>
import { Rating } from '../../../../src/index'
</script>

View File

@@ -0,0 +1,15 @@
<script setup>
import RatingExample from './examples/RatingExample.vue'
</script>
# Rating
```vue
<script setup>
import { Rating } from 'flowbite-vue'
</script>
<template>
<Rating></Rating>
</template>
```
<RatingExample />

View File

@@ -0,0 +1,8 @@
<template>
<div class="vp-raw flex flex-col">
<Sidebar></Sidebar>
</div>
</template>
<script setup>
import { Sidebar } from '../../../../src/index'
</script>

View File

@@ -0,0 +1,15 @@
<script setup>
import SidebarExample from './examples/SidebarExample.vue'
</script>
# Sidebar
```vue
<script setup>
import { Sidebar } from 'flowbite-vue'
</script>
<template>
<Sidebar></Sidebar>
</template>
```
<SidebarExample />

View File

@@ -0,0 +1,8 @@
<template>
<div class="vp-raw flex flex-col">
<Table></Table>
</div>
</template>
<script setup>
import { Table } from '../../../../src/index'
</script>

15
docs/guide/table/table.md Normal file
View File

@@ -0,0 +1,15 @@
<script setup>
import TableExample from './examples/TableExample.vue'
</script>
# Table
```vue
<script setup>
import { Table } from 'flowbite-vue'
</script>
<template>
<Table></Table>
</template>
```
<TableExample />

View File

@@ -0,0 +1,8 @@
<template>
<div class="vp-raw flex flex-col">
<Timeline></Timeline>
</div>
</template>
<script setup>
import { Timeline } from '../../../../src/index'
</script>

View File

@@ -0,0 +1,15 @@
<script setup>
import TimelineExample from './examples/TimelineExample.vue'
</script>
# Timeline
```vue
<script setup>
import { Timeline } from 'flowbite-vue'
</script>
<template>
<Timeline></Timeline>
</template>
```
<TimelineExample />

View File

@@ -0,0 +1,8 @@
<template>
<div class="vp-raw flex flex-col">
<Toast></Toast>
</div>
</template>
<script setup>
import { Toast } from '../../../../src/index'
</script>

15
docs/guide/toast/toast.md Normal file
View File

@@ -0,0 +1,15 @@
<script setup>
import ToastExample from './examples/ToastExample.vue'
</script>
# Toast
```vue
<script setup>
import { Toast } from 'flowbite-vue'
</script>
<template>
<Toast></Toast>
</template>
```
<ToastExample />

View File

@@ -0,0 +1,8 @@
<template>
<div class="vp-raw flex flex-col">
<Tooltip></Tooltip>
</div>
</template>
<script setup>
import { Tooltip } from '../../../../src/index'
</script>

View File

@@ -0,0 +1,15 @@
<script setup>
import TooltipExample from './examples/TooltipExample.vue'
</script>
# Tooltip
```vue
<script setup>
import { Tooltip } from 'flowbite-vue'
</script>
<template>
<Tooltip></Tooltip>
</template>
```
<TooltipExample />