You've already forked AstralRinth
forked from didirus/AstralRinth
Small button refactor, overflow and popout menus
This commit is contained in:
43
docs/components/overflow-menu.md
Normal file
43
docs/components/overflow-menu.md
Normal file
@@ -0,0 +1,43 @@
|
||||
<script setup>
|
||||
const options = [
|
||||
{
|
||||
'id': 'like',
|
||||
'color': 'primary',
|
||||
'action': () => {}
|
||||
},
|
||||
{
|
||||
'id': 'report',
|
||||
'action': () => {}
|
||||
},
|
||||
{
|
||||
'id': 'delete',
|
||||
'color': 'danger',
|
||||
'action': () => {}
|
||||
}
|
||||
]
|
||||
</script>
|
||||
|
||||
# Popout Menu
|
||||
<DemoContainer>
|
||||
<OverflowMenu :options="options" class="btn">
|
||||
More options...
|
||||
<template #like>
|
||||
<HeartIcon /> Like
|
||||
</template>
|
||||
<template #report>
|
||||
<ReportIcon /> Report
|
||||
</template>
|
||||
<template #delete>
|
||||
<TrashIcon /> Delete
|
||||
</template>
|
||||
</OverflowMenu>
|
||||
</DemoContainer>
|
||||
|
||||
```vue
|
||||
<PopoutMenu class="btn" position="bottom" direction="right">
|
||||
Bottom going right
|
||||
<template #menu>
|
||||
Menu contents!
|
||||
</template>
|
||||
</PopoutMenu>
|
||||
```
|
||||
Reference in New Issue
Block a user