UNPKG

@yext/search-ui-react

Version:

A library of React Components for powering Yext Search integrations

18 lines (17 loc) 505 B
import { Result } from '@yext/search-headless-react'; import { DefaultRawDataType } from './DefaultRawDataType'; /** * The props provided to every {@link CardComponent}. * * @public */ export interface CardProps<T = DefaultRawDataType> { /** The result data provided to the card for rendering. */ result: Result<T> } /** * A functional component that can be used to render a result card. * * @public */ export type CardComponent<T = DefaultRawDataType> = (props: CardProps<T>) => JSX.Element;