Brush
Examples
API Reference
Types come from the public API. A dash indicates no default is documented here.
ChartBrush props
Public source| Prop | Type | Default | Description |
|---|---|---|---|
key | KeepAliveKey<K, Ends> | undefined | '' | The child's identity among its parent's children of one component, or a kept child's among its author's. The empty string by default. |
onEmit | Show type((events: { readonly _tag: "SelectionObserved"; readonly range: { readonly start: number; readonly end: number; }; readonly kind: "cancel" | "keyboard" | "preview" | "commit"; }) => NoInfer<Msg> | undefined) | { readonly SelectionObserved: (event: { readonly _tag: "SelectionObserved"; readonly range: { readonly start: number; readonly end: number; }; readonly kind: "cancel" | "keyboard" | "preview" | "commit"; }) => NoInfer<Msg> | undefined; } | undefined | — | Handle the child's events with a callback, or supply one handler per tag for tagged events. Return a parent message to dispatch it, or `undefined` to ignore the event. |
props.data | Show typereadonly { readonly [x: string]: string | number | null; readonly date: number; readonly detail?: string; readonly category?: string; }[] | Required | |
props.id | string | Required | |
props.ariaLabel | string | Required | |
props.selection | { readonly start: number; readonly end: number; } | null | Required | |
props.dataKey | string | Required | |
props.line | { readonly horizontalInset?: number; } | — | |
props.color | string | 'var(--chart-1)' | |
props.height | number | 90 | |
props.width | number | 640 | |
props.responsive | boolean | — |