48 lines
977 B
Vue
Executable File
48 lines
977 B
Vue
Executable File
<template>
|
|
<div class="p-toolbar p-component" role="toolbar" :aria-labelledby="ariaLabelledby">
|
|
<div class="p-toolbar-group-start p-toolbar-group-left">
|
|
<slot name="start"></slot>
|
|
</div>
|
|
<div class="p-toolbar-group-center">
|
|
<slot name="center"></slot>
|
|
</div>
|
|
<div class="p-toolbar-group-end p-toolbar-group-right">
|
|
<slot name="end"></slot>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
name: 'Toolbar',
|
|
props: {
|
|
'aria-labelledby': {
|
|
type: String,
|
|
default: null
|
|
}
|
|
}
|
|
};
|
|
</script>
|
|
|
|
<style>
|
|
.p-toolbar {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.p-toolbar-group-start,
|
|
.p-toolbar-group-center,
|
|
.p-toolbar-group-end {
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.p-toolbar-group-left,
|
|
.p-toolbar-group-right {
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
</style>
|