Skip to content

Instantly share code, notes, and snippets.

@JasonStoltz
Created June 27, 2019 20:36
Show Gist options
  • Save JasonStoltz/17615595016992093d2e920a3750b66a to your computer and use it in GitHub Desktop.
Save JasonStoltz/17615595016992093d2e920a3750b66a to your computer and use it in GitHub Desktop.
Medium - Search UI - 9
<Layout
header={<SearchBox />}
bodyContent={<Results titleField="name" urlField="image_url" />}
sideContent={
<div>
<Sorting
label={"Sort by"}
sortOptions={[
{
name: "Relevance",
value: "",
direction: ""
},
{
name: "Name",
value: "name",
direction: "asc"
}
]}
/>
<Facet field="user_score" label="User Score" />
<Facet field="critic_score" label="Critic Score" />
<Facet field="genre" label="Genre" />
<Facet field="publisher" label="Publisher" isFilterable={true} />
<Facet field="platform" label="Platform" />
</div>
}
bodyHeader={
<>
<PagingInfo />
<ResultsPerPage />
</>
}
bodyFooter={<Paging />}
/>;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment