diff --git a/docs/.vitepress/config.mts b/docs/.vitepress/config.mts index ccd469fc..f6e45c41 100644 --- a/docs/.vitepress/config.mts +++ b/docs/.vitepress/config.mts @@ -45,6 +45,7 @@ function getComponents() { { text: 'Card', link: '/components/card.md' }, { text: 'Carousel', link: '/components/carousel' }, { text: 'Dropdown', link: '/components/dropdown' }, + { text: "Indicator", link: '/components/indicator' }, { text: 'Jumbotron', link: '/components/jumbotron' }, { text: 'ListGroup', link: '/components/list-group' }, { text: 'Pagination', link: '/components/pagination' }, diff --git a/docs/components/indicator.md b/docs/components/indicator.md new file mode 100644 index 00000000..ad3ed334 --- /dev/null +++ b/docs/components/indicator.md @@ -0,0 +1,60 @@ + + +# Vue Indicator - Flowbite + +#### Use the indicator component to show a number count, account status, or as a loading label positioned relative to the parent component coded with Tailwind CSS + +--- + +:::tip +Original reference: [https://flowbite.com/docs/components/indicators/](https://flowbite.com/docs/components/indicators/) +::: + +The indicator component can be used as a small element positioned absolutely relative to another component such as a button or card and show a number count, account status (red for offline, green for online) and other useful information. + +Check out the following examples for multiple sizes, colors, positionings, styles, and more all coded with Tailwind CSS and Flowbite. + +## Default Indicator + +Use this example to create a simple indicator with multiple colors and position it anywhere on the website. + + +```vue + +``` + +## Indicator position + +Use these examples to position the indicator component anywhere relative to the parent element. + + +
+ +```vue + +``` \ No newline at end of file diff --git a/docs/components/indicator/examples/FwbIndicatorExample.vue b/docs/components/indicator/examples/FwbIndicatorExample.vue new file mode 100644 index 00000000..e389d9d0 --- /dev/null +++ b/docs/components/indicator/examples/FwbIndicatorExample.vue @@ -0,0 +1,18 @@ + + + diff --git a/docs/components/indicator/examples/FwbIndicatorPositionExample.vue b/docs/components/indicator/examples/FwbIndicatorPositionExample.vue new file mode 100644 index 00000000..292723a6 --- /dev/null +++ b/docs/components/indicator/examples/FwbIndicatorPositionExample.vue @@ -0,0 +1,18 @@ + + + diff --git a/src/components/FwbIndicator/FwbIndicator.vue b/src/components/FwbIndicator/FwbIndicator.vue new file mode 100644 index 00000000..4e1ca530 --- /dev/null +++ b/src/components/FwbIndicator/FwbIndicator.vue @@ -0,0 +1,42 @@ + + + diff --git a/src/index.ts b/src/index.ts index 994321a8..eaa31ca2 100644 --- a/src/index.ts +++ b/src/index.ts @@ -20,6 +20,7 @@ export { default as FwbFooterCopyright } from './components/FwbFooter/FwbFooterC export { default as FwbFooterIcon } from './components/FwbFooter/FwbFooterIcon.vue' export { default as FwbFooterLink } from './components/FwbFooter/FwbFooterLink.vue' export { default as FwbFooterLinkGroup } from './components/FwbFooter/FwbFooterLinkGroup.vue' +export { default as FwbIndicator } from './components/FwbIndicator/FwbIndicator.vue' export { default as FwbJumbotron } from './components/FwbJumbotron/FwbJumbotron.vue' export { default as FwbListGroup } from './components/FwbListGroup/FwbListGroup.vue' export { default as FwbListGroupItem } from './components/FwbListGroup/FwbListGroupItem.vue'