Skip to content

Commit 39aa0e0

Browse files
tho-danSqrcz
andauthored
Fix: dropdown.md documentation (close inside example, slots) (#333)
* Fix: dropdown.md documentation (close inside example, slots) * chore: fix code style --------- Co-authored-by: Sqrcz <naorniakowski@slashlab.pl>
1 parent 83746a0 commit 39aa0e0

File tree

2 files changed

+14
-10
lines changed

2 files changed

+14
-10
lines changed

docs/components/dropdown.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import FwbDropdownExampleAlignment from './dropdown/examples/FwbDropdownExampleA
44
import FwbDropdownExampleListGroup from './dropdown/examples/FwbDropdownExampleListGroup.vue'
55
import FwbDropdownExampleColors from './dropdown/examples/FwbDropdownExampleColors.vue'
66
import FwbDropdownExampleTrigger from './dropdown/examples/FwbDropdownExampleTrigger.vue'
7+
import FwbDropdownExampleCloseInside from './dropdown/examples/FwbDropdownExampleCloseInside.vue'
78
</script>
89

910
# Vue Dropdown - Flowbite
@@ -272,7 +273,7 @@ import { FwbDropdown, FwbListGroup, FwbListGroupItem } from 'flowbite-vue'
272273

273274
## Dropdown - close inside
274275

275-
<fwb-dropdown-example-trigger />
276+
<fwb-dropdown-example-close-inside />
276277
```vue
277278
<template>
278279
<fwb-dropdown text="Bottom" close-inside>
@@ -317,7 +318,7 @@ import { FwbDropdown, ListGroup, ListGroupItem } from 'flowbite-vue'
317318
| hide | the dropdown is closed |
318319

319320
### Slots
320-
| Name | Description |
321-
|------------|-------------------|
322-
| default | dropdown content |
323-
| suffix | button suffix |
321+
| Name | Description |
322+
|---------|--------------------------------------------|
323+
| default | dropdown content |
324+
| trigger | replace button with custom trigger element |

docs/components/dropdown/examples/FwbDropdownExampleCloseInside.vue

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,20 @@
11
<template>
22
<div class="vp-raw">
3-
<fwb-dropdown>
3+
<fwb-dropdown
4+
close-inside
5+
text="Closes after click on child"
6+
>
47
<fwb-list-group>
5-
<fwb-list-group-item>
8+
<fwb-list-group-item hover>
69
Profile
710
</fwb-list-group-item>
8-
<fwb-list-group-item>
11+
<fwb-list-group-item hover>
912
Settings
1013
</fwb-list-group-item>
11-
<fwb-list-group-item>
14+
<fwb-list-group-item hover>
1215
Messages
1316
</fwb-list-group-item>
14-
<fwb-list-group-item>
17+
<fwb-list-group-item hover>
1518
Download
1619
</fwb-list-group-item>
1720
</fwb-list-group>

0 commit comments

Comments
 (0)