UNPKG

@styleless-ui/react

Version:

Completely unstyled, headless and accessible React UI components.

22 lines (21 loc) 726 B
import * as React from "react"; import type { PolymorphicProps } from "../../typings"; interface OwnProps { /** * The content of the component. */ children?: React.ReactNode | ((ctx: { disabled: boolean; focusedVisible: boolean; }) => React.ReactNode); /** * The className applied to the component. */ className?: string | ((ctx: { disabled: boolean; focusedVisible: boolean; }) => string); } export type Props<E extends React.ElementType> = PolymorphicProps<E, OwnProps>; declare const ExpandableTrigger: <E extends React.ElementType<any>, R extends HTMLElement>(props: Props<E>, ref: React.Ref<R>) => JSX.Element; export default ExpandableTrigger;