@stratakit/react
Version:
A React component library for StrataKit
22 lines (21 loc) • 1.2 kB
TypeScript
import * as React from "react";
import type { ExpandableBlock as IuiExpandableBlock } from "@itwin/itwinui-react";
import type { PolymorphicForwardRefComponent } from "./~utils.js";
type IuiExpandableBlockProps = React.ComponentProps<typeof IuiExpandableBlock>;
interface AccordionProps extends Pick<IuiExpandableBlockProps, "status" | "isExpanded" | "onToggle" | "children" | "size" | "styleType" | "disabled" | "title" | "caption" | "endIcon"> {
/** NOT IMPLEMENTED. */
status?: IuiExpandableBlockProps["status"];
/** NOT IMPLEMENTED. */
size?: IuiExpandableBlockProps["size"];
/** NOT IMPLEMENTED. */
styleType?: IuiExpandableBlockProps["styleType"];
/** PARTIALLY IMPLEMENTED: Trigger is disabled but disabled styling is not yet implemented. */
disabled?: IuiExpandableBlockProps["disabled"];
/** NOT IMPLEMENTED. */
caption?: IuiExpandableBlockProps["caption"];
/** PARTIALLY IMPLEMENTED: Now accepts `React.JSX.Element` instead of `React.ReactNode` */
endIcon?: React.JSX.Element;
}
/** @see https://itwinui.bentley.com/docs/expandableblock */
export declare const ExpandableBlock: PolymorphicForwardRefComponent<"div", AccordionProps>;
export {};