-
-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add facet-based search refinements to UI
Refine the listing based on keywords and content type. Note that all these attributes must be configured as "facets" in Algolia.
- Loading branch information
1 parent
e11316b
commit 3fe4cef
Showing
3 changed files
with
78 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
/* | ||
* Styled version of the Algolia InstantSearch RefinementList component. | ||
* | ||
* https://www.algolia.com/doc/api-reference/widgets/refinement-list/react/ | ||
*/ | ||
|
||
import styled from 'styled-components'; | ||
import { RefinementList as BaseRefinementList } from 'react-instantsearch-dom'; | ||
|
||
const RefinementList = styled(BaseRefinementList)` | ||
.ais-RefinementList-labelText { | ||
margin-left: var(--astropy-size-s); | ||
} | ||
`; | ||
|
||
export default RefinementList; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters