New! DataFilter is in beta, test it out and let us know what you think. This component is available on thestable branch.

DataFilter

filter one property in data

Props

options

The set of possible values for the property. Should not be used with 'range'.

array of strings
['US', 'NZ']
array of objects
[
  { label: 'United States', value: 'US' },
  { label: 'New Zealand', value: 'NZ' },
]

property

The property to filter.

string
"name"

range

The range of numeric values. Should not be used with 'options'. If not specified, the default step will be calculated as (max - min) / 20.

object
{ min: 1, max: 100, step: 5 }