MCPcopy Create free account
hub / github.com/formkit/formkit / useSchema

Function useSchema

packages/inputs/src/compose.ts:251–265  ·  view source on GitHub ↗
(
  inputSection: FormKitSection,
  sectionsSchema: FormKitSectionsSchema = {}
)

Source from the content-addressed store, hash-verified

249 */
250/*@__NO_SIDE_EFFECTS__*/
251export function useSchema(
252 inputSection: FormKitSection,
253 sectionsSchema: FormKitSectionsSchema = {}
254): FormKitSchemaExtendableSection {
255 const schema = outer(
256 wrapper(
257 label('$label'),
258 inner(icon('prefix'), prefix(), inputSection(), suffix(), icon('suffix'))
259 ),
260 help('$help'),
261 messages(message('$message.value'))
262 )
263 return (propSectionsSchema: FormKitSectionsSchema = {}) =>
264 schema(extend(sectionsSchema, propSectionsSchema) as FormKitSectionsSchema)
265}
266
267// ========================================================
268

Callers 2

createInputFunction · 0.90
createInputFunction · 0.90

Calls 2

iconFunction · 0.90
extendFunction · 0.90

Tested by

no test coverage detected