# intelqi-ui
> IntelQI UI (npm: intelqi-ui) is the design system of IntelQI, the education ERP by Euclideum Solutions Private Limited, as a Vue 3 component library: components, IntelQI components, page patterns (app shell, record editor, record lists, sign-in), design tokens in light and dark, motion and data composables. Proprietary software of Euclideum; the full documentation as one file is at https://ui.intelqi.com/llms-full.txt.
Built on Vue 3, TailwindCSS, reka-ui, TipTap, echarts and IBM Carbon icons (answering the `lucide-*` class names). Distributed as the `intelqi-ui` npm package.
Three cross-cutting conventions to know before reading anything else:
- **Not everything is on the root entry.** The package ships one export per family: `intelqi-ui` (components, data fetching, utilities), `intelqi-ui/list`, `intelqi-ui/charts`, `intelqi-ui/editor`, `intelqi-ui/code-editor`, `intelqi-ui/experimental`, `intelqi-ui/icons`, `intelqi-ui/tailwind`, `intelqi-ui/vite`, `intelqi-ui/vitepress`, `intelqi-ui/style.css`. Importing a list or a chart from `'intelqi-ui'` does not resolve.
- **Color = `variant` + `theme`.** `variant` is visual style (`solid | subtle | outline | ghost`); `theme` is color tone (`gray | blue | red | green | …`). No `intent` / `severity` / `appearance` axis.
- **Icons are CSS classes.** Render as ``. Props that accept icons take the namespaced string `"lucide-edit"`.
## IntelQI design system
- [Overview](https://ui.intelqi.com/docs/intelqi/overview): what IntelQI adds, how it is switched on (`intelqi-ui/style.css` + `FrappeUIProvider`), the type and control scale.
- [Tokens](https://ui.intelqi.com/docs/intelqi/tokens): the `dash-*` palette as RGB channels, accent and gradient, type, radii, motion.
- [Components](https://ui.intelqi.com/docs/intelqi/components): `UiSelect`, `UiSort`, `UiCheck`, `UiRadio`, `UiMenuPanel`, `UiAvatar`, `UiNumber`, `UiLoadingIndicator`, glows and the rest; `setBrand`.
- [Page patterns](https://ui.intelqi.com/docs/intelqi/pages): `UiShell`, `RecordEditor`, `RecordSection`, `RecordListPage`, `UiAuthLayout`, `FullScreenPage`.
- [Behaviours](https://ui.intelqi.com/docs/intelqi/behaviours): gliding highlight, magnetic buttons, the press, appear, `installIntelQI`, `v-scroll-fade`, `v-dial`, `v-magnetic`.
- [Custom corner](https://ui.intelqi.com/docs/intelqi/custom-corner): each person's look, shared with the desk.
- [With IntelQI Theme](https://ui.intelqi.com/docs/intelqi/intelqi-theme): the desk and portal app, the shared palette, the site's brand (`site_look`).
## Getting started
- [Introduction](https://ui.intelqi.com/docs/introduction): what intelqi-ui is, motivation, products using it.
- [Installation](https://ui.intelqi.com/docs/getting-started): the install every setup shares: Tailwind preset wiring, `FrappeUIProvider`, TypeScript config.
- [Frappe app](https://ui.intelqi.com/docs/getting-started/frappe): the Vite plugin, dev proxy, CSRF, boot data, the `www` page and the production build.
- [Standalone app](https://ui.intelqi.com/docs/getting-started/standalone): a plain Vite app; which sub-plugins to drop and which APIs assume a Frappe server.
- [Tailwind setup](https://ui.intelqi.com/docs/getting-started/tailwind): wiring the preset into an app, what it replaces, the `content` export.
## Components
All from the `intelqi-ui` root entry.
- [Alert](https://ui.intelqi.com/docs/components/alert): inline status row or banner; a title alone renders one row, a description or second action switches to a banner.
- [Avatar](https://ui.intelqi.com/docs/components/avatar): user/entity avatar with image or label-derived initials.
- [Badge](https://ui.intelqi.com/docs/components/badge): status pill; same `variant` + `theme` axes as Button.
- [BottomSheet](https://ui.intelqi.com/docs/components/bottomsheet): panel that slides up from the bottom edge; the mobile counterpart to Dialog, same modal semantics.
- [Breadcrumbs](https://ui.intelqi.com/docs/components/breadcrumbs): page-header trail; takes `items: { label, route?, href?, onClick? }[]`.
- [Button](https://ui.intelqi.com/docs/components/button): primary trigger element; `label`, `icon`/`iconLeft`/`iconRight`, `loading`/`loadingText`, `disabled`, `tooltip`, and `route`/`link` for nav.
- [Checkbox](https://ui.intelqi.com/docs/components/checkbox): boolean input; standard labeling contract.
- [Combobox](https://ui.intelqi.com/docs/components/combobox): single-select with search; `v-model` value + `v-model:query`. Set `filterable="false"` when the options come from a server search, or the client re-filters the ranked results away.
- [ContextMenu](https://ui.intelqi.com/docs/components/contextmenu): right-click menu for surfaces, rows and canvas elements; opens at the cursor.
- [DatePicker](https://ui.intelqi.com/docs/components/datepicker): date input; also DateRangePicker (range is `string[]`).
- [DesktopShell](https://ui.intelqi.com/docs/components/desktopshell): the desktop app frame; arranges `SidebarRail` and `Sidebar` beside the content, and owns the pinned `PageHeaderTarget` and scroll region.
- [Dialog](https://ui.intelqi.com/docs/components/dialog): modal overlay; `v-model:open`, `title`/`message`/`icon`/`theme`/`actions`/`size`/`position`/`dismissible`/`bare`. `icon` takes a `lucide-*` class name or a component, and `theme` colors its badge: `icon="lucide-trash-2" theme="red"`. The old `{ name, theme }` icon object renders an empty badge. Imperative API: `dialog.confirm`, `dialog.prompt`, `dialog.danger`. There is no `dialog.alert`.
- [Divider](https://ui.intelqi.com/docs/components/divider): horizontal/vertical rule.
- [Dropdown](https://ui.intelqi.com/docs/components/dropdown): action menu anchored to a trigger; takes `options` (flat or grouped).
- [Duration](https://ui.intelqi.com/docs/components/duration): text input for a length of time; `v-model` is **seconds**, the user types any common duration notation.
- [ErrorMessage](https://ui.intelqi.com/docs/components/errormessage): inline error display.
- [FileUploader](https://ui.intelqi.com/docs/components/fileuploader): Frappe-native file upload with progress.
- [FormControl](https://ui.intelqi.com/docs/components/formcontrol): the default labeled-field wrapper and a thin dispatcher; `type` is `TextInputTypes | "textarea" | "select" | "checkbox" | "combobox" | "multiselect" | "daterange" | "datetime"`, and type-specific props follow the resolved child component.
- [FormLabel](https://ui.intelqi.com/docs/components/formlabel): label text plus the required indicator, for custom controls that need the same markup.
- [FrappeUIProvider](https://ui.intelqi.com/docs/components/frappeuiprovider): mounts the imperative `dialog.*` and `toast.*` portals. Wrap the app root with it once.
- [HoverCard](https://ui.intelqi.com/docs/components/hovercard): floating panel on pointer rest or focus, for profile and link previews. Sighted-only context.
- [Icon](https://ui.intelqi.com/docs/components/icon): renders one icon from any accepted form (a `lucide-*` string, an emoji, or a component). Most components take an icon prop and render it through `Icon` internally.
- [ItemListRow](https://ui.intelqi.com/docs/components/itemlistrow): single-row list item primitive.
- [KeyboardShortcut](https://ui.intelqi.com/docs/components/keyboardshortcut): renders a combo such as `Mod+K` as styled keys; `Mod` resolves per platform.
- [KeyboardShortcutsDialog](https://ui.intelqi.com/docs/components/keyboardshortcutsdialog): lists every shortcut registered with `useKeyboardShortcut`. Mount once, bind `v-model:open`; it has no trigger of its own.
- [LoadingText](https://ui.intelqi.com/docs/components/loadingtext): Spinner with a label, for inline "Loading…" states.
- [MobileShell](https://ui.intelqi.com/docs/components/mobileshell): the mobile app frame; pinned header with safe-area padding, native-scrolling content, `#nav` slot. A separate family from DesktopShell. The same page documents `MobileNav`, the bottom tab bar for `#nav`; each `MobileNavItem` is one equal-width tab.
- [MultiSelect](https://ui.intelqi.com/docs/components/multiselect): multi-value select; value is `(string | number)[]`.
- [PageHeader](https://ui.intelqi.com/docs/components/pageheader): app-shell headers (`PageHeader`, `PageHeaderMobile`, `PageHeaderBase`). A page declares its header and it renders into the layout's ``.
- [Password](https://ui.intelqi.com/docs/components/password): masked input with show/hide.
- [Popover](https://ui.intelqi.com/docs/components/popover): anchored floating panel; `v-model:open`, a `#trigger` slot and the default slot for the body, positioned with `side` + `align`. The v0 `#target` / `#body` slots and `placement` are gone.
- [Progress](https://ui.intelqi.com/docs/components/progress): linear progress bar.
- [Radio](https://ui.intelqi.com/docs/components/radio): single choice from a set; `RadioGroup` owns the value, each `Radio` declares one.
- [Rating](https://ui.intelqi.com/docs/components/rating): star-rating input.
- [ScrollArea](https://ui.intelqi.com/docs/components/scrollarea): styled cross-browser scroll container with overlay scrollbars. A general primitive, not app-shell specific.
- [Select](https://ui.intelqi.com/docs/components/select): fixed-options single-value select.
- [SettingsDialog](https://ui.intelqi.com/docs/components/settingsdialog): settings modal with a sidebar of grouped tabs; composed from building blocks, not a config object.
- [Sidebar](https://ui.intelqi.com/docs/components/sidebar): app-shell sidebar primitive.
- [SidebarRail](https://ui.intelqi.com/docs/components/sidebarrail): the narrow icon column of an app shell; a bare 50px frame plus `SidebarRailItem` cells, laid out with plain flex utilities. Composes beside `Sidebar` or renders alone; it is not a collapsed mode of it.
- [Skeleton](https://ui.intelqi.com/docs/components/skeleton): placeholder block shown in place of content while data loads.
- [Slider](https://ui.intelqi.com/docs/components/slider): numeric range input.
- [Spinner](https://ui.intelqi.com/docs/components/spinner): indeterminate loading state.
- [Switch](https://ui.intelqi.com/docs/components/switch): boolean toggle for settings.
- [TabButtons](https://ui.intelqi.com/docs/components/tabbuttons): segmented control with radiogroup semantics, for a filter, setting or form field.
- [Tabs](https://ui.intelqi.com/docs/components/tabs): full content tabs.
- [Textarea](https://ui.intelqi.com/docs/components/textarea): multi-line text input.
- [TextInput](https://ui.intelqi.com/docs/components/textinput): single-line text input.
- [ThemeSwitcher](https://ui.intelqi.com/docs/components/themeswitcher): light / dark / system picker; drives `` through `useColorScheme` with no wiring.
- [TimePicker](https://ui.intelqi.com/docs/components/timepicker): time input.
- [Toast](https://ui.intelqi.com/docs/components/toast): imperative notifications: `toast.success/error/warning/info`.
- [Tooltip](https://ui.intelqi.com/docs/components/tooltip): hover hint; not for actionable content (use Popover/Dropdown).
- [Tree](https://ui.intelqi.com/docs/components/tree): hierarchical list.
## Charts
Eleven chart components on the `intelqi-ui/charts` subpath, drawn with echarts. Props are flat and name the columns of your rows; the column names differ per family. Every chart draws its own header, tooltip and states, and fills the box you give it, so size it from the wrapper: there is no `height` prop.
- [Overview](https://ui.intelqi.com/docs/charts/overview): the shared prop model and how a chart reads its data.
- [Colors](https://ui.intelqi.com/docs/charts/colors): the three `--chart-*` color ramps, `palette`, and the plot-area variables.
- [BarChart](https://ui.intelqi.com/docs/charts/barchart): bars for comparing categories, or a measure over time; `x`, `y`, optional `y2`, `splitBy` and `horizontal`.
- [LineChart](https://ui.intelqi.com/docs/charts/linechart): lines for a measure over time; `x`, `y`, optional `y2` and `splitBy`.
- [AreaChart](https://ui.intelqi.com/docs/charts/areachart): the line family with a fill; same props as LineChart.
- [DonutChart](https://ui.intelqi.com/docs/charts/donutchart): share of a total; `category`, `value`.
- [PercentageBarChart](https://ui.intelqi.com/docs/charts/percentagebarchart): share of a total as one bar, for a strip under a number; `category`, `value`, same rows as DonutChart. Drawn with divs, not echarts.
- [FunnelChart](https://ui.intelqi.com/docs/charts/funnelchart): stage-to-stage drop-off; `category`, `value`.
- [HeatmapChart](https://ui.intelqi.com/docs/charts/heatmapchart): magnitude across two dimensions; `x`, `y`, `value`.
- [CalendarHeatmapChart](https://ui.intelqi.com/docs/charts/calendarheatmapchart): a value per day, weeks as columns; `date`, `value`, optional `start`, `end` and `weekStart`.
- [ScatterChart](https://ui.intelqi.com/docs/charts/scatterchart): two measures against each other; `x`, `y`, optional `size` and `splitBy`.
- [SankeyChart](https://ui.intelqi.com/docs/charts/sankeychart): flow between two sets of nodes; `source`, `target`, `value`.
- [NumberCard](https://ui.intelqi.com/docs/charts/numbercard): the KPI tile: one reading plus the change against a comparison period. Required `title` and `value`.
- [ChartCard](https://ui.intelqi.com/docs/charts/chartcard): the card surface a chart sits on, for a plot you draw yourself.
- [ChartContainer](https://ui.intelqi.com/docs/charts/chartcontainer): everything around the plot: title block, axis titles, states, legend row.
- [ChartLegend](https://ui.intelqi.com/docs/charts/chartlegend): the series row under a plot. Bar, Line, Area, Donut, PercentageBar and Scatter draw it themselves; Funnel, Heatmap, CalendarHeatmap and Sankey draw none.
- [ChartTooltip](https://ui.intelqi.com/docs/charts/charttooltip): the reading beside the pointer, as HTML rather than a canvas overlay.
- [States](https://ui.intelqi.com/docs/charts/states): the shared loading, error and empty states; set `loading`, set `error` to a message, pass no rows for empty.
- [Dashboard](https://ui.intelqi.com/docs/charts/dashboard): composing charts into a page. The page owns the grid, the charts own everything inside.
## Molecules
- [Editor](https://ui.intelqi.com/docs/molecules/editor): TipTap-based rich editor, from the `intelqi-ui/editor` subpath (heavy, and not SSR-safe, so use only when needed).
- [CodeEditor](https://ui.intelqi.com/docs/molecules/code-editor): CodeMirror 6 family, from the `intelqi-ui/code-editor` subpath: the `useCodeEditor` engine, a renderless `CodeEditor`, `CodeEditorContent`, the `CodeKit` bundle, and `loadLanguage` for the ten optional `@codemirror/lang-*` peers. Renderless: the label, the field chrome and the expand affordance belong to the app.
- [List](https://ui.intelqi.com/docs/molecules/list): the list family, from the `intelqi-ui/list` subpath: `List`, `ListHeader`, `ListHeaderCell`, `ListHeaderCellSort`, `ListRows`, `ListRow`, `ListCell`, `ListGroup`. Feed or table mode.
## Foundations
- [Colors](https://ui.intelqi.com/docs/foundations/colors): the `bg-surface-*`, `text-ink-*` and `border-outline-*` tokens, and the fixed palette.
- [Typography](https://ui.intelqi.com/docs/foundations/typography): the type scale.
- [Radius](https://ui.intelqi.com/docs/foundations/radius): radius scale.
- [Shadows](https://ui.intelqi.com/docs/foundations/shadows): shadow scale and the surfaces to pair them with.
- [Focus ring](https://ui.intelqi.com/docs/foundations/focus-ring): the shared focus treatment.
## Data fetching
Recommended layer for new code, in the `intelqi-ui` exports:
- [useCall](https://ui.intelqi.com/docs/data-fetching/use-call): Vue composable for any whitelisted Frappe method. Options: `url`, `method`, `params` (object or function for reactivity), `immediate`, `refetch`, `cacheKey` (IndexedDB persistence), `transform`, `beforeSubmit`, `onSuccess`, `onError`. Returns a reactive object with `data`, `error`, `loading`, `isFinished`, `promise`, `execute`/`fetch`/`reload`, `submit(params)`, `reset`, `abort`. For writes use `immediate: false` plus an awaited `submit(params)`.
- [useDoc](https://ui.intelqi.com/docs/data-fetching/use-doc): fetches and keeps one document reactive, shared with `useList` for the same `doctype`/`name`. Returns `doc`, not `data`.
- [useList](https://ui.intelqi.com/docs/data-fetching/use-list): paginated, filterable list for a doctype, with `insert`/`setValue`/`delete` write helpers. `filters` and `orderBy` accept a ref or getter and refetch when it changes.
- [useDoctype](https://ui.intelqi.com/docs/data-fetching/use-doctype): write-only helpers for a doctype (`insert`, `delete`, `setValue`, `runDocMethod`, `runMethod`) with no read of its own.
- [useNewDoc](https://ui.intelqi.com/docs/data-fetching/use-new-doc): a reactive draft for a new document, submitted as an insert.
Each composable has its own option list. An option that exists on `useCall` is not automatically accepted by `useDoc`.
## Resources
Fully supported through `1.x`; use Data Fetching above for new code.
- [Resource](https://ui.intelqi.com/docs/data-fetching/resource): `createResource`, base data fetcher.
- [List resource](https://ui.intelqi.com/docs/data-fetching/list-resource): `createListResource`, paginated list.
- [Document resource](https://ui.intelqi.com/docs/data-fetching/document-resource): `createDocumentResource`, single doc.
## Experimental
Everything on the `intelqi-ui/experimental` subpath: parked v0 families and incubating exports. Unstable, with no deprecation promise. Do not import it from product apps.
- [Overview](https://ui.intelqi.com/docs/experimental): what is parked, what is incubating, and why.
- [Accordion](https://ui.intelqi.com/docs/experimental/accordion): sections behind labelled headers that expand and collapse.
- [Calendar](https://ui.intelqi.com/docs/experimental/calendar): date and event view with Month, Week and Day modes.
- [CommandPalette](https://ui.intelqi.com/docs/experimental/commandpalette): searchable command list in a dialog, composed from `CommandPaletteInput`, `CommandPaletteList`, `CommandPaletteGroup`, `CommandPaletteItem`, `CommandPaletteEmpty` and `CommandPaletteFooter`.
- [ListView](https://ui.intelqi.com/docs/experimental/listview): the parked v0 list family. New code uses `intelqi-ui/list`.
## Other
- [Icons](https://ui.intelqi.com/docs/other/icons): the lucide icon-class system; how `` works.
- [Utilities](https://ui.intelqi.com/docs/other/utilities): helper functions exported from the package.
- [Composables](https://ui.intelqi.com/docs/other/composables): shipped composables, including `useKeyboardShortcut` and `useColorScheme`.
- [Directives](https://ui.intelqi.com/docs/other/directives): Vue directives shipped with intelqi-ui.
- [Vite plugin](https://ui.intelqi.com/docs/other/vite): the `intelqi-ui/vite` plugin, including the lucide icon plugin.
- [VitePress theme](https://ui.intelqi.com/docs/other/vitepress-theme): the `intelqi-ui/vitepress` docs theme.
## Optional
- [v1-release plan](https://github.com/Euclideum/intelqi-ui/tree/main/v1-release): API-freeze plan, component specs, ADRs. Read when contributing to intelqi-ui itself or making decisions about API direction.
- [GitHub repository](https://github.com/Euclideum/intelqi-ui): source, issues, releases.