Skip to main content

<Results/>

A wrapper component for the product grid and filters

Example

index.tsx
import {Results, ProductGrid,FastSimonApi,SearchBox,Filters} from "fast-component-library";
import React from "react";

export const App = () => {
return (
<FastSimonApi storeID={1} uuid={"rand-omuu-id12-3456"}>
<header>
Search: <SearchBox/>
</header>
<Results>
<Filters/>
<ProductGrid/>
</Results>
</FastSimonApi>
)
}

Props

OptionTypeDescription
All div base propsAll div base propsAll div base props
ratioRatio (default=defaultRatio)Ratio of filters and product grid

Types

interface Ratio {
FilterRatio: string,
ProductRatio: string
}

const defaultRatio: Ratio = {
FilterRatio: "max(20%, 230px)",
ProductRatio: "80%"
}