Improve keyboard navigation on sidebar tree items

This commit is contained in:
Tom Moor
2022-09-17 19:47:16 -04:00
parent 58c1a83ef0
commit b68e58fad5
4 changed files with 19 additions and 2 deletions

View File

@@ -2,7 +2,7 @@ import * as React from "react";
import Tooltip, { Props as TooltipProps } from "~/components/Tooltip";
import { Action, ActionContext } from "~/types";
export type Props = {
export type Props = React.HTMLAttributes<HTMLButtonElement> & {
/** Show the button in a disabled state */
disabled?: boolean;
/** Hide the button entirely if action is not applicable */