diff --git a/docs/components/tooltip/examples/TooltipExample.vue b/docs/components/tooltip/examples/TooltipExample.vue index ab2fbe4..abcb21d 100644 --- a/docs/components/tooltip/examples/TooltipExample.vue +++ b/docs/components/tooltip/examples/TooltipExample.vue @@ -1,32 +1,17 @@ - + \ 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 index fdaf066..cd7df53 100644 --- a/docs/components/tooltip/examples/TooltipStyleExample.vue +++ b/docs/components/tooltip/examples/TooltipStyleExample.vue @@ -1,34 +1,32 @@ - + \ No newline at end of file diff --git a/docs/components/tooltip/examples/TooltipTriggerExample.vue b/docs/components/tooltip/examples/TooltipTriggerExample.vue index 1edbcf7..84160a3 100644 --- a/docs/components/tooltip/examples/TooltipTriggerExample.vue +++ b/docs/components/tooltip/examples/TooltipTriggerExample.vue @@ -1,21 +1,30 @@ @@ -7,10 +8,7 @@ import TooltipTriggerExample from './examples/TooltipTriggerExample.vue' ## Demo - - - - + ```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 - - - ``` @@ -139,31 +34,7 @@ import { Tooltip } from 'flowbite-vue' 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 + + +