<template>
    <cs-btn 
        :tooltip="tooltip"
        icon="mdi-keyboard-backspace"
        :caption="caption"
        :position="position"
        :outlined="outlined"
        :color="color"
        
        :click="() => $router.go(-1)"

        @keypresstab="$emit('keypresstab', $event)"
    />
</template>

<script>
    export default {

        props: {
            tooltip: {default: 'Înapoi'},
            caption: {default: null},
            position: {default: 'bottom'},
            outlined: {default: true},
            color: {default: null},
        },

        components: {
            CsBtn: require('./CsBtn').default,
        },

        name: 'CsBtnBack',
    }
</script>