diff --git a/.node-version b/.node-version index ef21bea..ef1c2f6 100644 --- a/.node-version +++ b/.node-version @@ -1 +1 @@ -14.x +16.6.2 \ No newline at end of file diff --git a/docs/.vitepress/config.ts b/docs/.vitepress/config.ts index c9c0e8e..b52fef6 100644 --- a/docs/.vitepress/config.ts +++ b/docs/.vitepress/config.ts @@ -47,6 +47,7 @@ function getComponents() { { text: 'Tabs', link: '/components/tabs/tabs.md' }, { text: 'ListGroup', link: 'components/listGroup/listGroup.md' }, { text: 'Toast', link: 'components/toast/toast.md' }, + { text: 'Tooltip', link: 'components/tooltip/tooltip.md' }, { text: 'Modal', link: 'components/modal/modal.md' }, { text: 'Navbar', link: 'components/navbar/navbar.md' }, @@ -58,7 +59,6 @@ function getComponents() { { text: '- Sidebar', link: 'components/sidebar/sidebar.md' }, { text: '- Table', link: 'components/table/table.md' }, { text: '- Timeline', link: 'components/timeline/timeline.md' }, - { text: '- Tooltip', link: 'components/tooltip/tooltip.md' }, ] } diff --git a/docs/components/tooltip/examples/TooltipExample.vue b/docs/components/tooltip/examples/TooltipExample.vue index 76b75c3..abcb21d 100644 --- a/docs/components/tooltip/examples/TooltipExample.vue +++ b/docs/components/tooltip/examples/TooltipExample.vue @@ -1,8 +1,17 @@ + + import { Tooltip } from '../../../../src/index' + \ No newline at end of file diff --git a/docs/components/tooltip/examples/TooltipPositionExample.vue b/docs/components/tooltip/examples/TooltipPositionExample.vue new file mode 100644 index 0000000..2bb0c8a --- /dev/null +++ b/docs/components/tooltip/examples/TooltipPositionExample.vue @@ -0,0 +1,56 @@ + + + \ No newline at end of file diff --git a/docs/components/tooltip/examples/TooltipStyleExample.vue b/docs/components/tooltip/examples/TooltipStyleExample.vue new file mode 100644 index 0000000..cd7df53 --- /dev/null +++ b/docs/components/tooltip/examples/TooltipStyleExample.vue @@ -0,0 +1,32 @@ + + + \ No newline at end of file diff --git a/docs/components/tooltip/examples/TooltipTriggerExample.vue b/docs/components/tooltip/examples/TooltipTriggerExample.vue new file mode 100644 index 0000000..84160a3 --- /dev/null +++ b/docs/components/tooltip/examples/TooltipTriggerExample.vue @@ -0,0 +1,45 @@ + + + diff --git a/docs/components/tooltip/tooltip.md b/docs/components/tooltip/tooltip.md index 608372b..242bb06 100644 --- a/docs/components/tooltip/tooltip.md +++ b/docs/components/tooltip/tooltip.md @@ -1,15 +1,173 @@ # Vue Tooltip Component - Flowbite +## Demo + + + ```vue + ``` - +## Tooltip styles + +You can use choose between dark and light version styles for the tooltip component by changing the utility classes from Tailwind CSS and by applying the `tooltip-light` or `tooltip-dark` attribute. + + + +```vue + + + + + + + + + + + + +``` + +## Placement + +The positioning of the tooltip element relative to the triggering element (eg. button, link) can be set using placement attribute with `top`, `top-start` , `top-end`, `bottom`, `bottom-start`, `bottom-end`, `right`, `right-start`, `right-end`, `left`, `left-start`, `left-end`, `auto`, `auto-start`, `auto-end`. +The default value is: `top` + + + +```vue + + +