<template>
    <div class="p-toolbar p-component" role="toolbar" :aria-labelledby="ariaLabelledby" v-bind="ptm('root')">
        <div class="p-toolbar-group-start p-toolbar-group-left" v-bind="ptm('groupleft')">
            <slot name="start"></slot>
        </div>
        <div class="p-toolbar-group-center" v-bind="ptm('groupcenter')">
            <slot name="center"></slot>
        </div>
        <div class="p-toolbar-group-end p-toolbar-group-right" v-bind="ptm('groupright')">
            <slot name="end"></slot>
        </div>
    </div>
</template>

<script>
import ComponentBase from 'primevue/componentbase';
export default {
    name: 'Toolbar',
    extends: ComponentBase,
    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>
