React SDK

Results

The Results component is used to display results response from a search query.

Usage

Additional imports used in the examples:

Editable Example

Loading...

Grid display

Editable Example

Loading...

Props

NameTypeDefaultDescription
appearancelist | gridThe controlled value, passing this means you're ignoring the value in context.
defaultAppearancelist | gridlistThe uncontrolled value, will override the context value on mount.
showImagebooleantrueSets to show images
imageAspectRationumber | { list: number, grid: number}1The aspect ratio to force images to render to.
imageObjectFitstring | { list: string, grid: string }containThe aspect ratio to force images to render to. Valid objectFit values can be found in image props.