primevue-mirror/components/lib/toolbar/Toolbar.vue

50 lines
1.1 KiB
Vue
Raw Normal View History

2022-09-06 12:03:37 +00:00
<template>
2023-03-28 12:20:20 +00:00
<div class="p-toolbar p-component" role="toolbar" :aria-labelledby="ariaLabelledby" v-bind="ptm('root')">
2023-04-19 07:47:46 +00:00
<div class="p-toolbar-group-start p-toolbar-group-left" v-bind="ptm('groupstart')">
2022-09-06 12:03:37 +00:00
<slot name="start"></slot>
</div>
2023-03-28 12:20:20 +00:00
<div class="p-toolbar-group-center" v-bind="ptm('groupcenter')">
2022-12-08 11:04:25 +00:00
<slot name="center"></slot>
</div>
2023-04-19 07:47:46 +00:00
<div class="p-toolbar-group-end p-toolbar-group-right" v-bind="ptm('groupend')">
2022-09-06 12:03:37 +00:00
<slot name="end"></slot>
</div>
</div>
</template>
<script>
import BaseComponent from 'primevue/basecomponent';
2022-09-06 12:03:37 +00:00
export default {
2022-09-14 11:26:01 +00:00
name: 'Toolbar',
extends: BaseComponent,
2022-09-14 11:26:01 +00:00
props: {
'aria-labelledby': {
type: String,
default: null
}
}
};
2022-09-06 12:03:37 +00:00
</script>
<style>
.p-toolbar {
display: flex;
align-items: center;
justify-content: space-between;
flex-wrap: wrap;
}
2022-12-08 11:04:25 +00:00
.p-toolbar-group-start,
.p-toolbar-group-center,
.p-toolbar-group-end {
display: flex;
align-items: center;
}
2022-09-06 12:03:37 +00:00
.p-toolbar-group-left,
.p-toolbar-group-right {
display: flex;
align-items: center;
}
</style>