UNPKG

@base-ui-components/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.

21 lines (20 loc) 674 B
import * as React from 'react'; import type { BaseUIComponentProps } from '../../utils/types.js'; /** * A link that opens the preview card. * Renders an `<a>` element. * * Documentation: [Base UI Preview Card](https://base-ui.com/react/components/preview-card) */ declare const PreviewCardTrigger: React.ForwardRefExoticComponent<PreviewCardTrigger.Props & React.RefAttributes<HTMLAnchorElement>>; declare namespace PreviewCardTrigger { interface State { /** * Whether the preview card is currently open. */ open: boolean; } interface Props extends BaseUIComponentProps<'a', State> { } } export { PreviewCardTrigger };