CIA Compliance Manager API Documentation - v1.1.6
    Preparing search index...

    Variable getSelectAriaProps

    getSelectAriaProps: (
        label: string,
        value: string,
        required?: boolean,
    ) => {
        "aria-describedby"?: string;
        "aria-label": string;
        "aria-required"?: boolean;
    }

    Type Declaration

      • (
            label: string,
            value: string,
            required?: boolean,
        ): {
            "aria-describedby"?: string;
            "aria-label": string;
            "aria-required"?: boolean;
        }
      • Generate ARIA props for a select/dropdown component

        Parameters

        • label: string

          Select label

        • value: string

          Current value

        • required: boolean = false

          Whether selection is required

        Returns { "aria-describedby"?: string; "aria-label": string; "aria-required"?: boolean }

        ARIA props object