Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions docs/components/dropdown.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import FwbDropdownExampleAlignment from './dropdown/examples/FwbDropdownExampleA
import FwbDropdownExampleListGroup from './dropdown/examples/FwbDropdownExampleListGroup.vue'
import FwbDropdownExampleColors from './dropdown/examples/FwbDropdownExampleColors.vue'
import FwbDropdownExampleTrigger from './dropdown/examples/FwbDropdownExampleTrigger.vue'
import FwbDropdownExampleCloseInside from './dropdown/examples/FwbDropdownExampleCloseInside.vue'
</script>

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

## Dropdown - close inside

<fwb-dropdown-example-trigger />
<fwb-dropdown-example-close-inside />
```vue
<template>
<fwb-dropdown text="Bottom" close-inside>
Expand Down Expand Up @@ -317,7 +318,7 @@ import { FwbDropdown, ListGroup, ListGroupItem } from 'flowbite-vue'
| hide | the dropdown is closed |

### Slots
| Name | Description |
|------------|-------------------|
| default | dropdown content |
| suffix | button suffix |
| Name | Description |
|---------|--------------------------------------------|
| default | dropdown content |
| trigger | replace button with custom trigger element |
Original file line number Diff line number Diff line change
@@ -1,17 +1,20 @@
<template>
<div class="vp-raw">
<fwb-dropdown>
<fwb-dropdown
close-inside
text="Closes after click on child"
>
<fwb-list-group>
<fwb-list-group-item>
<fwb-list-group-item hover>
Profile
</fwb-list-group-item>
<fwb-list-group-item>
<fwb-list-group-item hover>
Settings
</fwb-list-group-item>
<fwb-list-group-item>
<fwb-list-group-item hover>
Messages
</fwb-list-group-item>
<fwb-list-group-item>
<fwb-list-group-item hover>
Download
</fwb-list-group-item>
</fwb-list-group>
Expand Down
Loading