You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
324 B
TypeScript
11 lines
324 B
TypeScript
import type { ComputedRef, InjectionKey } from 'vue'
|
|
|
|
export interface CFormFieldContext {
|
|
controlId: ComputedRef<string>
|
|
describedBy: ComputedRef<string | undefined>
|
|
invalid: ComputedRef<boolean>
|
|
required: ComputedRef<boolean>
|
|
}
|
|
|
|
export const cFormFieldKey: InjectionKey<CFormFieldContext> = Symbol('c-form-field')
|