UNPKG

@inkline/inkline

Version:

Inkline is the Vue.js UI/UX Library built for creating your next design system

55 lines (50 loc) 2.02 kB
<i-dropdown trigger="click"> <i-button>Click Dropdown</i-button> <template #body> <i-dropdown-item>Action</i-dropdown-item> <i-dropdown-item>Another action</i-dropdown-item> <i-dropdown-item disabled>Disabled action</i-dropdown-item> <i-dropdown-divider /> <i-dropdown-item>Separated item</i-dropdown-item> </template> </i-dropdown> <i-dropdown trigger="hover"> <i-button>Hover Dropdown</i-button> <template #body> <i-dropdown-item>Action</i-dropdown-item> <i-dropdown-item>Another action</i-dropdown-item> <i-dropdown-item disabled>Disabled action</i-dropdown-item> <i-dropdown-divider /> <i-dropdown-item>Separated item</i-dropdown-item> </template> </i-dropdown> <i-dropdown trigger="focus"> <i-button type="submit">Focus Dropdown</i-button> <template #body> <i-dropdown-item>Action</i-dropdown-item> <i-dropdown-item>Another action</i-dropdown-item> <i-dropdown-item disabled>Disabled action</i-dropdown-item> <i-dropdown-divider /> <i-dropdown-item>Separated item</i-dropdown-item> </template> </i-dropdown> <i-dropdown :trigger="['focus', 'hover']"> <i-button>Multiple Events Dropdown</i-button> <template #body> <i-dropdown-item>Action</i-dropdown-item> <i-dropdown-item>Another action</i-dropdown-item> <i-dropdown-item disabled>Disabled action</i-dropdown-item> <i-dropdown-divider /> <i-dropdown-item>Separated item</i-dropdown-item> </template> </i-dropdown> <i-dropdown trigger="manual" v-model="visible"> <i-button @click="visible = !visible">Manual Dropdown</i-button> <template #body> <i-dropdown-item>Action</i-dropdown-item> <i-dropdown-item>Another action</i-dropdown-item> <i-dropdown-item disabled>Disabled action</i-dropdown-item> <i-dropdown-divider /> <i-dropdown-item>Separated item</i-dropdown-item> </template> </i-dropdown>