ResultsMultiLayout
ResultsMultiLayout
is an uncontrolled component that listens to the application's layout
state and
renders results in a list
(ResultsList) or grid
(ResultsGrid)
respectively. Can be used in combination with the LayoutSwitcher
component to change the results layout in controllable way.
By default it renders results as a list.
Usage
<ResultsMultiLayout />
Props
overridableId
String
optionalAn optional string to define a specific overridable id.
Usage when overriding
const MyResultsMultiLayout = ({ layout }) => {
...
}
const overriddenComponents = {
"ResultsMultiLayout.element": MyResultsMultiLayout
};
Parameters
layout
String
The current selected layout. Possible values:
list
orgrid
.