<script setup>
const props = defineProps(['row'])
</script>

<template>
  <div class="input-wrapper" :class="{ row: props.row }">
    <slot />
  </div>
</template>

<style scoped>
.input-wrapper {
  display: flex;
  flex-direction: column-reverse;
  gap: var(--spacing);
}

.input-wrapper.row {
  flex-direction: row;
}

@media (min-width: 48em) {
  .input-wrapper {
    display: flex;
    flex-direction: row;
    gap: var(--spacing);
  }
}
</style>