Explorar el Código

grafana/ui: Add disabled prop on LinkButton (#19192)

Peter Holmberg hace 6 años
padre
commit
f445369d68
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  1. 3 1
      packages/grafana-ui/src/components/Button/AbstractButton.tsx

+ 3 - 1
packages/grafana-ui/src/components/Button/AbstractButton.tsx

@@ -19,7 +19,9 @@ export interface CommonButtonProps {
   className?: string;
 }
 
-export interface LinkButtonProps extends CommonButtonProps, AnchorHTMLAttributes<HTMLAnchorElement> {}
+export interface LinkButtonProps extends CommonButtonProps, AnchorHTMLAttributes<HTMLAnchorElement> {
+  disabled?: boolean;
+}
 export interface ButtonProps extends CommonButtonProps, ButtonHTMLAttributes<HTMLButtonElement> {}
 
 interface AbstractButtonProps extends CommonButtonProps, Themeable {