NuvUI
v0.10.0The docs, rules, blocks, charts and design tokens of nuvui, a React UI library, for coding agents.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
get_rules
Start here. Without a topic: the versions these docs describe, what to know before writing code with nuvui, the packages, the rules in a line each, and which component meets which need. With a topic: that rule in full, with wrong and right code.
| Parameter | Type | Description |
|---|---|---|
topic | string | One of: accessibility, composition, forms, packages, server-components, styling, text-and-direction. |
version | string | The @nuvui/react version in the project's package.json, such as 0.6.2 or ^0.6.0, for the docs of that release. Leave it out for the latest release. |
list_components
Every component page, by package, with what each is for in a line. Pass a package to see only its pages.
| Parameter | Type | Description |
|---|---|---|
package | string | A package, such as @nuvui/table or table. One of: @nuvui/react, @nuvui/date-picker, @nuvui/table, @nuvui/charts, @nuvui/barcodes, @nuvui/chat, @nuvui/kanban, @nuvui/editor, @nuvui/emoji, @nuvui/map, @… |
version | string | The @nuvui/react version in the project's package.json, such as 0.6.2 or ^0.6.0, for the docs of that release. Leave it out for the latest release. |
list_guides
The pages that aren't about one component: getting started, theming, Tailwind, SCSS, forms, right to left, translation, the Content Security Policy, support, and recipes for whole screens.
| Parameter | Type | Description |
|---|---|---|
version | string | The @nuvui/react version in the project's package.json, such as 0.6.2 or ^0.6.0, for the docs of that release. Leave it out for the latest release. |
get_page
One page of the reference, as Markdown: a component's parts, props, examples, CSS variables, classes and accessibility, or a guide. Takes a page's id from list_components, list_guides or search_docs, or a component's name, such as Compare or DataTable. A section gives only that part of the page, such as Props or CSS variables.
| Parameter | Type | Description |
|---|---|---|
page * | string | A page's id, such as components/compare, or a component's name. |
section | string | A `##` heading on the page, such as Props, Accessibility or CSS variables. |
version | string | The @nuvui/react version in the project's package.json, such as 0.6.2 or ^0.6.0, for the docs of that release. Leave it out for the latest release. |
search_docs
Finds the sections of the reference that best answer a question or a few words, such as 'sortable table', 'dark mode' or 'error message on a field'. Each result names its page and section, for get_page.
| Parameter | Type | Description |
|---|---|---|
query * | string | |
limit | integer | |
version | string | The @nuvui/react version in the project's package.json, such as 0.6.2 or ^0.6.0, for the docs of that release. Leave it out for the latest release. |
list_blocks
Blocks are screens and parts of apps built from the components, such as a sign-in screen, a dashboard or a pricing table, each a TSX file and an SCSS file to copy and change. Look here before building a screen from nothing.
| Parameter | Type | Description |
|---|---|---|
category | string | One of: 3d, accounts, calendar, chat, dashboard, data, developer, editor, flows, layout, marketing, media, org-charts, settings. |
version | string | The @nuvui/react version in the project's package.json, such as 0.6.2 or ^0.6.0, for the docs of that release. Leave it out for the latest release. |
get_block
A block's files in full, the packages they need, and the command that adds it to a project.
| Parameter | Type | Description |
|---|---|---|
name * | string | A block's name from list_blocks, such as sign-in. |
version | string | The @nuvui/react version in the project's package.json, such as 0.6.2 or ^0.6.0, for the docs of that release. Leave it out for the latest release. |
list_charts
Charts built with @nuvui/charts on Recharts, each one file to copy: area, bar, line, pie, radar, radial, scatter and more.
| Parameter | Type | Description |
|---|---|---|
family | string | One of: area, bar, line, pie, radar, radial, tooltip, composed, scatter, dashboard. |
get_chart
A chart's file in full, such as bar/stacked, from list_charts.
| Parameter | Type | Description |
|---|---|---|
name * | string | A chart's id from list_charts, such as bar/stacked. |
get_tokens
The design tokens as CSS custom properties, for your own CSS: var(--color-primary), never a color written out. A prefix gives only those, such as --color-, --radius- or --text-.
| Parameter | Type | Description |
|---|---|---|
prefix | string | |
version | string | The @nuvui/react version in the project's package.json, such as 0.6.2 or ^0.6.0, for the docs of that release. Leave it out for the latest release. |
get_changes
What each @nuvui/* package added and changed after the versions a project has, from the packages' changelogs, newest first, and what's in the docs but in no release yet. Pass the @nuvui/* entries of the project's package.json. Without them: the latest version of each package.
| Parameter | Type | Description |
|---|---|---|
installed | object | The @nuvui/* packages in the project's package.json, with their versions as written there, such as { "@nuvui/react": "^0.6.0", "@nuvui/table": "0.1.6" }. |