mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2026-01-20 20:01:25 +00:00
28 lines
497 B
Vue
28 lines
497 B
Vue
<template>
|
|
<div
|
|
class="ds-form-item"
|
|
:class="$parentInput.stateClasses">
|
|
<ds-input-label
|
|
:label="$parentInput.label"
|
|
:for="$parentInput.id" />
|
|
<slot/>
|
|
<ds-input-error :error="$parentInput.error" />
|
|
</div>
|
|
</template>
|
|
|
|
<script lang="ts">
|
|
import { defineComponent } from 'vue';
|
|
|
|
/**
|
|
* @version 1.0.0
|
|
* @private
|
|
*/
|
|
export default defineComponent({
|
|
name: 'DsFormItem',
|
|
inject: ['$parentInput'],
|
|
});
|
|
</script>
|
|
|
|
<style lang="scss" src="./style.scss">
|
|
</style>
|