(
inputSection: FormKitSection,
sectionsSchema: FormKitSectionsSchema = {}
)
| 249 | */ |
| 250 | /*@__NO_SIDE_EFFECTS__*/ |
| 251 | export 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 |
no test coverage detected