ValyroUI Русская версия

Analytics Filter Bar

Dashboard filters. Pro · Charts and analytics › Analysis and scenarios

Dashboard toolbar: date range, removable filter chips, compare toggle, granularity and actions.

Installation

npx valyro-cli@latest login
npx valyro-cli@latest add analytics-filter-bar
npm install valyro-ui-pro

import 'valyro-ui-pro/styles.css';
import { AnalyticsFilterBar } from 'valyro-ui-pro';

Props

PropTypeDefault
valueAnalyticsFilterBarValueControlled value; use with onValueChange.
defaultValueAnalyticsFilterBarValueDEFAULT_VALUEInitial value when uncontrolled.
onValueChange(value: AnalyticsFilterBarValue) => voidCalled with the new value when it changes.
rangesAnalyticsFilterOption[]DEFAULT_RANGESDate-range presets. Default 24h / 7d / 30d / 90d.
customRangeLabelstringAdds a "custom" segment; selecting it sets range to "custom". It reads labels.customRange ("Custom…") until then and shows these dates (e.g. "Mar 1 – Mar 14") while selected.
fieldsAnalyticsFilterField[][]Fields offered by "Add filter".
granularitiesAnalyticsFilterOption[]DEFAULT_GRANULARITIESDefault Hourly / Daily / Weekly / Monthly.
actionsReactNodeRight-aligned slot, e.g. an export button.
labelsPartial<AnalyticsFilterBarLabels>Overrides for the built-in strings.

Related components

Previous: Metric Comparison · Next: Scenario Simulator · All Charts and analytics