<template>
  <div>
    <div class="columns-layout">
      <slot />
    </div>
  </div>
</template>

<script lang="ts">
import { Vue, Component } from 'vue-property-decorator'

@Component({
  name: 'columns-layout'
})
export default class ColumnsLayout extends Vue {
}
</script>

<style lang="scss" scoped>
  .columns-layout {
    display: flex;
  }

  .columns-layout > * {
    display: block;
    flex-basis: 0;
    flex-grow: 1;
    flex-shrink: 1;
  }

  .columns-layout > *:not(:first-child) {
    margin-left: 1em;
  }
</style>
