UNPKG

@coreui/vue

Version:

UI Components Library for Vue.js

22 lines (19 loc) 471 B
import { defineComponent, h } from 'vue' const CForm = defineComponent({ name: 'CForm', props: { /** * Mark a form as validated. If you set it `true`, all validation styles will be applied to the forms component. */ validated: Boolean, }, setup(props, { slots }) { return () => h( 'form', { class: [{ ['was-validated']: props.validated }] }, slots.default && slots.default(), ) }, }) export { CForm }