Adding class element to the filter body. This helps styling the size of the filter body. Allows to specify a size and scrollbar for filters with long lists of option.
Adding class element to the filter body.
This helps styling the size of the filter body. Allows to specify a size and scrollbar for filters with long lists of option.

Usage example
This example uses Box and tag prop together with the class to achieve a max length filter with a scroll bar (when needed)

code

<Box tag="facetfilter">
  <Filter onChange=... all=... key=... name=... active=... exclusive=... label=... inline=... choices=... />
</Box>

... custome css for the filter under the box

facetfilter .index-filter__body {
  max-height: $size-xsmall;
  overflow-y: auto;
}

grommet/grommet-index,nickjvm/grommet-index