npm license npm download GitHub top language GitHub issues npm version

Vue Dropdown component

All components can be used outside of the Enso ecosystem.

For live examples and demos, you may visit laravel-enso.com


Install the package:

yarn add @enso-ui/dropdown

(within Enso, remember to cd into the client folder before installing front-end assets)



  • Dropdown,


  • CoreDropdown,


Import the component

import Dropdown from '@enso-ui/dropdown/bulma';

Or the renderless version:

import Dropdown from '@enso-ui/dropdown/renderless';


This is the the renderless dropdown component that can be built upon when creating a custom implementation.


  • disabled - boolean, optional, default false, if true, the component is disabled
  • manual - boolean, optional, default false, if set to true, hiding the component should be done manually


  • exposes a default scoped slot


  • open(), opens the dropdown item list
  • close(), closes the dropdown item list
  • attemptClose(), calls close above, unless in manual mode, in which case it does nothing
  • initPopper(), instantiates the Popper instance, used to display the item list
  • destroyPopper(), destroys the Popper instance, used to display the item list


  • open, when opening the dropdown
  • close, when closing the dropdown

This is the bulma styled component built upon its renderless version.


<dropdown class="is-right">
    <template v-slot:label>
        <figure class="image is-16x16">
            <img :src="`/images/corners/${toastrPosition}.svg`">
    <template v-slot:options>
        <a v-for="(position, key) in positions"
            :class="{ 'is-active': position === toastrPosition }"
            <figure class="image is-16x16 toastr-position">
                <img :src="`/images/corners/${position}.svg`">

A fade transition is used for the opening & closing of the dropdown.


  • trigger, for placing a control that should open the dropdown
  • label, for placing a label on the (default) button that opens the dropdown. If using the trigger slot above and implementing a custom control, you should not need to use the label slot
  • controls, for adding controls to the dropdown
  • options, the list of items in/from the dropdown goes here


All the props from the renderless component can be provided


You can create a custom dropdown with your own layout/template/transition


You will want to customize the dropdown width / height by applying your own css

Questions & Issues

For questions and support please use the issues functionality for this package's github repository.

Please make sure to search for existing issues before creating a new issue, and when opening a new issue, fill the required information in the issue template.

Issues not conforming to the guidelines may be closed immediately.


are welcome. Pull requests are great, but issues are good too.

Thank you to all the people who already contributed to Enso!