Default

Function: default()

[object Object]

Defined in: app/components/UI/TriStateFilter.tsx:16

A specialized filter component that allows users to toggle between three states: Yes, No, and All.

This component is ideal for boolean filters that also require a "neutral" or "ignored" state (represented by null). It renders as a segmented control (button group) within a small Tile.

Parameters

props

The component properties.

label

[object Object]

The text label identifying what is being filtered.

onChange

(val) => void

Callback function triggered when a new state is selected.

value

boolean | null

The current state: true (Yes), false (No), or null (All).

Returns

[object Object]

Component

On this page