UNPKG

@stratakit/react

Version:

A React component library for StrataKit

18 lines (17 loc) 930 B
import * as React from "react"; import type { IconButton as IuiIconButton } from "@itwin/itwinui-react"; import type { PolymorphicForwardRefComponent } from "./~utils.js"; type IuiIconButtonProps = React.ComponentProps<typeof IuiIconButton>; interface IconButtonProps extends Pick<IuiIconButtonProps, "isActive" | "label" | "labelProps" | "iconProps" | "title" | "size" | "styleType" | "htmlDisabled"> { label: Required<IuiIconButtonProps["label"]>; children: React.JSX.Element; /** NOT IMPLEMENTED. */ labelProps?: IuiIconButtonProps["labelProps"]; /** NOT IMPLEMENTED. */ size?: IuiIconButtonProps["size"]; /** PARTIALLY IMPLEMENTED. Only supports `"default"` and `"borderless"`. */ styleType?: IuiIconButtonProps["styleType"]; } /** @see https://itwinui.bentley.com/docs/button#iconbutton */ export declare const IconButton: PolymorphicForwardRefComponent<"button", IconButtonProps>; export {};