# IntelQI UI
> The IntelQI design system for Vue 3: components, page patterns, design tokens in light and dark, motion and data composables.
IntelQI UI (npm: intelqi-ui) is the design system of IntelQI, the education ERP made by Euclideum Solutions Private Limited, published as a Vue 3 component library. It gives every IntelQI product one look: core components, IntelQI components (UiSelect, UiMenuPanel, UiAvatar and more), page patterns (UiShell, RecordEditor, RecordListPage, UiAuthLayout), design tokens in light and dark, motion, and data composables (useList, useDoc, useCall). It is proprietary software of Euclideum Solutions Private Limited. Documentation: https://ui.intelqi.com. Source: https://github.com/Euclideum/intelqi-ui. IntelQI: https://intelqi.com. Euclideum: https://euclideum.com.
---
Source: https://ui.intelqi.com/docs/charts/areachart
# AreaChart
Lines with a fill, for volume over time. It is a `LineChart` that fills its
series by default, so the two take the same props. `seriesConfig[key].type`
changes how one series draws: `'line'`, `'bar'` or `'area'`.
## Stacked bands
`stacked` turns the light fills into solid bands that add up to the total, so
the top edge is the total and each band is a part of it. Only a band that stacks
onto another is solid. An area with nothing under it keeps its light fill, so it
never hides the marks behind it.
`stacked="normalized"` draws each band as its share of the total at that x
instead of its own value. The top edge becomes flat and the value axis is fixed
at 0-100. The data rows do not change, so the tooltip shows the measured number
next to the share. `maxSeries` limits how many series `splitBy` creates and adds
the rest into one "Others" band. The limit applies before the shares are
computed, so they still add up to 100. See [BarChart](/docs/charts/barchart)
for both.
## A single series
When not stacked, the fill fades out towards the axis, so lines stay readable
where they cross. Areas that stack into a band get a solid fill instead.
## Context in the tooltip
`tooltipColumns` names columns that show only in the tooltip. They get no
mark, no legend entry, no color and no place on the value axis. See
[LineChart](/docs/charts/linechart#context-in-the-tooltip).
## Hiding a series
A chart with more than one series draws a legend under the plot. Press an entry
to hide that band. The stack closes the gap, and a normalized stack recomputes
the shares over the bands that are left. Bind `v-model:hiddenSeries` to control
that list yourself. See [BarChart](/docs/charts/barchart#hiding-a-series).
## API Reference
---
Source: https://ui.intelqi.com/docs/charts/barchart
# BarChart
Bars for comparing categories, or a measure over time.
## Wide data
One `y` column per series. `xAxis.type` is inferred: a column of dates becomes
a time axis, anything else becomes categories. You pass functions to format the
axes and the tooltip. This example stores the chart as one typed object and
passes it with `v-bind`.
## Long data and stacking
Long data has one row per point, and `splitBy` names the column that splits
the rows into series. `stacked` sums those series into one column per
category.
## Shares instead of totals
`stacked="normalized"` draws a 100% stacked chart. Each value is drawn as its
share of its column, and the value axis is fixed at 0-100 so every column fills
the plot. `maxSeries` limits how many series `splitBy` creates. The rest are
added into one "Others" series, the same way `maxSlices` groups the smallest
slices of a donut. The chart keeps the largest series, measured over every x,
and keeps them in the order they appear in the data.
The data rows do not change, so the plot shows the share and the tooltip shows
both the share and the measured number. `yAxis.format` formats that number in
the tooltip. The axis ticks always show percentages, even if you set
`yAxis.format` or an `axisLabel.formatter` in that axis's `echartOptions`.
Shares are computed per stack. Two stacks with different `stackName`s each
reach 100, and a bar stack and an area stack are separate totals. A series that
stacks with nothing (a line, or a bar or area on its own) keeps its own values.
If its axis is fixed at 0-100, you get a warning in dev mode. Move it to `y2` to
give it its own scale. A `min` or `max` on a fixed axis is ignored, also with a
warning, because a column that stops short of the top no longer shows a whole.
`maxSeries` applies to `splitBy` only. A `y` list names each column, so no
column is dropped, and setting `maxSeries` gives a warning instead. The
"Others" series has the reserved key `__others__`, so a group that is really
named "Others" does not clash with it. A `seriesConfig.__others__` entry renames
or recolors it like any other series.
## Horizontal bars
`horizontal` moves the category axis to Y, so long labels stay readable.
`seriesConfig` sets the look of each series, keyed by series name. Here it
prints the value on each bar. `showDataLabels` on the chart prints them
on every series at once, and a `seriesConfig` entry overrides it for one.
## Labels that do not fit
The category axis measures its labels against the space available and shows
as much of each one as fits. If every label fits, nothing changes. If one does
not, the axis picks the layout that shows more text: flat and truncated in the
middle, or tilted to 45°, which uses the space below the axis. Wide slots stay
flat, because flat text is easier to read. Crowded slots tilt, where a flat
label would shrink to a few letters. All labels on the axis use the same layout,
because labels at two angles look like two axes.
A tilt is used only when it can label every category with space between the labels. When the slots are narrower than that, labels must be dropped in either layout, so the axis stays flat and labels every few categories instead, such as every seventh day of a month. The labels are spread evenly from the first category to the last, and each label is shown whole up to the length a tilted label can show.
A label from `xAxis.format` is measured and truncated the same way, in the middle.
There is no angle prop and no truncation length. The right angle changes with
the chart width, and the chart already knows the width and has measured the
text. A `horizontal` chart never tilts its labels: they are already one per line
down the side, so they are truncated to fit that column. A time axis never tilts
either. It picks its own ticks, and uses a larger interval instead of crowding
them.
## Counts
When every value on a value axis is a whole number, its ticks are whole numbers too, so a count of 2 never gets a tick at 0.5. This applies to `y`, `y2` and the value axis of a `horizontal` chart, each decided from its own series. Set `yAxis.integer` (or `y2Axis.integer`) to `true` or `false` to override it.
## A line among the bars
`seriesConfig[key].type` sets how one series draws: `'bar'`, `'line'` or
`'area'`. The other series use the component's default, so a `BarChart` with
one `'line'` series is a combo chart. Put a rate in `y2` instead of `y` to give
it its own scale.
The sequential ramp assigns colors by mark type, not by series order: lines
get the dark end and bars get the light colors. A bar is large enough to see in
a light color, but a 2px line in the same color disappears. The other palettes
keep series order, because the order of a custom list, a diverging ramp or a
categorical set has meaning.
Bars stack with bars and areas with areas. A line never stacks. `horizontal`
draws bars only. A series set to another type is drawn as a bar, with a warning
in dev mode.
## Targets and thresholds
`referenceLines` draws a line across the plot at a fixed value, such as a
quota, a break-even point or a release date. Each line takes a `value` and an
optional `label`, `color` and `dashed`. Reference lines are not series: they
have no legend entry and cannot be hidden.
`labelPlacement` moves the label when it covers something. It names an end of
the line and a side of it: `'end-top'` (the default), `'end-bottom'`,
`'start-top'` or `'start-bottom'`. The ends follow the direction of the axis the
line runs along, so an RTL chart swaps them. A vertical line has a rotated
label, and its two sides are left and right.
`axis` sets which axis `value` belongs to: `'y'` (the default) or `'y2'` for a
horizontal line at a value, `'x'` for a vertical line at a category or date.
`horizontal` swaps the two axes and the lines follow. The value axis stretches
to reach every line, so a target above the data stays in view, and goes up a
tick when a line at its top end leaves no room for the label.
## Context in the tooltip
`tooltipColumns` names columns that show only in the tooltip. They get no
mark, no legend entry, no color and no place on the value axis. See
[LineChart](/docs/charts/linechart#context-in-the-tooltip).
## Hiding a series
A chart with more than one series draws a legend under the plot. Press an entry
to hide that series, and the value axis rescales to the series that are left.
Bind `v-model:hiddenSeries` to start with a series hidden, or to hide series
from your own control. It holds series keys: a `y` column name for wide data, a
value of the `splitBy` column for long data, or `__others__` for the "Others"
series. `LineChart`, `AreaChart` and
`ScatterChart` take the same model.
## Selecting a bar
`select` reports the series, the value and the data row of the bar, so you can
open the records behind it. It fires on click, and on Enter or Space when the
keyboard cursor is on the bar.
## API Reference
---
Source: https://ui.intelqi.com/docs/charts/calendarheatmapchart
# CalendarHeatmapChart
Shows a value for each day, with weeks as columns and weekdays as rows.
## A year of days
`date` and `value` name the day and the value of each row. The day is a `Date` or an ISO string such as `2024-03-01`. A time or offset after the date is ignored. A string is the day it spells, but `new Date('2024-03-01')` is UTC midnight, which west of Greenwich is the day before, so build a `Date` with `new Date(y, m, d)`. Days with no row are drawn empty, so gaps show. `format` formats the numbers in the tooltip and on the scale under the calendar.
`weekStart` sets the weekday at the top of each column, `sunday` to `saturday`. Month and weekday names follow the dayjs locale, as the tooltip does, and so does the week start when `weekStart` is not set: Monday in `de` or `en-gb`, Sunday in `en`. An app that stores its own setting, such as Frappe's `first_day_of_the_week`, passes it lowercased.
## Rows on the same day
The chart draws one row per day and does not combine them: of two rows on the same day, the later one is drawn, as on `HeatmapChart`. Sum, count or average per day before the rows reach the chart. `select` reports the day, its value, and the row behind it.
## Longer ranges
`start` and `end` set the days drawn. Each defaults to the first or last day in the data, rounded out to the whole month. Given both, the chart draws the range even when no row falls in it, because an empty year is a reading too. With no data and no range, it shows the empty state. A range of a year or less draws as one band. A longer range draws in bands of twelve months from its first month, so a fiscal year from April is one band, not two halves. Each band has its years beside it: `2024` for a calendar year, `2023–24` for one that crosses into the next. The cells shrink so every band fits the card. Every band lays out twelve whole months, so the months line up from band to band, and only the days in the range are drawn.
## Scale
`palette`, `min` and `max` work as on [HeatmapChart](/docs/charts/heatmapchart). The scale covers the days in the range only. When no day is negative, it starts at 0. The ramp starts a step past its palest color, so every day with a row, 0 included, reads darker than a day without one.
One outlier can wash out the rest of the range: a day of 240 among days of 1 to 10 leaves every other day pale. Set `max` to where the ordinary days end. Days above it draw in the deepest color, and the scale reads `≥ 10`, so it does not claim that no day went higher. `min` works the same way at the low end.
The calendar always runs left to right, also in RTL. The header, scale and tooltip follow `dir`.
The calendar is one tab stop. Up and Down move a day, Left and Right a week, and Home and End go to the first and last day. Days with no row are reached as well and read as no data. Enter selects a day with data.
## API Reference
---
Source: https://ui.intelqi.com/docs/charts/chartcard
# ChartCard
The card a chart sits in. Use it around a plot you draw yourself, so it gets
the same border, background, radius and padding as the built-in charts.
```js
import { ChartCard } from 'intelqi-ui/charts'
```
It is a box with one slot. Give it a height: a chart fills the box it is in,
so a box with no height shows nothing.
## Removing the card style
`card` draws the border, background, radius and padding, and is on by default.
Set it to `false` when the chart is already inside a card of your own, so you do
not get a box inside a box. `NumberCard` takes the same prop.
The box stays `relative` and clips its content whatever `card` is set to,
because the plot draws inside the box and relies on it for layout.
## Direction
`dir` sets the layout direction to `'ltr'` or `'rtl'`. It defaults to
`document.documentElement.dir` and follows changes to it, so an app that sets
the direction on the root element does not need this prop.
The preview draws a radar chart, which the library does not include, inside `ChartCard`,
`ChartContainer` and `ChartLegend`. See
[Custom charts](/docs/charts/overview#custom-charts).
## API Reference
---
Source: https://ui.intelqi.com/docs/charts/chartcontainer
# ChartContainer
Lays out everything around the plot: the title, the value-axis titles, the
three states and the legend row. Every built-in chart uses it, so wrap a plot
you draw yourself in it to match the built-in charts.
```js
import { ChartContainer } from 'intelqi-ui/charts'
```
The default slot is the plot. It gets the space left after the title, axis
titles and legend.
## Title and actions
`title` names the chart and `subtitle` captions it. The row is only drawn when
one of them is set, or when something fills `#actions`.
`#actions` sits at the end of that row, opposite the title. Use it for a
period picker, a menu, or a link to the records behind the chart. It keeps its
width and the title truncates, because a truncated title is still readable but a
shrunk control is hard to press.
The header row is one title line tall. An action taller than that is centered on
the title instead of making the row taller.
`#title-suffix` goes right after the title text. Use it for an icon that
belongs to the title, such as a lock on a chart whose rows are filtered per
user. It keeps its width and the title truncates before it. It uses the title's
font size, so an icon sized in `em` scales with the title, which is smaller on a
`NumberCard`.
## Value-axis titles
`yAxisTitle` titles the primary value axis and `y2AxisTitle` the second one.
They are drawn as a row above the plot, not as echarts axis names, because an
axis name inside the plot has to be rotated to fit, which makes it hard to read.
Each title sits above the side its axis is on, so the row mirrors in RTL.
`axisTitlePlacement` moves the row: `'top'` by default, or `'bottom'` for a chart
whose value axis runs along the bottom. A horizontal `BarChart` uses `'bottom'`
and puts the titles at the far end, because the near end is above the category
labels, where a title would look like their heading.
The titles show only in the `ready` state, because there is no plot to title in
the other states.
## States
`loading`, `error` and `empty` switch the container between four states
(`ready` is the fourth). A non-empty `error` wins over `loading`, and `loading`
wins over `empty`.
The plot stays mounted in all four states. Unmounting it would dispose the
echarts instance and it would have to be built again, so it is hidden instead.
Each state has a slot that replaces its content: `#loading`, `#error` and
`#empty`. `#error` gets the message as a slot prop, so you can show a retry
button next to it. The loading placeholder fills the whole plot box, not a row
in the middle, so while a dashboard loads, each card keeps its shape in the
grid. See [States](/docs/charts/states).
## The legend
`#legend` is a row under the plot. Put [`ChartLegend`](/docs/charts/chartlegend)
in it. When the slot is empty, the container adds padding in place of the row, so a
chart with one series lines up with a chart that has several.
## Direction
`dir` sets the layout direction to `'ltr'` or `'rtl'`. It defaults to
`document.documentElement.dir`.
## API Reference
---
Source: https://ui.intelqi.com/docs/charts/chartlegend
# ChartLegend
The row of series names under a plot. Each entry shows a series name and its
color, and hides or shows the series when pressed.
```js
import { ChartLegend } from 'intelqi-ui/charts'
```
It holds no state. `items` is its only input, and its two events report what
the user did. The chart that owns the series decides what to do. Put it in the
`#legend` slot of `ChartContainer`.
## Entries
One `ChartLegendItem` per series, in the order the series are drawn:
| Field | What it is |
| --- | --- |
| `name` | Series identity, i.e. what `change` and `highlight` report. |
| `label` | The name as it should read. |
| `color` | The color the series is drawn in. |
| `hidden` | Whether the series is hidden. |
| `hint` | A muted note after the label, e.g. a donut slice's share. |
| `weight` | What the series is worth across the chart. Ranks the entries that do not fit. |
| `formattedValue` | A number printed beside the entry in the "+N more" list. |
A hidden entry keeps its place in the row and dims: the swatch fades and the
label turns gray. If the entry left the row, there would be no way to show the
series again.
## Many series
The legend takes one row at most. When every entry fits, the row shows them in
the order the series are drawn. When they do not, the row shows the entries
with the largest `weight`, as many as fit, and then a "+N more" button. A legend
that wrapped would take the plot's height, and one that scrolled would hide
series names that most users never scroll to.
"+N more" opens a [MultiSelect](/docs/components/multiselect) list of every
entry, largest `weight` first, with the drawn series checked. Checking or
unchecking a row emits `change` the way pressing an entry on the row does. The
arrow keys move through the list and Enter toggles a row. Past 15 entries, the
list has a search field, and matches keep the same order. The rows do not emit
`highlight`: only the entries on the row do.
An entry with no `weight` keeps its given place after the ranked ones, and so
does "Others". The line, area and bar charts weigh a series by the sum of its
values' magnitudes, which is also what `maxSeries` keeps, and print no number:
a sum is wrong for a rate or an average. `DonutChart` weighs a slice by its
value and prints it, since slices are parts of a whole. `ScatterChart` passes
no weight, so its groups keep their order.
## Toggling
`change` emits the `name` of the pressed entry. Toggle that series in your own
hidden list and pass the new `items` back.
Every entry is a button. The visible text is the series label, but the
accessible name says what pressing it does ("Hide Signups" or "Show Signups").
`aria-pressed` holds the current state.
## Highlighting
`highlight` emits the `name` of the entry under the pointer or with focus, and
`null` when it leaves. Use it to emphasize that series in the plot and dim the
rest. It fires on both hover and focus, so keyboard users get the same effect as
mouse users.
## API Reference
---
Source: https://ui.intelqi.com/docs/charts/charttooltip
# ChartTooltip
The values shown beside the pointer. It is HTML, not drawn on the canvas, so
it uses the app's fonts, colors and shadows, and a slot can replace its content.
```js
import { ChartTooltip } from 'intelqi-ui/charts'
```
Every built-in chart uses this tooltip. Use it directly when you draw the plot
yourself. On a built-in chart, use the `#tooltip` slot to replace its content.
## Showing it
The tooltip does not track the pointer itself. The plot tells it what to show
and where:
- `open` shows it. It draws nothing while `open` is false, or when `items` is
empty.
- `x` and `y` are viewport coordinates, i.e. `clientX` and `clientY`.
- `label` heads the rows, e.g. the category or the date the pointer is over.
- `items` are the rows.
- `rows` are the data rows behind the values, passed on to the slot. One row
for a point, cell, band or stage, every grouped row for a donut's "Others"
slice, and none for a total that does not come from one row.
- `dir` sets the layout direction. It defaults to
`document.documentElement.dir`.
## Rows
One `ChartTooltipItem` per row:
| Field | What it is |
| --- | --- |
| `name` | Series identity. |
| `label` | The series name as it should read. |
| `color` | The color the series is drawn in, shown as a swatch. |
| `value` | The raw number. |
| `formattedValue` | That number as it should print, e.g. through `format`. |
| `percent` | Share of the total, printed after the value. Part-to-whole charts only. |
| `kind` | `'series'` for a value the plot draws, `'context'` for one it does not. A `'context'` item has no color and prints below a divider. |
The tooltip prints `formattedValue`. `value` is for a slot that needs to do its
own math.
## Placement
The tooltip is teleported out of the chart and positioned against the viewport,
so a card that clips its content cannot clip the tooltip.
It sits 12px past the pointer, and flips to the other side of it when that would
run off the right edge or the bottom. Whatever is left is clamped to 4px inside
the window, so a tooltip near a corner still fits.
The size is measured after render, because slot content can be any size. The
tooltip stays hidden for the one frame the measurement takes, so it never shows
at the previous position first.
## Replacing the content
The default slot replaces the whole body, with `label`, `items` and `rows` as
slot props. Use it for content the rows cannot show, such as a sparkline, a
second measure or a link to the records behind the point.
```vue
{{ label }}
{{ item.label }}: {{ item.formattedValue }}
```
## API Reference
---
Source: https://ui.intelqi.com/docs/charts/colors
# Chart colors
Charts draw from three color ramps. Each is a set of `--chart-*` CSS
variables that ships with `intelqi-ui/charts` and has a dark theme value.
## Usage
### Picking a ramp
Pass a ramp name to `palette`, or a list of colors:
```vue
```
### Changing the colors
Set the variables in your own CSS to change every chart at once:
```css
:root {
--chart-categorical-1: oklch(0.55 0.2 260);
}
```
### Plot area
Four more variables color the plot area. Set one on any parent element to
change the charts inside it.
| Variable | Colors |
| --- | --- |
| `--chart-gridline` | The gridlines and the category axis line |
| `--chart-axis-line` | The line under the cursor |
| `--chart-inside-label` | Labels drawn on top of a bar or slice |
| `--chart-backdrop` | The background behind the plot, such as the gaps between heatmap cells. Unset by default: the chart uses the background of the nearest parent that has one. |
`--chart-gridline` and `--chart-axis-line` have a separate dark theme value,
so set them under `[data-theme='dark']` too. Set `--chart-backdrop` when the
chart sits on something it can't read a color from, such as an image.
---
Source: https://ui.intelqi.com/docs/charts/dashboard
---
# The preview on this page is `wide`, which needs the OnThisPage aside gone.
outline: false
---
# Dashboard
Each chart draws its own title, subtitle, legend and states, and fills the box
you give it. To build a dashboard, place charts in a grid. The page sets the
grid and the cards; the charts draw everything inside them.
---
Source: https://ui.intelqi.com/docs/charts/donutchart
# DonutChart
A ring that shows each category's share of a total.
## Share of a total
`category` and `value` name the two columns the ring needs. The center shows
the total, with `centerLabel` as its caption. Hovering a slice shows that
slice's value, name and share in the center instead.
`format` formats the numbers in the center and in the tooltip. The slice labels
show shares, not values, so `format` does not apply to them.
## Grouping the tail
`maxSlices` limits how many slices the ring draws, and "Others" counts as one
of them. So `maxSlices` of 4 draws three named slices plus "Others", as in this
example. If there are no more categories than the limit, the ring draws them all
with no "Others" slice. `select` reports the data rows behind the slice, and for
"Others" that is every grouped row.
## Keeping the rows' order
The biggest slice comes first by default. `order="rows"` draws the slices in the order the rows arrive instead, for categories that already have an order, such as ageing buckets or months. `maxSlices` still keeps the largest slices, and "Others" comes last.
## Pinning a color
`colors` pins a color to a category, so a slice keeps its meaning whatever its size. Key it by the category value, and by `OTHERS_KEY` for "Others". A category grouped into "Others" takes that slice's color. The other slices keep the palette colors they would have had. A color can be a CSS variable, such as `var(--ink-red-5)`.
```vue
```
## Half ring
`variant="half"` draws the ring as a semicircle, which fits a short card.
Ordered categories read better on the `sequential` ramp than on separate hues.
`showDataLabels` prints each slice's name and share next to the ring and
removes the center total, since the labels already show the shares.
`centerLabel` has no effect while it is on, and neither does `format` in the
center. The legend still shows below the plot, with each slice's share.
## Hiding slices
`v-model:hiddenSlices` works like `v-model:hiddenSeries` on an axis chart.
Bind it to hide slices from your own code, or to keep hidden slices after a
reload. When it is not bound, the legend manages the list. A donut draws slices,
not series, so it is the only chart with this name for the model.
## API Reference
---
Source: https://ui.intelqi.com/docs/charts/funnelchart
# FunnelChart
Shows drop-off from one stage to the next. Drawn as plain SVG.
## Stages
One row per stage, drawn in row order. Each stage shows its count and its share
of the first stage. The first stage shows no share, because there is no stage
before it. `format` formats the counts.
When the share of the previous stage is a different number, the tooltip shows it
too, so you can see the drop-off at each step without doing the math. Both rates
reach the `tooltip` slot as `'context'` items, named `ofFirst` and `ofPrevious`.
## Clicks
`select` reports the stage, its value and its row. `name` is the category value and `label` is the printed text.
## API Reference
---
Source: https://ui.intelqi.com/docs/charts/heatmapchart
# HeatmapChart
Shows a value across two dimensions, with one cell for each pair.
## Values in cells
`x`, `y` and `value` name a cell's column, row and value, so the data has one
row per cell. `showDataLabels` prints values inside the cells and hides any label
that would overlap its neighbor.
## Printing the categories
`xAxis.format` and `yAxis.format` format the categories of their axis, on the
axis and in the tooltip. Each gets the raw value from the row, not the category
string, so a date column can print as `Mar`.
They change how a category prints, not what it is. Two categories that print the
same stay two cells, and `select` still reports the raw value.
## Signed data
Use the `diverging` ramp for data with positive and negative values. It is
centered on zero. Set `min` and `max` to fix the scale, so the colors mean the
same thing across reloads.
## API Reference
---
Source: https://ui.intelqi.com/docs/charts/linechart
# LineChart
Lines for a value that changes over time.
## Trends
Two series on a time axis, with the comparison series dashed. Use `dashed` for
a projection, or for a comparison that was not measured like the rest.
`dashed`, `smooth`, `showDataPoints`, `connectNulls` and `showDataLabels` are
chart props and `seriesConfig` keys both. The chart-level value is every
series' default, and a `seriesConfig` entry overrides it for one series, on or
off. The chart prop is the only way to set every series of a `splitBy` chart,
because the data names those series, not you.
`xAxis.format` prints the date where a value is read, such as the tooltip. It does not reach the tick labels of a time axis, which keep their levels: the year that opens a run of months, then the months.
## A numeric x axis
`xAxis.type: 'value'` treats the x column as numbers on a scale. Each point sits
at its own value, so points at 5 and 60 are spaced by the difference, and rows
draw in numeric order whatever order they come in.
The default is `'category'`, which gives every row equal space. A column of
dates becomes `'time'` automatically, but a column of numbers never becomes a
scale on its own, because category columns often hold numbers. A horizontal
`BarChart` ignores this setting, because each bar's size comes from its slot.
`horizontal` is a `BarChart` prop; a line chart does not have it.
## A second value axis
`y2` names the value columns to measure against a second value axis, drawn on
the opposite side. Use it for a measure in another unit, like a rate next to
dollars. Set `y2Axis.min` and `max` to fix that scale, so the line shows how far
it is over or under plan instead of its own trend. The axis is drawn only when
`y2` names a column.
`y` and `y2` form one list, in order: every `y` column draws and takes its
color first, then every `y2` column. The three column props pair with the three
axis options (`x`/`xAxis`, `y`/`yAxis`, `y2`/`y2Axis`), and a series uses the
scale of the prop that names it. A `y2` series draws with the component's
default type, and `seriesConfig[key].type` can change it like any other series.
`splitBy` splits `y` only. A `y2` column has one value per category, not per
group, so it draws as one series next to the ones `splitBy` creates, and
`maxSeries` limits only those.
## Filling one series
`seriesConfig[key].type` sets how one series draws. Set `type: 'area'` to fill
one line of a `LineChart` while the rest stay unfilled. There is no separate
fill prop, because an area is a filled line. The same key takes `'bar'`, for a
combo chart.
## Targets and thresholds
`referenceLines` draws a line across the plot at a fixed value. `axis` sets
which axis `value` belongs to: `'y'` (the default) or `'y2'` for a horizontal
line at a value, `'x'` for a vertical line at a category, a date, or a number on
a numeric x axis. Each line also takes an optional `label`, `color`
and `dashed`.
`labelPlacement` moves the label when it covers something. See
[BarChart](/docs/charts/barchart#targets-and-thresholds).
A reference line is not a series. It has no legend entry, never shows in the
tooltip, and cannot be hidden, so a threshold always stays visible for
comparison. The value axis stretches to reach every line, so a threshold
outside the data stays in view. It goes up a tick when a line at its top end
leaves no room for the label.
## Context in the tooltip
`tooltipColumns` names columns that show only in the tooltip. They get no
mark, no legend entry, no color and no place on the value axis. Use it for a
number that does not belong on the same scale, such as the order count behind
a conversion rate.
```vue
```
Columns print after the series rows, in the order given. They are not sorted
by value, because a value in another unit cannot be compared with the series.
`name` is the row key. `label` defaults to it, and `format` formats the value.
A column of text prints as is.
For a custom tooltip, read `rows` from the `tooltip` slot instead.
```vue
{{ rows[0].orders }} orders
```
## Hiding a series
A chart with more than one series draws a legend under the plot. Press an entry
to hide that line, or bind `v-model:hiddenSeries` to control that list
yourself. See
[BarChart](/docs/charts/barchart#hiding-a-series).
## Gaps
Null values break the line, so a gap in the data shows as a gap.
`connectNulls` joins the line across them instead, on every series or on one
series through `seriesConfig`.
## API Reference
---
Source: https://ui.intelqi.com/docs/charts/numbercard
# NumberCard
Shows one number and how it changed since a comparison period.
## A number and its change
`negativeIsBetter` swaps the change colors for metrics like churn, where down is
good. `format` formats the value and the target. A `null` value shows the empty
state, because a missing number is not zero. The card shows the period it
compares against, but your app chooses that period, so put the control for it in
the `#caption` slot.
## Sparklines
`sparkline` adds a small trend line across the bottom of the card, with no
axes. `type` sets how it draws, as on other charts. `area` (the default) suits a
continuous value, `line` draws the line with no fill, and `bar` suits a value
counted per period.
`color` sets the color of the number. Use it when the card stands for a series
drawn in that color elsewhere on the page. The storage card above uses the color
of its trend line. It works like `seriesConfig[key].color` for a series. It does
not change the rest of the card, and the change keeps the color that shows
whether the number went up or down.
## Progress
`progress` draws a bar under the number and its change for how far the number has come towards a whole, such as disk used or revenue against a target. Pass `value` as a percent, the way `Progress` takes it. Past 100 the bar fills and a gap marks where 100 falls. The bar fills in the same blue as a sparkline, and `color` overrides it.
## The title row
`#actions` goes at the end of the row and `#title-suffix` right after the title
text. Neither makes the row taller: both are centered on the title, so the
number does not move. The card's title is smaller than a chart's, and
`#title-suffix` uses the title's font size, so an icon sized in `em` is smaller
here than on a `ChartContainer`.
## API Reference
---
Source: https://ui.intelqi.com/docs/charts/overview
# Charts
Eleven chart components in the `intelqi-ui/charts` subpath, drawn with
[echarts](https://echarts.apache.org). Props are flat and name the columns of
your data (`x`, `y`, `y2`, `splitBy`, `category`, `value`), so you can save a
chart as one typed object and render it with `v-bind="savedChart"`.
```js
import { BarChart, LineChart } from 'intelqi-ui/charts'
```
Importing the subpath also loads the `--chart-*` color tokens. See
[Chart colors](/docs/charts/colors) for the three ramps and how to change
them. The `palette` prop picks a ramp by name (`categorical`, `sequential` or
`diverging`) or takes a list of colors. Any color a chart takes can be a CSS
variable such as `var(--brand)`. It resolves against the chart's own element,
and again when the theme changes.
Each echarts chart registers only the echarts modules it needs, so importing
`DonutChart` loads only the pie module. The three axis charts share the bar and
line modules, because each of them can draw bars and lines. `FunnelChart` and
`NumberCard` do not use echarts. Both draw their own SVG. `PercentageBarChart`
does not use echarts either. It draws divs.
## Data shapes
The axis charts read either shape of the same data. Wide data keeps one column
per series, so `y` lists the columns to draw. Long data keeps one row per point,
so `y` names the single value column and `splitBy` names the column that splits
the rows apart. Pick whichever shape your query already returns.
## Marks
`BarChart`, `LineChart` and `AreaChart` are one chart with three defaults.
`seriesConfig[key].type` sets how one series draws (`'bar'`, `'line'` or
`'area'`), and the other series use the default of the component you picked.
Use it for a combo chart, or to fill one line of a `LineChart`.
## The charts
| Chart | Use it for |
| --- | --- |
| [BarChart](/docs/charts/barchart) | Grouped, stacked and horizontal bars |
| [LineChart](/docs/charts/linechart) | Trends, a second value axis, gaps |
| [AreaChart](/docs/charts/areachart) | Lines with a fill |
| [DonutChart](/docs/charts/donutchart) | Share of a total |
| [PercentageBarChart](/docs/charts/percentagebarchart) | Share of a total, as one bar |
| [FunnelChart](/docs/charts/funnelchart) | Drop-off from stage to stage |
| [HeatmapChart](/docs/charts/heatmapchart) | Size of a value across two dimensions |
| [CalendarHeatmapChart](/docs/charts/calendarheatmapchart) | A value for each day |
| [ScatterChart](/docs/charts/scatterchart) | Two measures against each other |
| [SankeyChart](/docs/charts/sankeychart) | Flow from a source to a target |
| [NumberCard](/docs/charts/numbercard) | One number and its change |
Every chart has the same
[loading, error and empty states](/docs/charts/states). Charts sit together in a
[dashboard](/docs/charts/dashboard) with no extra wrappers.
## Card, container, legend and tooltip
Every chart is built from these parts. Use them yourself to draw a chart the
library does not have. See [Custom charts](#custom-charts).
| Component | What it draws |
| --- | --- |
| [ChartCard](/docs/charts/chartcard) | The card: border, background and padding |
| [ChartContainer](/docs/charts/chartcontainer) | Title, axis titles and the three states |
| [ChartLegend](/docs/charts/chartlegend) | The row of series names |
| [ChartTooltip](/docs/charts/charttooltip) | The values beside the pointer |
## Custom charts
A chart has two layers. The plot is echarts inside a box. Around it are the
card, the title, the legend, the tooltip and the three states. The library
exports these parts, so a plot you draw yourself looks like a built-in chart on
the same dashboard.
Draw the plot with `useChart`. It creates the echarts instance once the
container has a size and the fonts have loaded, resizes it with the container,
and disposes it on unmount. Call `registerChartModules` with the echarts modules
your plot needs. `useChart` registers none for you.
Wrap the plot in [`ChartContainer`](/docs/charts/chartcontainer) for the title,
the value-axis labels and the states. Put
[`ChartLegend`](/docs/charts/chartlegend) in its `legend` slot, and
[`ChartTooltip`](/docs/charts/charttooltip) beside the plot for the same HTML
tooltip the built-in charts draw. [`ChartCard`](/docs/charts/chartcard) draws
the card.
Get the plot colors from `useChartTokens`. Pass it the element the plot draws
into. It returns `tokens`, which update when the theme changes, so the axes and
series switch theme with the rest of the page.
The three states are slots (`#loading`, `#error` and `#empty`) on the container
and on every built-in chart. To add a retry button to a failed query, fill the
`#error` slot; you do not need a custom chart. See
[States](/docs/charts/states).
```vue
```
`plans`, `radarOption`, `loading` and `error` are your own: the rows to draw,
the option builder over them, and the state of the query that fetched them.
`ChartCard` and `NumberCard` both take a `card` prop. Set it to `false` when
the chart is already inside a card of your own. The content then renders with no
border, background, radius or padding, so you do not get a box inside a box.
## Passing raw echarts options
`echartOptions` is deep-merged into the option the props build. Objects merge
key by key, and arrays replace. So `series: [...]` at chart level replaces all
generated series, including their data and colors. To change one series on an
axis chart, use `echartOptions` inside `seriesConfig` for that series.
An `animationDuration` set here applies to the first draw only. Every later draw
is instant.
## The echarts instance
Every echarts-backed chart hands back its instance as `chart` on a template ref.
`FunnelChart`, `NumberCard` and `PercentageBarChart` draw no echarts plot and
hand back nothing.
```vue
```
Use it when you need an echarts method that no option can express, such as
an image for a download button or chart coordinates for your own overlay.
It has three limits:
- The instance is `undefined` until the plot has a size and the fonts have
loaded. Watch it instead of reading it once in `onMounted`.
- Changes made through the instance do not last. On every reactive change the
component rebuilds the whole option and calls `setOption` with
`notMerge: true`. The next prop, data or theme change drops any highlight or
selection you dispatched, and any `setOption` you called. Use the instance for
one-time reads and actions, and keep state in props.
- `ECharts` is the echarts type, not a intelqi-ui type. A major echarts upgrade
can change it in a intelqi-ui minor release. intelqi-ui only promises that
`chart` exists and holds the live instance.
## Utilities
The subpath also exports three helpers. Built-in charts use them internally.
Call them yourself when you draw your own plot.
### `useChartTokens`
```ts
function useChartTokens(el: Ref): {
tokens: ComputedRef
}
```
Returns the plot colors, read from the `--chart-*` tokens on the element you
pass. Pass the element the plot draws into. Because the tokens come from that
element and not the document, a plot inside a dark panel on a light page gets
the panel's colors.
`tokens` updates when the page theme changes, so a `computed` option built from
it rebuilds and `setOption` runs again with the new colors. It holds the three
ramps (`categorical`, `sequential` and `diverging`) and the colors for axes,
grid and labels: `axisLabel`, `axisTitle`, `axisLine`, `gridline`, `dataLabel`,
`insideLabel` and `backdrop`.
To color the series of a built-in chart, use the `palette` prop instead.
`useChartTokens` is for a plot you draw yourself.
### `paletteColors`
```ts
function paletteColors(
palette: ChartPalette | undefined,
tokens: ChartTokens,
count: number,
fallback?: ChartPaletteName,
): string[]
```
Returns `count` colors from a palette. Built-in charts use it to pick their
series colors. `palette` takes the same values as the `palette` prop: a ramp
name, a list of colors, or `undefined`. When it is `undefined`, `fallback` names
the ramp to use (`'sequential'` by default).
A list is used in order and repeats from the start when it runs out.
`'categorical'` also repeats, so an eleventh series reuses the first color.
`'sequential'` and `'diverging'` spread the colors evenly over the ramp instead,
because a step on these ramps only has meaning next to the steps around it.
Three series get three evenly spaced colors, not the first three.
### `OTHERS_KEY`
The key of the series that collects the extra series when you set a limit:
`maxSeries` on an axis chart, `maxSlices` on a donut or a percentage bar. It is
a reserved key, so a group that is really named "Others" does not clash with
it. Use
`seriesConfig[OTHERS_KEY]` to rename or recolor it like any other series. Its
label is "Others" unless you set a `label`.
---
Source: https://ui.intelqi.com/docs/charts/percentagebarchart
# PercentageBarChart
A bar that shows each category's share of a total.
It is the ring of `DonutChart` unrolled, for a strip under a number. It draws plain divs, with no echarts, so a chart ref hands back nothing.
## Share of a total
`category` and `value` name the two columns the bar needs, the same two as `DonutChart`. Each slice is as wide as its share of the total, and the biggest slice comes first. Hovering a slice shows its value, name and share.
`format` formats the values in the tooltip and the legend. The shares are whole numbers that add up to 100.
## Grouping the tail
`maxSlices` limits how many slices the bar draws, and "Others" counts as one of them. So `maxSlices` of 4 draws three named slices plus "Others", as in this example. It defaults to 9, as on `DonutChart`, so a breakdown is cut into the same slices on either chart. If there are no more categories than the limit, the bar draws them all with no "Others" slice. `select` reports the data rows behind the slice, and for "Others" that is every grouped row.
## Keeping the rows' order
The biggest slice comes first by default. `order="rows"` draws the slices in the order the rows arrive instead, for categories that already have an order, such as ageing buckets or months. `maxSlices` still keeps the largest slices, and "Others" comes last.
## Pinning a color
`colors` pins a color to a category, so a slice keeps its meaning whatever its size. Key it by the category value, and by `OTHERS_KEY` for "Others". A category grouped into "Others" takes that slice's color. The other slices keep the palette colors they would have had. A color can be a CSS variable, such as `var(--ink-red-5)`.
```vue
```
## Hiding slices
`v-model:hiddenSlices` works as on `DonutChart`. Bind it to hide slices from your own code, or to keep hidden slices after a reload. When it is not bound, the legend manages the list. The remaining slices share the whole bar.
## API Reference
---
Source: https://ui.intelqi.com/docs/charts/sankeychart
# SankeyChart
Shows flow from one set of nodes to another, with one band for each row.
## Flow between two columns
`source`, `target` and `value` name the three columns a flow needs, so the data
has one row per band. The nodes are all distinct values from the source and
target columns. A node that is the target of one row and the source of another
sits between them, which is how you draw a flow with several stages. `select`
reports the data row of the band.
## Vertical flow
`vertical` makes the flow run downwards, which suits a tall card or a graph
with few stages. `format` formats every value the chart shows, on the node
labels and in the tooltip. `nodeAlign` sets where a node with no outgoing flow
sits: `justify` puts it at the far end, and `left` and `right` put it at that
end.
## Flow runs one way
A sankey places its nodes in columns, which only works if the flow never loops
back. A row whose target already flows into its source (including a node linked
to itself) has no column to go in, so it is dropped, with a warning in
development. Group the data into stages before you plot it.
## API Reference
---
Source: https://ui.intelqi.com/docs/charts/scatterchart
# ScatterChart
Plots two measures against each other, with one point for each row.
## Two measured axes
`x` and `y` name the two value columns. Both axes are numeric scales. A scatter
has no category axis and cannot be given one. Each scale follows the data
instead of starting at zero, so the points fill the plot. `label` names the
column that titles a point in the tooltip, and `select` reports the data row of
the point.
The `xAxis` title is drawn on its axis and the `yAxis` title above the plot, as
on the other axis charts.
## A third measure as size
`size` names a numeric column. Each point's diameter scales linearly with that
value, within a readable range. The scale covers the whole plot, not each group,
so a bubble size means the same thing everywhere. If every row has the same
value, all bubbles are drawn at the middle size, because there is no difference
to show and the smallest size would suggest they are the smallest values.
`splitBy` splits the rows into one group per distinct value, each with its own
color and legend entry. Press a legend entry to hide a group, or bind
`v-model:hiddenSeries` to control that list yourself.
## Quadrants and other reference lines
`referenceLines` draws a line across the plot at a fixed value, such as a
target, a threshold or a median. Each line takes a `value` and an optional
`label`, `color` and `dashed`. Reference lines are not series: they have no
legend entry or tooltip entry and cannot be hidden, so they stay visible when you
hide a group.
`labelPlacement` moves the label when it covers something. See
[BarChart](/docs/charts/barchart#targets-and-thresholds).
`axis` sets which scale `value` belongs to. Both scales are numeric here, so
`'x'` and `'y'` both take a number. On an axis chart, `'x'` takes a category or
a date instead, unless `xAxis.type` is `'value'`. `'y'` (the default) draws a
horizontal line and `'x'` a vertical one. A scatter has no second value axis, so
`'y2'` is treated as `'y'`, with a warning in dev mode.
To split a scatter into quadrants, add one reference line per axis. There is no
`quadrants` prop, because a quadrant divider is a reference line, and the axis
charts already use `referenceLines` for that.
Each scale stretches to reach the lines on it, so a line outside the data stays
in view.
## Naming the points
`showDataLabels` prints each point's name beside it, as in the chart above, so
you can see which quadrant each product is in without hovering. It prints the
`label` column. If no `label` is set, nothing prints and you get a warning in
dev mode. It does not print the x or y value, because the axes already show
them.
Points often overlap, and so would their names. A name that overlaps a
neighbor is hidden, so a dense plot shows only a few names.
## Formatting
`format` formats every number the chart shows. `xAxis.format` and
`yAxis.format` override it for their own axis, for a chart whose two measures
are in different units. The size measure has no axis, so `format` formats it in
the tooltip.
## API Reference
---
Source: https://ui.intelqi.com/docs/charts/states
---
# The preview on this page is `wide`, which needs the OnThisPage aside gone.
outline: false
---
# States
Every chart has the same loading, error and empty states. Set `loading` while
the query runs. Set `error` to a message when it fails. Pass no rows and the
chart shows that it has nothing to draw. Charts have no `empty` prop: the empty
state comes from the data. Rows that draw nothing also count as empty: a
column key that no row has, a column with no numeric values, or every series
hidden in the legend.
The states are drawn by the chart card, so a loading donut and a loading
heatmap look the same. A loading chart shows a placeholder the size of its plot,
not a spinner. While a dashboard loads, each card keeps its shape in the grid,
instead of showing many spinners. `NumberCard` has no plot and shows a
placeholder for its number the same way. `dir` sets the layout direction. It
defaults to `document.documentElement.dir`.
## Replacing a state
Each state is a slot on every chart: `#loading`, `#error` and `#empty`. When
you replace one, the card, title and legend stay in place. So you can add a
retry button next to an error message without building your own card. `#error`
gets the message as a slot prop.
`#loading` replaces the whole placeholder, so you can draw a placeholder that
matches your card's shape. Use it only when the default placeholder does not
fit the card. The default keeps all cards on a dashboard loading the same way.
---
Source: https://ui.intelqi.com/docs/components/alert
# Alert
A message inside the page that reports a status and offers a next step. For a
short message that goes away on its own, use [`toast`](./toast) instead.
## Examples
### Confirmations
Plain messages with only a × button. `dismissible` shows the button, and the
parent removes the alert on `@dismiss`.
### Status with an action
One-line status messages with one `primaryAction` each. `theme` colors the
icon and the action label.
### Warnings that need a decision
A `description` or a `secondaryAction` switches the alert to the banner
layout. The "Dismiss" action calls `dismiss()` from its `onClick` context.
### Trial ending
A banner with one action and a × button in the corner.
### Import in progress
`#prefix` replaces the status icon with a spinner, and `#description` holds
formatted text.
## Behavior
### Layout
The alert has no layout prop. With only a title, it is a single row. A
`description`, a `#description` slot or a `secondaryAction` switches it to the
banner layout, with the description and buttons below the title. The
container looks the same for every `theme`. Only the icon and the row action
label take the theme's color.
### Icon
`icon` has three states. Unset or `true` shows the theme's status icon. The
gray theme shows the info icon in black. `false` hides the icon. A `lucide-*`
class name or a Vue component shows that icon instead, in the theme's color.
```vue
```
### Actions
`primaryAction` and `secondaryAction` take `Button` props plus an `onClick`
that receives `{ dismiss }`. While an `onClick` that returns a promise is
running, its button shows a spinner and ignores more clicks. A `loading` value
you pass wins over this. A `secondaryAction` without a `primaryAction` logs a
warning in development.
The `#actions` slot replaces both buttons and receives `{ dismiss }`.
### Dismissing
The alert never hides itself. The × button and `dismiss()` only emit
`dismiss`. The parent hides the alert, usually with `v-if`.
## Accessibility
A `red` or `amber` alert has the `alert` role, so screen readers read it out
at once. Other themes have the `status` role, which screen readers read out
when they are idle. The × button is labelled "Dismiss".
## API Reference
---
Source: https://ui.intelqi.com/docs/components/avatar
# Avatar
Shows a person or a workspace as a photo, or as the first letter of their name
when there is no photo.
## Examples
### Comment thread
A photo when the person has one, and their initial in a theme color when they
do not.
### Assignees
Overlapping avatars on a task row. A ring in the page color separates each
avatar from the one under it, and a count stands in for the rest.
### Online status
The `#indicator` slot places a dot on the bottom-right corner. A class on the
dot sets its color.
```vue
```
### Verified badge
The indicator can hold an icon. Use a size with room for it, and give it text
for screen readers.
### Workspace switcher
Square avatars stand for workspaces and teams, round ones for people. The
default slot replaces the initial with any content, here an icon.
### Profile header
A `size-*` class sets a size beyond the largest `size` step.
## Behavior
### Fallback
The avatar shows the initial when `image` is empty or the image fails to load.
The initial is the first character of `label`, uppercased, so pass the full
name rather than initials: `label="Jane Cooper"` shows `J`. `theme` colors the
initial and its background. It has no effect on a photo.
### Custom sizes
A sizing class on the avatar (`size-*`, `w-*`, `h-*`) replaces the `size`
prop's width and height. The `size` prop still sets the text size of the
initial and the size of the indicator. A responsive class like
`sm:size-16` works alongside `size`: `size` sets the width on small screens,
and the class takes over from its breakpoint up.
### Indicator
The avatar cuts a circle out of its bottom-right corner for the indicator. The
gap around the indicator is see-through, so it matches the surface behind the
avatar, such as a hovered row, a popover or a dialog.
## Accessibility
The image uses `label` as its alt text. With no image, the initial carries
`label` as its accessible name.
When the name is shown next to the avatar, add `aria-hidden="true"`. It falls
through to the root, so screen readers do not read the name twice.
```vue
Jane Cooper
```
A status dot shows status with color only. Show the status as text next to the
avatar, or put text with the `sr-only` class in the indicator.
## API Reference
---
Source: https://ui.intelqi.com/docs/components/badge
# Badge
A small pill-shaped label for a status, a count or a short piece of metadata.
## Examples
### Event status
A red badge with an icon in `#prefix` flags an event that needs attention.
### Call metadata
Gray badges with an icon in `#prefix` show the date and length of a call, and
links to its recording and note.
### List status
The status column of a table maps each status to a `theme`. A colored dot in
`#prefix` repeats the color. An `outline` badge in the header shows the count.
### Row tags
Colored tags on a task row, a gray "+2" badge for the tags that do not fit,
and a due date.
### Reactions
An emoji in `#prefix` and a count as the label.
## Behavior
### Label and slots
`label` takes a string or a number. The default slot replaces it. `#prefix`
and `#suffix` place content before and after the label, such as an icon or a
dot. Their size follows `size`.
### Unsupported values
A `theme`, `variant` or `size` outside the supported values falls back to the
default (`gray`, `subtle`, `md`) and logs a warning in development.
## API Reference
---
Source: https://ui.intelqi.com/docs/components/bottomsheet
# BottomSheet
A panel that slides up from the bottom edge of a mobile screen and blocks the
page until it is closed. On desktop, render [`Dialog`](./dialog) instead: the
two close in different ways, so they are separate components.
## Examples
### Pick from a long list
The sheet grows with its content up to 90% of the screen height, then the
content scrolls inside it.
### Discard a draft
`:dismissible="false"` keeps the sheet open until the person picks one of the
buttons.
## Behavior
### Open state
Bind `v-model:open`. The sheet takes its height from its content, up to 90% of
the screen height. Past that, the default slot scrolls.
### Title
`title` shows a centered heading below the grab handle.
### Closing
The sheet closes on a click outside it, on `Escape`, and on a swipe down.
`dismissible` is `true` by default. Set it to `false` to turn off all three at
once, for a sheet that needs an answer.
### Dragging
A drag works from anywhere on the sheet, not only from the handle. A drag that
starts inside a scrolled list scrolls the list instead. It becomes a drag of
the sheet once the list is back at its top. A drag closes the sheet when it
goes far enough or ends in a fast flick. Otherwise the sheet moves back up.
Put `data-no-sheet-drag` on an element that has its own gesture, such as a
carousel, a map or a slider. A drag that starts there never moves the sheet:
```vue
```
### Buttons
The sheet has no `actions` prop. Put buttons in the default slot, inside the
scrolling content or below it, as the layout needs.
### Events
`update:open` fires as soon as the sheet starts to close. `after-leave` fires
when the close animation has finished. Use it to reset state that would
visibly change while the sheet is still sliding away.
## Accessibility
The sheet is a modal dialog. Focus stays inside it while it is open, and the
page behind it does not scroll. `title` is the sheet's accessible name. Without
a title, screen readers read "Bottom sheet".
## API Reference
---
Source: https://ui.intelqi.com/docs/components/breadcrumbs
# Breadcrumbs
A row of links that shows where the current page sits in a hierarchy, and lets
the user go back to a parent page.
## Examples
### Page header
Breadcrumbs on the left of a page header, with page actions on the right. The
last item is the current page. The items here navigate with `onClick`.
### Path to a person
The `#prefix` slot shows an icon or an avatar before each label. The slot reads
`icon` and `user`, which are extra fields on the items.
## Behavior
### Item shape
Each item needs a `label`. How the item navigates depends on the other fields:
- `route` renders a ``.
- `href` renders an ``.
- Neither renders a `