UNPKG

@base-ui/react

Version:

Base UI is a library of headless ('unstyled') React components and low-level hooks. You gain complete control over your app's CSS and accessibility features.

16 lines 791 B
import type * as React from 'react'; export type { BaseUIChangeEventDetails, BaseUIGenericEventDetails } from "../internals/createBaseUIEventDetails.js"; export type HTMLProps<T = any> = React.HTMLAttributes<T> & { ref?: React.Ref<T> | undefined; }; /** * Shape of the render prop: a function that takes props to be spread on the element and component's state and returns a React element. * * @template Props Props to be spread on the rendered element. * @template State Component's internal state. */ export type ComponentRenderFn<Props, State> = (props: Props, state: State) => React.ReactElement<unknown>; export type BaseUIEvent<E extends React.SyntheticEvent<Element, Event>> = E & { preventBaseUIHandler: () => void; readonly baseUIHandlerPrevented?: boolean | undefined; };