Skip to content

Commit

Permalink
feat: add to dropdown
Browse files Browse the repository at this point in the history
might as well be consistent
  • Loading branch information
JohnCampionJr committed Oct 25, 2023
1 parent 0e678e9 commit 1dcc5aa
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions components/base/BaseDropdown.vue
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@ const props = withDefaults(
* @deprecated use placement instead
*/
orientation?: 'start' | 'end'
/**
* Used a fixed strategy to float the component
*/
fixed?: boolean
/**
* The placement of the dropdown via floating-ui.
Expand Down Expand Up @@ -92,6 +96,7 @@ const props = withDefaults(
color: 'white',
label: '',
headerLabel: undefined,
fixed: false,
},
)
Expand Down Expand Up @@ -153,7 +158,9 @@ const placementValue = computed(() => {
leave-to-class="transform scale-95 opacity-0"
flip
:offset="props.flavor === 'context' ? 6 : 4"
:strategy="props.fixed ? 'fixed' : 'absolute'"
:placement="placementValue"
:adaptive-width="props.fixed"
:z-index="20"
>
<MenuButton as="template">
Expand Down

0 comments on commit 1dcc5aa

Please sign in to comment.