UNPKG

pxt-core

Version:

Microsoft MakeCode provides Blocks / JavaScript / Python tools and editors

16 lines (15 loc) 495 B
import { ControlProps } from "../util"; import { ButtonViewProps } from "./Button"; export interface DropdownItem extends ButtonViewProps { id: string; role?: "option" | undefined; } export interface DropdownProps extends ControlProps { id: string; selectedId: string; items: DropdownItem[]; getAriaLabel?: (value: string) => string; onItemSelected: (id: string) => void; tabIndex?: number; } export declare const Dropdown: (props: DropdownProps) => JSX.Element;