Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 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
25 changes: 13 additions & 12 deletions docs/components/dropdown.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import FwbDropdownExamplePlacement from './dropdown/examples/FwbDropdownExampleP
import FwbDropdownExampleAlignment from './dropdown/examples/FwbDropdownExampleAlignment.vue'
import FwbDropdownExampleListGroup from './dropdown/examples/FwbDropdownExampleListGroup.vue'
import FwbDropdownExampleTrigger from './dropdown/examples/FwbDropdownExampleTrigger.vue'
import FwbDropdownExampleCloseInside from './dropdown/examples/FwbDropdownExampleCloseInside.vue'
</script>

# Vue Dropdown - Flowbite
Expand Down Expand Up @@ -232,7 +233,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 @@ -261,13 +262,13 @@ import { FwbDropdown, ListGroup, ListGroupItem } from 'flowbite-vue'
## API

### Props
| Name | Values | Default |
|----------|--------|---------|
| placement | `DropdownPlacement` | `'bottom'` |
| text | `string` | `''` |
| transition | `string` | `''` |
| closeInside | `boolean` | `false` |
| alignToEnd | `boolean` | `false` |
| Name | Values | Default |
|-------------|---------------------|-------------|
| placement | `DropdownPlacement` | `'bottom'` |
| text | `string` | `''` |
| transition | `string` | `''` |
| closeInside | `boolean` | `false` |
| alignToEnd | `boolean` | `false` |

### Events
| Name | Description |
Expand All @@ -276,7 +277,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