Commit ceeae335 authored by Konrad Mohrfeldt's avatar Konrad Mohrfeldt

make auto-grid root element type configurable

some of our auto-grids are actually lists so the grid should reflect
that.
parent 8327d840
<template>
<div class="grid" :style="style">
<component :is="tag || 'div'" class="grid ma-0 pa-0" :style="style">
<slot />
</div>
</component>
</template>
<script>
......@@ -15,7 +15,8 @@
defaultSize: {
type: Number,
default: 1
}
},
tag: String
},
computed: {
style () {
......@@ -33,8 +34,12 @@
}
</script>
<style>
<style lang="scss">
.grid {
display: grid;
> li {
display: block;
}
}
</style>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment