UNPKG

pxt-core

Version:

Microsoft MakeCode provides Blocks / JavaScript / Python tools and editors

20 lines (19 loc) 658 B
import * as React from "react"; import { ContainerProps } from "../util"; import { ButtonViewProps } from "./Button"; export interface TreeProps extends ContainerProps { role?: "tree" | "group"; title?: string; ariaLabelledby?: string; initialSelectedId?: string; } export interface TreeItemProps extends React.PropsWithChildren<ButtonViewProps> { role?: "treeitem"; initiallyExpanded?: boolean; id: string; onClick?: () => void; } export interface TreeItemBodyProps extends ContainerProps { } export declare const Tree: (props: TreeProps) => JSX.Element; export declare const TreeItem: (props: TreeItemProps) => JSX.Element;