werkbank
    Preparing search index...

    Function getAttributes

    • Extracts validation attributes (min, max, pattern, etc.) from a Valibot schema.

      Type Parameters

      • S extends BaseSchema<any, any, any>

      Parameters

      • schema: any

        The schema to extract attributes from.

      Returns Partial<InputAttributes>

      An object containing partial InputAttributes.

      Iterates through the schema's pipe and other properties to find constraints that can be represented as HTML attributes.