2022-09-06 12:03:37 +00:00
|
|
|
<template>
|
2022-09-14 11:26:01 +00:00
|
|
|
<div class="p-toolbar p-component" role="toolbar" :aria-labelledby="ariaLabelledby">
|
2022-12-08 11:04:25 +00:00
|
|
|
<div class="p-toolbar-group-start p-toolbar-group-left">
|
2022-09-06 12:03:37 +00:00
|
|
|
<slot name="start"></slot>
|
|
|
|
</div>
|
2022-12-08 11:04:25 +00:00
|
|
|
<div class="p-toolbar-group-center">
|
|
|
|
<slot name="center"></slot>
|
|
|
|
</div>
|
|
|
|
<div class="p-toolbar-group-end p-toolbar-group-right">
|
2022-09-06 12:03:37 +00:00
|
|
|
<slot name="end"></slot>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
export default {
|
2022-09-14 11:26:01 +00:00
|
|
|
name: 'Toolbar',
|
|
|
|
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>
|