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

    Variable getButtonAriaProps

    getButtonAriaProps: (
        label: string,
        options?: {
            controls?: string;
            describedBy?: string;
            isExpanded?: boolean;
            isPressed?: boolean;
        },
    ) => {
        "aria-controls"?: string;
        "aria-describedby"?: string;
        "aria-expanded"?: boolean;
        "aria-label": string;
        "aria-pressed"?: boolean;
    }

    Type Declaration

      • (
            label: string,
            options?: {
                controls?: string;
                describedBy?: string;
                isExpanded?: boolean;
                isPressed?: boolean;
            },
        ): {
            "aria-controls"?: string;
            "aria-describedby"?: string;
            "aria-expanded"?: boolean;
            "aria-label": string;
            "aria-pressed"?: boolean;
        }
      • Generate ARIA props for a button

        Parameters

        • label: string

          Button label

        • Optionaloptions: {
              controls?: string;
              describedBy?: string;
              isExpanded?: boolean;
              isPressed?: boolean;
          }

        Returns {
            "aria-controls"?: string;
            "aria-describedby"?: string;
            "aria-expanded"?: boolean;
            "aria-label": string;
            "aria-pressed"?: boolean;
        }

        ARIA props object