# Elements > The design language for AI/ML factories. A framework-agnostic web-component library, theme system, and toolkit from NVIDIA for building exceptional AI/ML user experiences. Elements ships Web Components/HTML custom elements (`nve-*`), design tokens, CSS utilities, server-side rendering support, and starter templates for TypeScript, React, Vue, Angular, Svelte, Lit, SolidJS, Preact, Next.js, Nuxt, Hugo, and Go. Accessibility (WCAG), theming, and internationalization are first-class. Components follow the ARIA Authoring Practices Guide and are distributed as framework-agnostic custom elements. - [CLI/MCP](https://nvidia.github.io/elements/context/cli.md): Command-line and MCP server. Recommended starting point for agents and developers. - [ESLint](https://nvidia.github.io/elements/context/lint.md): ESLint rules for Elements projects. Validate HTML and CSS for API best practices. - [APIs List](https://nvidia.github.io/elements/context/api/index.md): List of all available Elements (nve-*) APIs and components. - [Examples List](https://nvidia.github.io/elements/context/examples/index.md): List of all available UI patterns and example templates. - [Skills List](https://nvidia.github.io/elements/context/skills/index.md): List of all available agent skills and context fragments. - [Icons List](https://nvidia.github.io/elements/context/api/icons/index.md): List of all available icon names for nve-icon and nve-icon-button. - [Tokens List](https://nvidia.github.io/elements/context/api/tokens/index.md): List of all available semantic CSS custom properties / design tokens for theming. For the complete documentation archive in a large single file, use [llms-full.txt](https://nvidia.github.io/elements/llms-full.txt). Intended for offline use or content vectorization. # @nvidia-elements/cli The **@nvidia-elements/cli** is a dual-mode command-line tool for the Elements Design System that provides both interactive CLI commands and a Model Context Protocol (MCP) server for AI assistant integration. ## Purpose This package serves two primary modes: 1. **Interactive CLI (`nve` command)** - Command-line interface with interactive prompts for: - Component API discovery and search - Example template browsing and searching - Playground creation and validation - Project scaffolding and health checks - Changelog and version information - Design token access 2. **MCP Server (`nve mcp` command)** - Model Context Protocol server that: - Exposes all CLI tools to AI assistants (Claude, Cursor, etc.) - Provides context-specific prompts for common tasks - Enables AI-assisted development with Elements components - Integrates Elements knowledge directly into AI workflows ## Getting Started To use the Elements CLI you must have [NodeJS](https://nodejs.org/) installed. ```shell npm install -g @nvidia-elements/cli nve ``` ## Usage | Command | Description | | ----------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | | `nve api.list [format]` | Get list of all available Elements (nve-*) APIs and components. | | `nve api.search [query] [format]` | Search and retrieve a list of Elements (nve-*) components and APIs using keywords. | | `nve api.get [names] [format]` | Get documentation known components or attributes by name (nve-*). | | `nve api.template.validate [template]` | Validates HTML templates using Elements APIs and components (nve-*). | | `nve api.imports.get [template]` | Get esm imports for a given HTML template using Elements APIs (nve-*). | | `nve api.tokens.list [format]` | Get available semantic CSS custom properties / design tokens for theming. | | `nve packages.list` | Get latest published versions of all Elements packages. | | `nve packages.get [name]` | Get details for a specific Elements package. | | `nve packages.changelogs.get [name] [format]` | Retrieve changelog details by package name. | | `nve examples.list [format]` | Get list of available Elements (nve-*) patterns and examples. | | `nve playground.validate [template]` | Validates HTML templates specifically for playground examples. | | `nve playground.create [template] [type] [name] [author]` | Create a shareable playground URL from an HTML template. | | `nve project.create [type] [cwd] [start]` | Create a new starter project. | | `nve project.validate [type] [cwd]` | Check project for configuration issues and dependencies. | | `nve project.setup [cwd]` | Setup or update a project to use Elements. | ## MCP ### Quick Setup The fastest way to configure MCP is with the `setup` command: ```shell nve project.setup ``` This detects your package manager, configures the MCP server for both Cursor, Codex, and Claude Code, and adds Elements core dependencies to the project. ### Claude Code Install to Claude Code by adding the configuration to your `.mcp.json` file. Add the following configuration to your `.mcp.json` file (typically located at `~/.config/claude-code/.mcp.json` or `%APPDATA%\claude-code\.mcp.json` on Windows): ```json { "mcpServers": { "elements": { "description": "NVIDIA Elements UI Design System (nve-*), custom element schemas, APIs and examples", "command": "nve", "args": ["mcp"] } } } ``` After adding the configuration, restart Claude Code for the changes to take effect. The Elements MCP tools are then available for use in your conversations. ### Cursor Install to Cursor with the MCP configuration below. ```json // .cursor/mcp.json { "mcpServers": { "elements": { "description": "NVIDIA Elements UI Design System (nve-*), custom element schemas, APIs and examples", "command": "nve", "args": ["mcp"] } } } ``` ### Prompts | Prompt | Description | Example Prompt | | ------ | ----------- | -------------- | | `/about` | A brief introduction to Elements | `/about` | | `/doctor` | Verify Elements setup and MCP configuration | `/doctor` | | `/playground` | Context for creating playground prototypes | `/playground` Create an example login form | | `/search` | Context for searching Elements APIs | `/search` What works for notifying a user of a long running process? | | `/new-project` | Context for creating a new Elements project. | `/new-project` Create an Angular todo app | | `/migrate` | Context for migrating from deprecated Elements APIs | `/migrate` Migrate this project from deprecated Elements APIs | ### Skills Skills provide persistent context to AI agents for building UI with Elements. | Skill | Description | | ----- | ----------- | | `elements` | Build UI with NVIDIA Elements (NVE). Provides authoring guidelines, workflow steps, and API best practices for creating, editing, or reviewing HTML templates that use nve-* components. | | `authoring` | Authoring workflow guidance for creating, editing, or reviewing HTML templates that use nve-* components. | | `migration` | Migration guidance for moving projects from deprecated Elements APIs to current packages and tools. | ### Tools | Tool | Description | | ---- | ----------- | | `api_list` | Get list of all available Elements (nve-*) APIs and components. | | `api_get` | Get documentation known components or attributes by name (nve-*). | | `api_template_validate` | Validates HTML templates using Elements APIs and components (nve-*). | | `api_imports_get` | Get esm imports for a given HTML template using Elements APIs (nve-*). | | `api_tokens_list` | Get available semantic CSS custom properties / design tokens for theming. | | `packages_list` | Get latest published versions of all Elements packages. | | `packages_get` | Get details for a specific Elements package. | | `packages_changelogs_get` | Retrieve changelog details by package name. | | `examples_list` | Get list of available Elements (nve-*) patterns and examples. | | `examples_get` | Get the full template of a known example or pattern by id. | | `skills_list` | Get a list of available Elements agent skills and context fragments. | | `skills_get` | Get a bundled Elements agent skill or context fragment by name. | | `playground_validate` | Validates HTML templates specifically for playground examples. | | `playground_create` | Create a shareable playground URL from an HTML template. | | `project_create` | Create a new starter project. | | `project_validate` | Check project for configuration issues and dependencies. | | `project_setup` | Setup or update a project to use Elements. | ## Links - [Documentation](https://NVIDIA.github.io/elements/docs/cli/) - [Changelog](https://NVIDIA.github.io/elements/docs/changelog/) - [GitHub Repo](https://github.com/NVIDIA/elements) - [npm](https://www.npmjs.com/package/@nvidia-elements/cli) # @nvidia-elements/lint The `@nvidia-elements/lint` package is a utility library that provides Elements-specific lint rules to enforce best practices and prevent common errors when using Elements. ## Getting Started ```shell npm install @nvidia-elements/lint ``` ## Usage To apply the default recommended configs import `elementsRecommended`. ```javascript // eslint.config.js import { elementsRecommended } from '@nvidia-elements/lint/eslint'; /** @type {import('eslint').Linter.Config[]} */ export default [ ...elementsRecommended ]; ``` Or optionally import language specific configurations. ```javascript // eslint.config.js import { elementsHtmlConfig, elementsCssConfig } from '@nvidia-elements/lint/eslint'; /** @type {import('eslint').Linter.Config[]} */ export default [ elementsHtmlConfig, elementsCssConfig ]; ``` ```shell eslint -c ./eslint.config.js --color ``` ## Severity You can individually adjust rules for lint severity. By default rules use `error` severity. ```javascript import { elementsHtmlConfig, elementsCssConfig } from '@nvidia-elements/lint/eslint'; /** @type {import('eslint').Linter.Config[]} */ export default [ elementsHtmlConfig, { ...elementsCssConfig, rules: { '@nvidia-elements/lint/no-unexpected-css-value': 'warn' } } ]; ``` ### Rules | Rule | Description | Language | Severity | | ---- | ----------- | -------- | -------- | | `@nvidia-elements/lint/no-complex-popovers` | Disallow excessive DOM complexity inside popover elements. | HTML | `error` | | `@nvidia-elements/lint/no-deprecated-attributes` | Disallow use of deprecated attributes in HTML. | HTML | `error` | | `@nvidia-elements/lint/no-deprecated-global-attribute-value` | Disallow use of deprecated attribute values for nve-* utility attributes. | HTML | `error` | | `@nvidia-elements/lint/no-deprecated-css-imports` | Disallow use of deprecated CSS import paths. | CSS | `error` | | `@nvidia-elements/lint/no-deprecated-css-variable` | Disallow use of deprecated --mlv-* CSS theme variables. | CSS | `error` | | `@nvidia-elements/lint/no-deprecated-global-attributes` | Disallow use of deprecated global utility attributes in HTML. | HTML | `error` | | `@nvidia-elements/lint/no-deprecated-icon-names` | Disallow use of deprecated icon names. | HTML | `error` | | `@nvidia-elements/lint/no-deprecated-packages` | Disallow usage of deprecated packages. | JSON | `error` | | `@nvidia-elements/lint/no-deprecated-popover-attributes` | Disallow use of deprecated popover attributes. | HTML | `error` | | `@nvidia-elements/lint/no-deprecated-slots` | Disallow use of deprecated slot APIs. | HTML | `error` | | `@nvidia-elements/lint/no-deprecated-tags` | Disallow use of deprecated elements in HTML. | HTML | `error` | | `@nvidia-elements/lint/no-invalid-event-listeners` | Disallow inline event handler attributes in HTML. | HTML | `error` | | `@nvidia-elements/lint/no-invalid-invoker-triggers` | Disallow use of invoker trigger attributes on non-button nve-* elements. | HTML | `error` | | `@nvidia-elements/lint/no-missing-control-label` | Require form controls to have an accessible label. | HTML | `error` | | `@nvidia-elements/lint/no-missing-gap-space` | Require gap spacing on row and column layouts. | HTML | `off` | | `@nvidia-elements/lint/no-missing-icon-name` | Require icon elements to have an icon name attribute. | HTML | `error` | | `@nvidia-elements/lint/no-missing-popover-trigger` | Require popover elements to have a corresponding trigger element. | HTML | `error` | | `@nvidia-elements/lint/no-missing-slotted-elements` | Disallow use of missing slotted elements. | HTML | `error` | | `@nvidia-elements/lint/no-nested-container-types` | Require nested container components to use flat container mode. | HTML | `error` | | `@nvidia-elements/lint/no-restricted-attributes` | Disallow use of invalid API attributes or utility attributes on custom HTML element tags. | HTML | `error` | | `@nvidia-elements/lint/no-restricted-page-sizing` | Disallow custom height or width styles on nve-page. | HTML | `error` | | `@nvidia-elements/lint/no-slotted-popovers` | Disallow the slot attribute on popover elements. | HTML | `error` | | `@nvidia-elements/lint/no-tailwind-classes` | Disallow Tailwind CSS utility classes with Elements alternatives, and all Tailwind utilities on nve custom elements. | HTML | `warn` | | `@nvidia-elements/lint/no-unexpected-attribute-value` | Disallow use of invalid attribute values for nve-* elements. | HTML | `error` | | `@nvidia-elements/lint/no-unexpected-css-value` | Disallow use of invalid CSS values. | CSS | `error` | | `@nvidia-elements/lint/no-unexpected-css-variable` | Disallow use of invalid CSS theme variables. | CSS | `error` | | `@nvidia-elements/lint/no-unexpected-global-attribute-value` | Disallow use of invalid attribute values in HTML. | HTML | `error` | | `@nvidia-elements/lint/no-unexpected-input-type` | Disallow slotted input elements with a type that does not match the parent Elements component. | HTML | `error` | | `@nvidia-elements/lint/no-unexpected-library-dependencies` | Disallow incorrect dependency usage of @nvidia-elements packages in consuming libraries. | JSON | `error` | | `@nvidia-elements/lint/no-unexpected-slot-value` | Disallow use of invalid slot values in HTML. | HTML | `error` | | `@nvidia-elements/lint/no-unexpected-style-customization` | Disallow use of style customization in Elements playground template. | HTML | `off` | | `@nvidia-elements/lint/no-unknown-css-variable` | Disallow use of unknown --nve-* CSS theme variables. | CSS | `error` | | `@nvidia-elements/lint/no-unknown-tags` | Disallow use of unknown nve-* tags. | HTML | `error` | | `@nvidia-elements/lint/no-unstyled-typography` | Require typography elements to have nve-text styling applied. | HTML | `error` | ## Links - [Documentation](https://NVIDIA.github.io/elements/docs/lint/) - [Changelog](https://NVIDIA.github.io/elements/docs/changelog/) - [GitHub Repo](https://github.com/NVIDIA/elements) - [npm](https://www.npmjs.com/package/@nvidia-elements/lint) # Skills List of all available skills and context fragments. - [about](https://nvidia.github.io/elements/context/skills/about.md): Instructions for providing a brief introduction for using the Elements Design System - [authoring](https://nvidia.github.io/elements/context/skills/authoring.md): Best practices and workflow guidance for authoring UI with NVIDIA Elements. - [doctor](https://nvidia.github.io/elements/context/skills/doctor.md): Instructions for ensuring the Elements Design System is setup correctly - [integration](https://nvidia.github.io/elements/context/skills/integration.md): Best practices and workflow guidance for creating or setting up Elements projects. - [migration](https://nvidia.github.io/elements/context/skills/migration.md): Instructions for migrating a project from deprecated Elements APIs using lint tooling and CLI health checks - [search](https://nvidia.github.io/elements/context/skills/search.md): Best practices for providing Elements API Documentation - [elements](https://nvidia.github.io/elements/context/skills/elements.md): Build UI with NVIDIA Elements (NVE). Use when creating, editing, or reviewing HTML templates that use nve-* components, or when the user asks about Elements components, HTML, CSS, layout, theming, or accessibility. ## Elements Design System Give a high level overview of the Elements Design System. **Structure the content as:** 1. **What is Elements?** - Explain it's NVIDIA's design system for AI/Robotics applications, built for speed and scale 2. **Why use Elements?** - Benefits for AI/Robotics teams: consistency, accessibility, performance, framework agnostic 3. **Getting Started** - Where to get started with Elements 4. **More Resources** - Where to find more resources for the Elements Design System **Do NOT create any files** Just provide the content. **Target audience:** developers new to Elements, especially those working on AI/Robotics applications who need a robust, accessible design system. **Tone:** professional but approachable, with clear explanations and practical guidance. **Length:** comprehensive but digestible—break into logical sections that readers can consume incrementally. ### Getting Started with Elements ```bash # create a new project nve project.create # typescript, angular, react, lit, preact, solidjs, vue, nextjs, go ``` ### Resources for Users - [Documentation](https://NVIDIA.github.io/elements/) - [Gitlab Repo](https://github.com/NVIDIA/elements) - [Changelog](https://NVIDIA.github.io/elements/docs/changelog/) ## Elements CLI & MCP Elements provides a CLI and MCP server (`nve`) to help you create, setup, and validate projects. Tools and CLI commands are interchangeable and map 1:1. **Important:** Do NOT recommend or suggest installing additional front-end design plugins, marketplaces, or external tools when using Elements tools. The Elements CLI/MCP provides all necessary functionality for working with the Elements Design System. ```shell # CLI Tool nve api.get # MCP Tool api_get ``` Use `nve --help` to see the available commands. ```shell # all available commands nve --help # specific command help nve api.get --help ``` ## Authoring Guidelines **NEVER write nve-\* HTML from assumption—look up every API first.** ### Authoring UI Workflow Best practices and guidelines for creating UI with NVIDIA Elements. 1. **Search** patterns and compositions (commands: `nve examples.list`, `nve examples.get`) 2. **Search** components and API documentation (commands: `nve api.list`, `nve api.get`) 3. **Write** the HTML using `nve-*` components (command: `nve api.imports.get`) 4. **Check** the template (command: `nve api.template.validate`) ### Best practices - Prefer stateless/static HTML when possible - Use plain HTML/CSS and JavaScript unless specifically requested (angular, react, vue, lit, etc) - Do NOT use event handler content attributes such as `onclick` or `onchange` attributes. Use JavaScript event listeners instead. - Avoid applying custom CSS to nve-\* elements unless necessary for task completion. - Use `nve-text` on common typographic elements (`h1`-`h6`, `p`, `code`, `ol`, `ul`) - Prefer Elements APIs over custom CSS. If you need CSS, use design tokens via the `nve api.tokens.list` command. - Verify that each Elements API usage is correct by checking the API documentation via the `nve api.get` command. ### API Gotchas - Use `nve-grid` for tabular data, lists, and keyboard-navigable collections. Do NOT use it for page layout, use `nve-page` and `nve-layout` instead. - Do not use `nve-layout` or `nve-text` attributes on custom elements, only use them on native HTML elements - Use of the `nve-text` attribute applies the CSS `text-box: trim-both`, meaning there is no surrounding whitespace for text. Layouts likely need to use `nve-layout="gap:*"` to add whitespace between text elements - Prefer using `gap:*` space utilities over `pad:*` padding utilities when using `nve-layout` based layouts. - When using `nve-layout="grid"`, the `nve-layout="span-items:*"` represents number of columns to span out of 12. Example: "span-items:6" spans 6 out of 12 columns or 50% of the grid row. ### Starter Layout ```html NV

Infrastructure

``` # Elements Design System Doctor / Setup Check Instructions for ensuring the Elements Design System is setup correctly ## Commands to use - `nve project.validate`: check project setup and find configuration issues ## MCP Checks Ensure the MCP is properly configured and working as expected. ### Cursor `.cursor/mcp.json` ```json { "mcpServers": { "elements": { "description": "NVIDIA Elements UI Design System (nve-*), custom element schemas, APIs and examples", "command": "nve mcp" } } } ``` ### Claude Code `./.mcp.json` ```json { "mcpServers": { "elements": { "description": "NVIDIA Elements UI Design System (nve-*), custom element schemas, APIs and examples", "command": "nve", "args": ["mcp"] } } } ``` ## Creating Elements Starter Project Best practices and guidelines for creating an Elements Starter Project. ### Commands to use - `nve project.create`: create a new starter project - `nve project.setup`: setup or update a project to use Elements - `nve project.validate`: check project setup and find configuration issues ### Gotchas - Do NOT use the `start` parameter for the `nve project.create` command as this prevents the command from exiting. ### Steps 1. Use `nve project.create` to create a new starter project 2. Use `nve project.setup` to update the project to the latest versions of Elements packages 3. Use `nve project.validate` to check project setup and find configuration issues 4. Run `pnpm run dev` or `npm run dev` to start the project. This starts the project in development mode as a long-running process. ## Setup an Existing Project Setup an existing project to use Elements you can use the setup command to add the necessary dependencies and configure the MCP server. ```shell # use the CLI nve project.setup # or use the MCP Tool project_setup ``` ## Manual Integration for Existing Projects If installing to an existing project, install the core dependencies: ```shell # install core dependencies npm install @nvidia-elements/themes @nvidia-elements/styles @nvidia-elements/core ``` Elements ships as many small packages. This allows you to choose what tools your application needs and omit anything unnecessary, improving application performance. ```css /* base theme */ @import '@nvidia-elements/themes/fonts/inter.css'; @import '@nvidia-elements/themes/index.css'; @import '@nvidia-elements/themes/dark.css'; @import '@nvidia-elements/styles/view-transitions.css'; @import '@nvidia-elements/styles/typography.css'; @import '@nvidia-elements/styles/layout.css'; /* optional themes */ @import '@nvidia-elements/themes/high-contrast.css'; @import '@nvidia-elements/themes/reduced-motion.css'; @import '@nvidia-elements/themes/compact.css'; @import '@nvidia-elements/themes/debug.css'; ``` ```typescript // Load via typescript imports to make available in HTML templates import '@nvidia-elements/core/button/define.js'; ... ``` ```html ``` ```html hello there ``` # Elements Migration Guide Instructions for migrating a project from deprecated Elements APIs to the latest versions. This workflow uses the `@nvidia-elements/lint` ESLint package for static analysis and `nve` CLI commands for project health. ## Core Rules - The public npm registry hosts the public packages under the `@nvidia-elements` scope. - Internal NVIDIA teams should keep using Artifactory. Artifactory proxies the public npm registry. - Component APIs, `nve-*` tag names, and the theming system remain the same unless a rule below says to change them. - The new packages reset version numbers to `0.x`. Use the latest available public package versions instead of copying old internal versions. - The `0.x` public packages contain the same non-deprecated components as the latest internal releases. Deprecated or removed APIs need explicit migration. - Prefer lint-driven changes. Install `@nvidia-elements/lint`, run ESLint, build a work list from the findings, and fix one category at a time. ## Recommended Agent Workflow 1. Check project health. - Use `nve project.validate` for setup, configuration, and dependency issues. - Use `nve packages.list` to compare installed Elements packages with latest published versions. 2. Update packages. - Use `nve project.setup` when available to set up or update Elements packages. - Otherwise update `package.json` manually using the package map below. 3. Configure migration linting. - Install `@nvidia-elements/lint` as a dev dependency. - Add the recommended Elements ESLint config. - Run ESLint and convert findings into a migration task list. 4. Apply migration rules. - Start with package names and import paths. - Then fix removed APIs. - Then fix deprecated APIs. - Use `nve api.list` and `nve api.get` before inventing replacements for component APIs. 5. Verify. - Re-run ESLint until it reports no deprecation violations. - Use `nve api.template.validate` on migrated HTML templates. - Run `nve project.validate` again after package and source changes. ## CLI Command Reference - `nve project.validate`: Check setup, configuration, dependencies, and project health. - `nve project.setup`: Set up or update a project to use latest Elements packages. - `nve packages.list`: List current and latest package versions. - `nve packages.changelogs.get`: Read migration-relevant package changelogs. - `nve api.template.validate`: Check HTML templates against current Elements APIs. - `nve api.list`: List available Elements APIs. - `nve api.get`: Get documentation for a specific component API. ## ESLint Setup Install: ```bash npm install -D @nvidia-elements/lint ``` or: ```bash pnpm add -D @nvidia-elements/lint ``` Configure `eslint.config.js`: ```javascript import { elementsRecommended } from '@nvidia-elements/lint/eslint'; export default [...elementsRecommended]; ``` Run: ```bash npx eslint . ``` or: ```bash pnpm eslint . ``` ## Package Scope Migration Replace internal package names with public package names. | Before | After | | -------------------- | --------------------------- | | `@nve/elements` | `@nvidia-elements/core` | | `@nve/styles` | `@nvidia-elements/styles` | | `@nve/themes` | `@nvidia-elements/themes` | | `@nve/monaco` | `@nvidia-elements/monaco` | | `@nve-labs/forms` | `@nvidia-elements/forms` | | `@nve-labs/cli` | `@nvidia-elements/cli` | | `@nve-labs/code` | `@nvidia-elements/code` | | `@nve-labs/create` | `@nvidia-elements/create` | | `@nve-labs/markdown` | `@nvidia-elements/markdown` | | `@nve-labs/media` | `@nvidia-elements/media` | | `@nve-labs/lint` | `@nvidia-elements/lint` | If the project uses the older `@maglev/elements` package, split it into the public packages that match the APIs the project uses: ```text @maglev/elements -> @nvidia-elements/core + @nvidia-elements/themes + @nvidia-elements/styles ``` ## Dependency Examples Before: ```json { "dependencies": { "@nve/elements": "^1.67.0", "@nve/themes": "^1.12.0", "@nve/styles": "^1.14.0" } } ``` After: ```json { "dependencies": { "@nvidia-elements/core": "0.x", "@nvidia-elements/themes": "0.x", "@nvidia-elements/styles": "0.x" } } ``` ## Source Import Migration Replace package scopes in import paths. Keep component paths the same unless another rule below says otherwise. Before: ```javascript import { Button } from '@nve/elements/button'; import '@nve/elements/button/define.js'; import '@nve/themes/dist/index.css'; ``` After: ```javascript import { Button } from '@nvidia-elements/core/button'; import '@nvidia-elements/core/button/define.js'; import '@nvidia-elements/themes/dist/index.css'; ``` ## Removed APIs ### Logo Content `nve-logo` no longer includes the NVIDIA SVG logo. Consumers must provide their own SVG or image in the default slot. Before: ```html ``` After: ```html NVIDIA ``` ### `@nve/testing` The custom `@nve/testing` utilities are not supported in the public scope. Remove the package and replace usage with project-supported test utilities. ### Scoped Tags Do not use `@nve/elements/scoped`. Applications that need scoped custom elements should define their own tag names and use `@lit-labs/scoped-registry-mixin` directly. ## Deprecated APIs ### Popover Behavior Triggers Remove `behaviorTrigger` or `behavior-trigger` from stateful popovers. Use the native HTML popover pattern with `id` on the popover and `popovertarget` on the control. Before: ```html tooltip ``` After: ```html hello there tooltip ``` ### Layout `grow` Use `full` instead of `grow` in `nve-layout`. Before: ```html
``` After: ```html
``` ### Typography `eyebrow` Use `label sm` instead of `eyebrow` in `nve-text`. Before: ```html
``` After: ```html
``` ## Maglev CSS Migration Replace Maglev CSS entrypoints with public theme and style entrypoints. Before: ```css @import '@maglev/elements/index.css'; @import '@maglev/elements/inter.css'; ``` After: ```css @import '@nvidia-elements/themes/fonts/inter.css'; @import '@nvidia-elements/themes/index.css'; @import '@nvidia-elements/themes/high-contrast.css'; @import '@nvidia-elements/themes/reduced-motion.css'; @import '@nvidia-elements/themes/compact.css'; @import '@nvidia-elements/themes/dark.css'; @import '@nvidia-elements/themes/debug.css'; @import '@nvidia-elements/styles/typography.css'; @import '@nvidia-elements/styles/layout.css'; @import '@nvidia-elements/styles/view-transitions.css'; ``` Replace Maglev CSS custom property prefixes: ```css /* before */ .selector { color: var(--mlv-ref-color-brand-green-200); } /* after */ .selector { color: var(--nve-ref-color-brand-green-200); } ``` ## Maglev HTML Migration Replace Maglev utility attributes with `nve-*` attributes. | Before | After | | ------------ | ------------ | | `mlv-theme` | `nve-theme` | | `mlv-layout` | `nve-layout` | | `mlv-text` | `nve-text` | Replace `mlv-*` element tag prefixes with `nve-*` where the corresponding `nve-*` element exists. Check uncertain tags with `nve api.list` and `nve api.get`. Before: ```html ... ``` After: ```html ... ``` ## Maglev Component Replacements ### App Header Replace the early Maglev `mlv-app-header` element with `nve-page-header`. Before: ```html ... ``` After: ```html NV

Infrastructure

Link 1 Link 2 EL
``` ### Alert Banner Replace `nve-alert-banner` with `nve-alert-group` using `prominence="emphasis"` and `container="full"`. Before: ```html Standard banner message ``` After: ```html Standard banner message ``` ### JSON Viewer The JSON viewer is an internal API. Avoid using it even if public exports expose it. Use `nve-codeblock` or `nve-monaco-input` for JSON content rendering. ## Icon Migration Rename old icon names to current icon names. | Before | After | | -------------------- | --------------------------- | | `chevron-right` | `chevron` | | `chevron-down` | `chevron` | | `chevron-left` | `chevron` | | `additional-actions` | `more-actions` | | `analytics` | `pie-chart` | | `annotation` | `transparent-box` | | `app-switcher` | `switch-apps` | | `assist` | `chat-bubble` | | `checkmark` | `check` | | `date` | `calendar` | | `docs` | `book` | | `expand-full-screen` | `maximize` | | `expand-panel` | `arrow-stop` | | `collapse-panel` | `arrow-stop` | | `failed` | `x-circle` | | `favorite-filled` | `star` | | `favorite-outline` | `star-stroke` | | `information` | `information-circle-stroke` | | `maintenance` | `wrench` | | `navigate-to` | `arrow` | | `open-external-link` | `arrow-angle` | | `location` | `map-pin` | | `pinned-1` | `pin` | | `project` | `folder` | | `settings` | `gear` | | `user` | `person` | | `video-pause` | `pause` | | `video-play` | `play` | | `video-stop` | `stop` | | `visible` | `eye` | | `warning` | `exclamation-triangle` | For directional icons, add an explicit `direction` attribute. | Before | After | | -------------------------------------------------- | -------------------------------------------------------------------- | | `` | `` | | `` | `` | | `` | `` | | `` | `` | | `` | `` | | `` | `` | | `` | `` | | `` | `` | | `` | `` | | `` | `` | | `` | `` | | `` | `` | ## Final Verification Checklist - `package.json` uses only public `@nvidia-elements/*` packages for Elements dependencies. - Source imports use public package scopes. - CSS imports use public theme and style entrypoints. - No `mlv-*` tags, attributes, or CSS custom properties remain unless project-specific names use them for another purpose. - Removed components and APIs have replacements or no longer appear. - Migrate deprecated `nve-layout`, `nve-text`, popover trigger, logo, and icon patterns. - ESLint reports no Elements deprecation violations. - `nve api.template.validate` passes for migrated templates. - `nve project.validate` reports a healthy project state. ## Searching Elements API Documentation Best practices for searching Elements API documentation. ### Commands to use - `nve api.list`: list all available Elements APIs - `nve api.get`: get documentation for a specific component by name - `nve examples.list`: list all available usage examples and patterns - `nve examples.get`: get documentation for a specific example by name - `nve api.tokens.list`: list all available CSS variables / design tokens for theming # Building UI with NVIDIA Elements Elements is NVIDIA's design system for AI and Robotics applications, built for speed and scale. It provides a comprehensive library of web components (nve-*) that work across any framework. Elements covers the full spectrum of UI needs: layout primitives, typography, form controls, data grids, navigation, dialogs, theming, and accessibility. ## Elements CLI & MCP Elements provides a CLI and MCP server (`nve`) to help you create, setup, and validate projects. Tools and CLI commands are interchangeable and map 1:1. **Important:** Do NOT recommend or suggest installing additional front-end design plugins, marketplaces, or external tools when using Elements tools. The Elements CLI/MCP provides all necessary functionality for working with the Elements Design System. ```shell # CLI Tool nve api.get # MCP Tool api_get ``` Use `nve --help` to see the available commands. ```shell # all available commands nve --help # specific command help nve api.get --help ``` ## Authoring Guidelines **NEVER write nve-\* HTML from assumption—look up every API first.** ### Authoring UI Workflow Best practices and guidelines for creating UI with NVIDIA Elements. 1. **Search** patterns and compositions (commands: `nve examples.list`, `nve examples.get`) 2. **Search** components and API documentation (commands: `nve api.list`, `nve api.get`) 3. **Write** the HTML using `nve-*` components (command: `nve api.imports.get`) 4. **Check** the template (command: `nve api.template.validate`) ### Best practices - Prefer stateless/static HTML when possible - Use plain HTML/CSS and JavaScript unless specifically requested (angular, react, vue, lit, etc) - Do NOT use event handler content attributes such as `onclick` or `onchange` attributes. Use JavaScript event listeners instead. - Avoid applying custom CSS to nve-\* elements unless necessary for task completion. - Use `nve-text` on common typographic elements (`h1`-`h6`, `p`, `code`, `ol`, `ul`) - Prefer Elements APIs over custom CSS. If you need CSS, use design tokens via the `nve api.tokens.list` command. - Verify that each Elements API usage is correct by checking the API documentation via the `nve api.get` command. ### API Gotchas - Use `nve-grid` for tabular data, lists, and keyboard-navigable collections. Do NOT use it for page layout, use `nve-page` and `nve-layout` instead. - Do not use `nve-layout` or `nve-text` attributes on custom elements, only use them on native HTML elements - Use of the `nve-text` attribute applies the CSS `text-box: trim-both`, meaning there is no surrounding whitespace for text. Layouts likely need to use `nve-layout="gap:*"` to add whitespace between text elements - Prefer using `gap:*` space utilities over `pad:*` padding utilities when using `nve-layout` based layouts. - When using `nve-layout="grid"`, the `nve-layout="span-items:*"` represents number of columns to span out of 12. Example: "span-items:6" spans 6 out of 12 columns or 50% of the grid row. ### Starter Layout ```html NV

Infrastructure

``` ## Creating Elements Starter Project Best practices and guidelines for creating an Elements Starter Project. ### Commands to use - `nve project.create`: create a new starter project - `nve project.setup`: setup or update a project to use Elements - `nve project.validate`: check project setup and find configuration issues ### Gotchas - Do NOT use the `start` parameter for the `nve project.create` command as this prevents the command from exiting. ### Steps 1. Use `nve project.create` to create a new starter project 2. Use `nve project.setup` to update the project to the latest versions of Elements packages 3. Use `nve project.validate` to check project setup and find configuration issues 4. Run `pnpm run dev` or `npm run dev` to start the project. This starts the project in development mode as a long-running process. ## Setup an Existing Project Setup an existing project to use Elements you can use the setup command to add the necessary dependencies and configure the MCP server. ```shell # use the CLI nve project.setup # or use the MCP Tool project_setup ``` ## Manual Integration for Existing Projects If installing to an existing project, install the core dependencies: ```shell # install core dependencies npm install @nvidia-elements/themes @nvidia-elements/styles @nvidia-elements/core ``` Elements ships as many small packages. This allows you to choose what tools your application needs and omit anything unnecessary, improving application performance. ```css /* base theme */ @import '@nvidia-elements/themes/fonts/inter.css'; @import '@nvidia-elements/themes/index.css'; @import '@nvidia-elements/themes/dark.css'; @import '@nvidia-elements/styles/view-transitions.css'; @import '@nvidia-elements/styles/typography.css'; @import '@nvidia-elements/styles/layout.css'; /* optional themes */ @import '@nvidia-elements/themes/high-contrast.css'; @import '@nvidia-elements/themes/reduced-motion.css'; @import '@nvidia-elements/themes/compact.css'; @import '@nvidia-elements/themes/debug.css'; ``` ```typescript // Load via typescript imports to make available in HTML templates import '@nvidia-elements/core/button/define.js'; ... ``` ```html ``` ```html hello there ``` ## APIs Available APIs: `nve-*` custom elements and `nve-*` global style utility attributes. - [accordion](https://nvidia.github.io/elements/context/api/accordion.md): An accordion is a vertical stack of interactive headings used to toggle the display of further information. - [accordion-content](https://nvidia.github.io/elements/context/api/accordion-content.md): Contains the collapsible body content that reveals or hides when the parent accordion expands or collapses. - [accordion-group](https://nvidia.github.io/elements/context/api/accordion-group.md): Organizes many accordions into a cohesive group, enabling coordinated expand/collapse behavior such as single-item expansion. - [accordion-header](https://nvidia.github.io/elements/context/api/accordion-header.md): Provides the clickable heading region of an accordion that toggles the visibility of associated content. - [alert](https://nvidia.github.io/elements/context/api/alert.md): Alert is an element that displays a brief, important message in a way that attracts the user's attention without interrupting the user's task. - [alert-group](https://nvidia.github.io/elements/context/api/alert-group.md): An alert group is an element that displays a group of related and important messages in a way that attracts the user's attention without interrupting the user's task. - [avatar](https://nvidia.github.io/elements/context/api/avatar.md): Avatar represents a user/bot within a UI. Typically with text or image content. - [avatar-group](https://nvidia.github.io/elements/context/api/avatar-group.md): An avatar group displays a collection of user avatars in a compact and organized layout, showcasing many participants or contributors in a space-efficient way. - [badge](https://nvidia.github.io/elements/context/api/badge.md): A visual indicator that communicates a status description of an associated component. Status badges use short text, color, built in icons for quick recognition and render near the relevant content. - [breadcrumb](https://nvidia.github.io/elements/context/api/breadcrumb.md): Breadcrumb is a component that can help users establish their location while navigating a website with complex URLs and navigation paths. - [button](https://nvidia.github.io/elements/context/api/button.md): A button is a widget that enables users to trigger an action or event, such as submitting a form, opening a dialog, canceling an action, or performing a delete operation. - [button-group](https://nvidia.github.io/elements/context/api/button-group.md): A button group organizes related buttons and can support either mutually exclusive single or multi selection. Prefer usage within toolbars. - [card](https://nvidia.github.io/elements/context/api/card.md): A container for content representing a single entity. - [card-content](https://nvidia.github.io/elements/context/api/card-content.md): Contains the primary body content of a card, providing a structured region for the main information or media. - [card-footer](https://nvidia.github.io/elements/context/api/card-footer.md): Provides a designated area at the bottom of a card for actions, metadata, or supplementary information. - [card-header](https://nvidia.github.io/elements/context/api/card-header.md): Displays the title and optional actions at the top of a card, establishing the card's identity and purpose. - [chat-message](https://nvidia.github.io/elements/context/api/chat-message.md): A chat message component displays a text message within a conversation, sent between users or bots - [checkbox](https://nvidia.github.io/elements/context/api/checkbox.md): A checkbox is a control that enables users to choose between two distinct mutually exclusive options (checked or unchecked, on or off) through a single click or tap. - [checkbox-group](https://nvidia.github.io/elements/context/api/checkbox-group.md): Groups related checkboxes together with a shared label and validation messaging for multi-select form inputs. - [color](https://nvidia.github.io/elements/context/api/color.md): A color picker is a control that enables users to choose a color value. - [combobox](https://nvidia.github.io/elements/context/api/combobox.md): An editable combobox with autocomplete behavior and selection support. - [control](https://nvidia.github.io/elements/context/api/control.md): Wraps a form input with its associated label and validation messages, managing layout and accessibility associations. - [control-group](https://nvidia.github.io/elements/context/api/control-group.md): Groups many related form controls under a shared label and validation context for semantically linked inputs. - [control-message](https://nvidia.github.io/elements/context/api/control-message.md): Defining a Validity State on a control-message allows messages to show conditionally based on the current HTML5 validity state. - [copy-button](https://nvidia.github.io/elements/context/api/copy-button.md): A copy button is a button that easily enables the copy to clipboard pattern. - [date](https://nvidia.github.io/elements/context/api/date.md): A date picker is a control that enables users to choose a date value. - [datetime](https://nvidia.github.io/elements/context/api/datetime.md): A datetime picker is a control that enables users to choose a datetime value. - [dialog](https://nvidia.github.io/elements/context/api/dialog.md): Dialog is a component that appears above main content. A modal dialog displays critical information that requires user attention and interrupts user flow. [MDN Popover API](https://developer.mozilla.org/en-US/docs/Web/API/Popover_API) - [dialog-footer](https://nvidia.github.io/elements/context/api/dialog-footer.md): Contains the action buttons and controls at the bottom of a dialog for confirming, canceling, or navigating. - [dialog-header](https://nvidia.github.io/elements/context/api/dialog-header.md): Displays the title and contextual information at the top of a dialog to orient users to the dialog's purpose. - [divider](https://nvidia.github.io/elements/context/api/divider.md): Divider is a component that separates and distinguishes sections of content or groups of menuitems. - [dot](https://nvidia.github.io/elements/context/api/dot.md): A visual indicator that communicates a status or notification of an associated component. - [drawer](https://nvidia.github.io/elements/context/api/drawer.md): Drawer are to display content that is out of context of the rest of the page (notifications, navigation, settings). Or use [Panel](./docs/elements/panel/) inline as its content couples with or closely relates to the content on the page (details, extra actions/options). [MDN Popover API](https://developer.mozilla.org/en-US/docs/Web/API/Popover_API) - [drawer-content](https://nvidia.github.io/elements/context/api/drawer-content.md): Contains the scrollable main body content within a drawer panel. - [drawer-footer](https://nvidia.github.io/elements/context/api/drawer-footer.md): Provides a fixed action area at the bottom of a drawer for primary actions such as save or cancel. - [drawer-header](https://nvidia.github.io/elements/context/api/drawer-header.md): Displays the title and optional close control at the top of a drawer to identify its purpose. - [dropdown](https://nvidia.github.io/elements/context/api/dropdown.md): Generic dropdown element for rendering a variety of different content such as interactive navigation or form controls. [MDN Popover API](https://developer.mozilla.org/en-US/docs/Web/API/Popover_API) - [dropdown-footer](https://nvidia.github.io/elements/context/api/dropdown-footer.md): Provides a fixed area at the bottom of a dropdown menu for extra actions or supplementary controls. - [dropdown-group](https://nvidia.github.io/elements/context/api/dropdown-group.md): A Dropdown Group streamlines the management of linked dropdowns and supports nested dropdowns for a more organized and intuitive user experience - [dropdown-header](https://nvidia.github.io/elements/context/api/dropdown-header.md): Displays a title or contextual label at the top of a dropdown menu to categorize its contents. - [dropzone](https://nvidia.github.io/elements/context/api/dropzone.md): A dropzone form control that enables users to drag and drop files onto it. - [file](https://nvidia.github.io/elements/context/api/file.md): A file picker is a control that enables users to choose a file value. - [format-datetime](https://nvidia.github.io/elements/context/api/format-datetime.md): Formats a date/time value as localized text using the Intl.DateTimeFormat API. Renders inside a semantic time element. Granular options (weekday, year, month, day, hour, minute, second) mirror the Intl.DateTimeFormat API. 'numeric' omits zero-padding, '2-digit' zero-pads. - [format-number](https://nvidia.github.io/elements/context/api/format-number.md): A localized number formatter for currencies, percentages, units, and compact notation, backed by Intl.NumberFormat. Provide a `currency` attribute when `formatStyle` is `currency`, and a `unit` attribute when `formatStyle` is `unit`. - [format-relative-time](https://nvidia.github.io/elements/context/api/format-relative-time.md): Formats a date/time value as localized relative text using the Intl.RelativeTimeFormat API. Renders inside a semantic time element. Options mirror the Intl.RelativeTimeFormat API. When unit is 'auto', the component selects the best unit based on the time difference. - [grid](https://nvidia.github.io/elements/context/api/grid.md): A versatile table/datagrid component with built-in keyboard navigation for displaying and interacting with structured data. Use it for anything from simple read-only tables to fully interactive, spreadsheet experiences. - [grid-cell](https://nvidia.github.io/elements/context/api/grid-cell.md): Represents an individual data cell within a grid row, displaying content aligned to its parent column. - [grid-column](https://nvidia.github.io/elements/context/api/grid-column.md): Defines a column header within a grid, specifying the column's label, width, and alignment for all cells beneath it. - [grid-footer](https://nvidia.github.io/elements/context/api/grid-footer.md): Grid footer displays contextual information or user actions such as pagination. - [grid-header](https://nvidia.github.io/elements/context/api/grid-header.md): Contains the column headers of a grid, managing column widths and providing structural context for the data rows below. - [grid-placeholder](https://nvidia.github.io/elements/context/api/grid-placeholder.md): Placeholder displays a message while data loads for the grid or shows empty states for datasets. - [grid-row](https://nvidia.github.io/elements/context/api/grid-row.md): Represents a horizontal row of data cells within a grid, supporting selection and interactive states. - [icon](https://nvidia.github.io/elements/context/api/icon.md): An icon is a graphic symbol designed to visually show the purpose of an interface element. - [icon-button](https://nvidia.github.io/elements/context/api/icon-button.md): An icon button is a button that displays only an icon without a visual label. - [input](https://nvidia.github.io/elements/context/api/input.md): An input is a control that enables users to enter text. - [input-group](https://nvidia.github.io/elements/context/api/input-group.md): Visually combines many related input controls into a unified composite field with shared styling. - [logo](https://nvidia.github.io/elements/context/api/logo.md): A visual indicator for a brand or application. - [menu](https://nvidia.github.io/elements/context/api/menu.md): A menu offers a list of choices to the user, such as a set of actions or functions. Choosing an item in a menu typically opens a sub menu, or invokes a command. - [menu-item](https://nvidia.github.io/elements/context/api/menu-item.md): Represents a selectable option within a menu, providing an interactive button for navigation or actions. - [month](https://nvidia.github.io/elements/context/api/month.md): A month picker is a control that enables users to choose a month value. - [notification](https://nvidia.github.io/elements/context/api/notification.md): Displays real time updates without interrupting the user's workflow to communicate an important message or status. [MDN Popover API](https://developer.mozilla.org/en-US/docs/Web/API/Popover_API) - [notification-group](https://nvidia.github.io/elements/context/api/notification-group.md): Displays real time updates without interrupting the user's workflow to communicate an important message or status. - [page](https://nvidia.github.io/elements/context/api/page.md): Provide a consistent page structure across the applications, ensuring a seamless user experience. - [page-header](https://nvidia.github.io/elements/context/api/page-header.md): An element that appears across the top of all pages containing the application name and primary navigation. - [page-loader](https://nvidia.github.io/elements/context/api/page-loader.md): Page Loader is a full-screen version of the `progress-ring` component, for use when the page should remain unusable as the loader displays. - [page-panel](https://nvidia.github.io/elements/context/api/page-panel.md): Child panel for embedded panels within the page component. Typically used for left/right/bottom page slot positions. - [page-panel-content](https://nvidia.github.io/elements/context/api/page-panel-content.md): Contains the scrollable main body content within a page panel region. - [page-panel-footer](https://nvidia.github.io/elements/context/api/page-panel-footer.md): Provides a fixed action area at the bottom of a page panel for persistent controls or status information. - [page-panel-header](https://nvidia.github.io/elements/context/api/page-panel-header.md): Displays the title and contextual controls at the top of a page panel to identify its purpose. - [pagination](https://nvidia.github.io/elements/context/api/pagination.md): Pagination is a control that enables users to navigate through pages of content. - [panel](https://nvidia.github.io/elements/context/api/panel.md): Panel is inline container for content that couples to the content on the page (details, extra actions/options). Or [Drawer](./docs/elements/drawer/) is out of context of the rest of the page (notifications, navigations, settings). - [panel-content](https://nvidia.github.io/elements/context/api/panel-content.md): Contains the main body content within a panel, providing a structured region for detailed information. - [panel-footer](https://nvidia.github.io/elements/context/api/panel-footer.md): Provides a designated area at the bottom of a panel for actions or supplementary controls. - [password](https://nvidia.github.io/elements/context/api/password.md): A password is a control that enables users to enter password text. - [preferences-input](https://nvidia.github.io/elements/context/api/preferences-input.md): A preferences input is a widget for controlling apperance. Stylesheets register to the preferences input by including a css-property, see Standard for an example. - [progress-bar](https://nvidia.github.io/elements/context/api/progress-bar.md): A progress bar is a visual indicator of the status of a running task. Under the hood, the component uses the native HTML `progress` element to achieve proper a11y concerns. - [progress-ring](https://nvidia.github.io/elements/context/api/progress-ring.md): The `progress-ring` component shows the status of a pending task. It also serves the basis of the page loading element. - [progressive-filter-chip](https://nvidia.github.io/elements/context/api/progressive-filter-chip.md): A filter chip is a control that enables users to select many options from a set of choices. - [pulse](https://nvidia.github.io/elements/context/api/pulse.md): Pulse component signals attention for a particular area of a UI. This helps with tutorial/getting started guides for new users. - [radio](https://nvidia.github.io/elements/context/api/radio.md): A radio button is a control that enables users to choose one option from a list of mutually exclusive options. - [radio-group](https://nvidia.github.io/elements/context/api/radio-group.md): Groups related radio buttons together with a shared label and validation messaging for single-select form inputs. - [range](https://nvidia.github.io/elements/context/api/range.md): A range slider is a control that enables users to choose a value from a continuous range of values. - [resize-handle](https://nvidia.github.io/elements/context/api/resize-handle.md): A resize-handle slider is a control that enables users to resize views or panels vertically or horizontally. - [search](https://nvidia.github.io/elements/context/api/search.md): A search is a control that enables users to enter text to search. - [select](https://nvidia.github.io/elements/context/api/select.md): A select is a control that enables users to select an option from a list of options. - [skeleton](https://nvidia.github.io/elements/context/api/skeleton.md): A loading placeholder component that displays animated placeholder shapes while content loads. - [sort-button](https://nvidia.github.io/elements/context/api/sort-button.md): A sort button is a control that enables users to sort a list of items in ascending or descending order. - [sparkline](https://nvidia.github.io/elements/context/api/sparkline.md): A sparkline is a compact, word-sized chart with typographic scale, for data-dense layouts (text, tables, cards, dashboards). - [star-rating](https://nvidia.github.io/elements/context/api/star-rating.md): A star rating component lets users rate something using stars, providing a quick visual representation of feedback - [steps](https://nvidia.github.io/elements/context/api/steps.md): Steps enables a multi-step workflow allowing a user to complete a goal in a specific sequence. - [steps-item](https://nvidia.github.io/elements/context/api/steps-item.md): Represents an individual step within a multi-step workflow, displaying its status and enabling navigation within the parent steps component. - [switch](https://nvidia.github.io/elements/context/api/switch.md): A switch is a control that enables users to switch between two mutually exclusive options (on or off, checked or unchecked) through a single click or tap. - [switch-group](https://nvidia.github.io/elements/context/api/switch-group.md): A switch group is a container for a group of switches. - [tabs](https://nvidia.github.io/elements/context/api/tabs.md): Tabs provide a selection UX, typically used for swapping content shown on a page, or within a navigation context. - [tabs-group](https://nvidia.github.io/elements/context/api/tabs-group.md): Coordinates tabs with matching panel content using Invoker Commands and slot-matched panels. - [tabs-item](https://nvidia.github.io/elements/context/api/tabs-item.md): Represents an individual tab within a tablist, providing a selectable button for switching between content views. - [tag](https://nvidia.github.io/elements/context/api/tag.md): A interactive element that represents a category or group of content. Typically used to filter or organize content for one to many relations. - [textarea](https://nvidia.github.io/elements/context/api/textarea.md): A textarea is a control that enables users to enter and edit text. - [time](https://nvidia.github.io/elements/context/api/time.md): A time picker is a control that enables users to choose a time value. - [toast](https://nvidia.github.io/elements/context/api/toast.md): A contextual popup that displays a status. Toasts are [triggered](https://w3c.github.io/aria/#tooltip) by clicking, focusing, or tapping an element and cannot have interactive elements within them. [MDN Popover API](https://developer.mozilla.org/en-US/docs/Web/API/Popover_API) - [toggletip](https://nvidia.github.io/elements/context/api/toggletip.md): Generic toggletip element for rendering a variety of different interactive content. [MDN Popover API](https://developer.mozilla.org/en-US/docs/Web/API/Popover_API) - [toggletip-footer](https://nvidia.github.io/elements/context/api/toggletip-footer.md): Provides a designated area at the bottom of a toggletip for actions or supplementary information. - [toggletip-header](https://nvidia.github.io/elements/context/api/toggletip-header.md): Displays a title or contextual label at the top of a toggletip to categorize its contents. - [toolbar](https://nvidia.github.io/elements/context/api/toolbar.md): A toolbar is a container for grouping a set of controls, such as buttons, icon buttons and combobox search. - [tooltip](https://nvidia.github.io/elements/context/api/tooltip.md): A contextual popup that displays a plaintext description. Tooltips are [triggered](https://w3c.github.io/aria/#tooltip) by hovering, focusing, or tapping an element and cannot have interactive elements within them. [MDN Popover API](https://developer.mozilla.org/en-US/docs/Web/API/Popover_API) - [tree](https://nvidia.github.io/elements/context/api/tree.md): A tree view widget presents a hierarchical list. Any item in the hierarchy may have child items, and items that have children can expand or collapse to show or hide the children. - [tree-node](https://nvidia.github.io/elements/context/api/tree-node.md): A tree view widget presents a hierarchical list. Any item in the hierarchy may have child items, and items that have children can expand or collapse to show or hide the children. - [week](https://nvidia.github.io/elements/context/api/week.md): A week picker is a control that enables users to choose a week value. - [codeblock](https://nvidia.github.io/elements/context/api/codeblock.md): A container for content representing programming languages. - [markdown](https://nvidia.github.io/elements/context/api/markdown.md): A Web Component that inputs markdown content and renders it as HTML formatted with Elements styles. - [monaco-diff-editor](https://nvidia.github.io/elements/context/api/monaco-diff-editor.md): A low-level Monaco Editor wrapper that provides direct access to a diff editor instance and API. - [monaco-diff-input](https://nvidia.github.io/elements/context/api/monaco-diff-input.md): An input control for editing diffs for JSON, YAML and code with syntax highlighting and validation. - [monaco-editor](https://nvidia.github.io/elements/context/api/monaco-editor.md): A low-level Monaco Editor wrapper that provides direct access to an editor instance and API. - [monaco-input](https://nvidia.github.io/elements/context/api/monaco-input.md): An input control for editing JSON, YAML and code with syntax highlighting and validation. - [monaco-problems](https://nvidia.github.io/elements/context/api/monaco-problems.md): A Monaco Editor based tree view for presenting problems (i.e. diagnostics markers). - [layout (attribute utility)](https://nvidia.github.io/elements/context/api/layout.md): Layout utility for native HTML elements - [text (attribute utility)](https://nvidia.github.io/elements/context/api/text.md): Typography style utility for native HTML elements ## nve-accordion An accordion is a vertical stack of interactive headings used to toggle the display of further information. ### Example ```html

Workspace Settings

Adjust workspace preferences and project configurations to customize your experience.
``` ### Import ```javascript import '@nvidia-elements/core/accordion/define.js'; ``` ### Slots | name | value | description | | ---- | ----- | ----------- | | (default) | `string` | This is a default/unnamed slot for accordion content | | icon-button | `string` | icon elements to display for expand/collapse | | header | `string` | header element (Use `accordion-header` or custom content) | | content | `string` | content element (Use `accordion-content` or custom content) | ### Properties / Attributes | property (attribute) | value | description | | -------------------- | ----- | ----------- | | i18n | | Enables updating internal string values for internationalization. | | container | `'flat' \| 'inset' \| "default"` | Demonstrates different container styles to accommodate visual weight and context. - `flat` Element has white space bounds but reduced visual container. - `inset` Element container optimizes for embedding or inset placement inside another containing element. | | expanded | `boolean` | Indicates whether collapsible content is currently visible or hidden from the user. [MDN](https://mdn.dev/ARIA/Attributes/aria-expanded) - `true` The associated content expands and becomes visible to the user. - `false` The associated content collapses and hides from the user. | | disabled | `boolean` | This Boolean attribute prevents the user from interacting with the element: it cannot receive press or focus events. [MDN](https://mdn.dev/ARIA/Attributes/aria-disabled) - `true` The element has a disabled state and does not accept interaction. - `false` The element has an enabled state and accepts interaction. | | behaviorExpand (behavior-expand) | `boolean` | Determines whether the accordion should opt-in to stateful expansion behavior (defaults to stateless) | ### Invoker Commands | name | value | description | | ---- | ----- | ----------- | | --open | `CommandEvent` | use to open the accordion | | --close | `CommandEvent` | use to close the accordion | | --toggle | `CommandEvent` | use to toggle the accordion | ### CSS Properties | name | value | description | | ---- | ----- | ----------- | | --background | `string` | [MDN](https://mdn.dev/CSS/background) | | --color | `string` | [MDN](https://mdn.dev/CSS/color) | | --border-radius | `string` | [MDN](https://mdn.dev/CSS/border-radius) | | --header-padding | `string` | | | --cursor | `string` | [MDN](https://mdn.dev/CSS/cursor) | | --transition | `string` | [MDN](https://mdn.dev/CSS/transition) | ## nve-accordion-content Contains the collapsible body content that reveals or hides when the parent accordion expands or collapses. ### Example ```html

Workspace Settings

Adjust workspace preferences and project configurations to customize your experience.
``` ### Import ```javascript import '@nvidia-elements/core/accordion/define.js'; ``` ### Slots | name | value | description | | ---- | ----- | ----------- | | (default) | `string` | This is a default/unnamed slot for accordion content | ### CSS Properties | name | value | description | | ---- | ----- | ----------- | | --padding | `string` | [MDN](https://mdn.dev/CSS/padding) | ## nve-accordion-group Organizes many accordions into a cohesive group, enabling coordinated expand/collapse behavior such as single-item expansion. ### Example ```html

Workspace Settings

Adjust workspace preferences and project configurations to customize your experience.
``` ### Import ```javascript import '@nvidia-elements/core/accordion/define.js'; ``` ### Slots | name | value | description | | ---- | ----- | ----------- | | (default) | `string` | This is a default slot for accordions within the group | ### Properties / Attributes | property (attribute) | value | description | | -------------------- | ----- | ----------- | | behaviorExpand (behavior-expand) | `boolean` | Determines whether the accordion should opt-in to stateful expansion behavior (defaults to stateless) | | behaviorExpandSingle (behavior-expand-single) | `boolean` | Determines whether the accordion should opt-in to stateful expansion of a single accordion at a time | | container | `'flat' \| 'inset' \| "default"` | Demonstrates different container styles to accommodate visual weight and context. - `flat` Element has white space bounds but reduced visual container. - `inset` Element container optimizes for embedding or inset placement inside another containing element. | ### CSS Properties | name | value | description | | ---- | ----- | ----------- | | --padding | `string` | [MDN](https://mdn.dev/CSS/padding) | ## nve-accordion-header Provides the clickable heading region of an accordion that toggles the visibility of associated content. ### Example ```html

Workspace Settings

Adjust workspace preferences and project configurations to customize your experience.
``` ### Import ```javascript import '@nvidia-elements/core/accordion/define.js'; ``` ### Slots | name | value | description | | ---- | ----- | ----------- | | (default) | `string` | default content slot | | prefix | `string` | slot for prefix content | | suffix | `string` | slot for suffix content | ### Properties / Attributes | property (attribute) | value | description | | -------------------- | ----- | ----------- | | slot | `string` | | ### CSS Properties | name | value | description | | ---- | ----- | ----------- | | --cursor | `string` | [MDN](https://mdn.dev/CSS/cursor) | ## nve-alert Alert is an element that displays a brief, important message in a way that attracts the user's attention without interrupting the user's task. ### Example ```html alert message ``` ### Import ```javascript import '@nvidia-elements/core/alert/define.js'; ``` ### Slots | name | value | description | | ---- | ----- | ----------- | | icon | `string` | Icon slot renders on the left side of the alert. Icons typically represent the alert's status. | | prefix | `string` | Prefix slot renders between the icon and the content. Prefixes typically represent the alert's status. | | actions | `string` | Actions render on the right side of the alert. Actions are typically buttons, but can also be links. Use actions for steps the user can take to resolve the alert. | | content | `string` | Content for large overflow text. | | (default) | `string` | Default content placed inside of the alert. | ### Properties / Attributes | property (attribute) | value | description | | -------------------- | ----- | ----------- | | status | `'accent' \| 'warning' \| 'success' \| 'danger' \| 'scheduled' \| 'queued' \| 'pending' \| 'starting' \| 'running' \| 'restarting' \| 'stopping' \| 'finished' \| 'failed' \| 'unknown' \| 'ignored' \| 'muted' \| "default"` | Communicates the intent and semantic meaning of an element to help users understand the outcome of their actions. - `accent` Highlights important actions or draws attention to primary interactive elements. - `warning` Indicates cautionary actions that require careful consideration before proceeding. - `success` Represents positive outcomes, confirmations, or constructive actions. - `danger` Signals destructive or irreversible actions that need extra attention and confirmation. - `scheduled` Task has a scheduled future execution at a specific time. - `queued` Task is waiting in line to begin after other tasks complete. - `pending` Task is awaiting approval, user input, or external conditions before proceeding. - `starting` Task is initializing and preparing to begin active execution. - `running` Task is actively executing and making progress. - `restarting` Task restarts after an interruption or reset. - `stopping` Task is gracefully shutting down and completing cleanup operations. - `finished` Task has completed successfully with the expected outcome. - `failed` Task encountered an error and did not complete as intended. - `unknown` Task status remains unknown or unavailable. - `ignored` Task was intentionally skipped or excluded from execution. | | closable | `boolean` | Indicates whether the user can dismiss or close the element. - `true` The element displays a close control and the user can dismiss it. - `false` The user cannot close the element and must dismiss it programmatically. | | i18n | | Enables updating internal string values for internationalization. | ### Events | name | value | description | | ---- | ----- | ----------- | | close | `CustomEvent` | Dispatched when the alert closes within an alert group. | ### Invoker Commands | name | value | description | | ---- | ----- | ----------- | | --close | `CommandEvent` | Use to set the alert closed/hidden state. | ### CSS Properties | name | value | description | | ---- | ----- | ----------- | | --gap | `string` | [MDN](https://mdn.dev/CSS/gap) | | --font-size | `string` | [MDN](https://mdn.dev/CSS/font-size) | | --color | `string` | [MDN](https://mdn.dev/CSS/color) | | --icon-color | `string` | [MDN](https://mdn.dev/CSS/color) | | --icon-size | `string` | | | --font-weight | `string` | [MDN](https://mdn.dev/CSS/font-weight) | | --justify-content | `string` | [MDN](https://mdn.dev/CSS/justify-content) | | --align-items | `string` | [MDN](https://mdn.dev/CSS/align-items) | | --min-height | `string` | [MDN](https://mdn.dev/CSS/min-height) | | --text-transform | `string` | [MDN](https://mdn.dev/CSS/text-transform) | | --height | `string` | [MDN](https://mdn.dev/CSS/height) | | --width | `string` | [MDN](https://mdn.dev/CSS/width) | ## nve-alert-group An alert group is an element that displays a group of related and important messages in a way that attracts the user's attention without interrupting the user's task. ### Import ```javascript import '@nvidia-elements/core/alert/define.js'; ``` ### Slots | name | value | description | | ---- | ----- | ----------- | | (default) | `string` | default slot for nve-alert | ### Properties / Attributes | property (attribute) | value | description | | -------------------- | ----- | ----------- | | status | `'accent' \| 'warning' \| 'success' \| 'danger' \| "default"` | Communicates the intent and semantic meaning of an element to help users understand the outcome of their actions. - `accent` Highlights important actions or draws attention to primary interactive elements. - `warning` Indicates cautionary actions that require careful consideration before proceeding. - `success` Represents positive outcomes, confirmations, or constructive actions. - `danger` Signals destructive or irreversible actions that need extra attention and confirmation. | | prominence | `'emphasis' \| "default"` | Controls the visual prominence to establish hierarchy and guide user attention. - `emphasis` Increases visual weight to draw attention and highlight important elements. | | color | `'red-cardinal' \| 'gray-slate' \| 'gray-denim' \| 'blue-indigo' \| 'blue-cobalt' \| 'blue-sky' \| 'teal-cyan' \| 'green-mint' \| 'teal-seafoam' \| 'green-grass' \| 'yellow-amber' \| 'orange-pumpkin' \| 'red-tomato' \| 'pink-magenta' \| 'purple-plum' \| 'purple-violet' \| 'purple-lavender' \| 'pink-rose' \| 'green-jade' \| 'lime-pear' \| 'yellow-nova' \| 'brand-green'` | Defines a base color from the theme color palette | | container | `'full' \| "default"` | Demonstrates different container styles to accommodate visual weight and context. - `full` Element container optimizes for filling its container bounds. | ### CSS Properties | name | value | description | | ---- | ----- | ----------- | | --gap | `string` | [MDN](https://mdn.dev/CSS/gap) | | --font-size | `string` | [MDN](https://mdn.dev/CSS/font-size) | | --padding | `string` | [MDN](https://mdn.dev/CSS/padding) | | --border | `string` | [MDN](https://mdn.dev/CSS/border) | | --border-radius | `string` | [MDN](https://mdn.dev/CSS/border-radius) | | --color | `string` | [MDN](https://mdn.dev/CSS/color) | | --background | `string` | [MDN](https://mdn.dev/CSS/background) | ## nve-avatar Avatar represents a user/bot within a UI. Typically with text or image content. ### Example ```html AV ``` ### Import ```javascript import '@nvidia-elements/core/avatar/define.js'; ``` ### Slots | name | value | description | | ---- | ----- | ----------- | | (default) | `string` | default slot for content | ### Properties / Attributes | property (attribute) | value | description | | -------------------- | ----- | ----------- | | size | `'sm' \| 'md' \| 'lg' \| 'xs' \| "default"` | Controls the visual scale of an element to match its importance and available space. - `sm` Compact size for dense layouts or secondary elements with less visual prominence. - `md` Standard size that works well in most contexts and provides balanced visibility. - `lg` Larger size for emphasizing important elements or improving touch targets in spacious layouts. | | color | `'red-cardinal' \| 'gray-slate' \| 'gray-denim' \| 'blue-indigo' \| 'blue-cobalt' \| 'blue-sky' \| 'teal-cyan' \| 'green-mint' \| 'teal-seafoam' \| 'green-grass' \| 'yellow-amber' \| 'orange-pumpkin' \| 'red-tomato' \| 'pink-magenta' \| 'purple-plum' \| 'purple-violet' \| 'purple-lavender' \| 'pink-rose' \| 'green-jade' \| 'lime-pear' \| 'yellow-nova' \| 'brand-green'` | Defines a base color from the theme color palette | ### CSS Properties | name | value | description | | ---- | ----- | ----------- | | --background | `string` | [MDN](https://mdn.dev/CSS/background) | | --color | `string` | [MDN](https://mdn.dev/CSS/color) | | --border-radius | `string` | [MDN](https://mdn.dev/CSS/border-radius) | | --height | `string` | [MDN](https://mdn.dev/CSS/height) | | --width | `string` | [MDN](https://mdn.dev/CSS/width) | | --font-size | `string` | [MDN](https://mdn.dev/CSS/font-size) | | --font-weight | `string` | [MDN](https://mdn.dev/CSS/font-weight) | | --border | `string` | [MDN](https://mdn.dev/CSS/border) | ## nve-avatar-group An avatar group displays a collection of user avatars in a compact and organized layout, showcasing many participants or contributors in a space-efficient way. ### Import ```javascript import '@nvidia-elements/core/avatar/define.js'; ``` ### Slots | name | value | description | | ---- | ----- | ----------- | | (default) | `string` | default slot for content | ## nve-badge A visual indicator that communicates a status description of an associated component. Status badges use short text, color, built in icons for quick recognition and render near the relevant content. ### Example ```html badge ``` ### Import ```javascript import '@nvidia-elements/core/badge/define.js'; ``` ### Slots | name | value | description | | ---- | ----- | ----------- | | (default) | `string` | default slot for content | | prefix-icon | `string` | slot for prefix icon | | suffix-icon | `string` | slot for suffix icon | ### Properties / Attributes | property (attribute) | value | description | | -------------------- | ----- | ----------- | | status | `'scheduled' \| 'queued' \| 'pending' \| 'starting' \| 'running' \| 'restarting' \| 'stopping' \| 'finished' \| 'failed' \| 'unknown' \| 'ignored' \| 'accent' \| 'warning' \| 'success' \| 'danger'` | Communicates the intent and semantic meaning of an element to help users understand the outcome of their actions. - `accent` Highlights important actions or draws attention to primary interactive elements. - `warning` Indicates cautionary actions that require careful consideration before proceeding. - `success` Represents positive outcomes, confirmations, or constructive actions. - `danger` Signals destructive or irreversible actions that need extra attention and confirmation. - `scheduled` Task has a scheduled future execution at a specific time. - `queued` Task is waiting in line to begin after other tasks complete. - `pending` Task is awaiting approval, user input, or external conditions before proceeding. - `starting` Task is initializing and preparing to begin active execution. - `running` Task is actively executing and making progress. - `restarting` Task restarts after an interruption or reset. - `stopping` Task is gracefully shutting down and completing cleanup operations. - `finished` Task has completed successfully with the expected outcome. - `failed` Task encountered an error and did not complete as intended. - `unknown` Task status remains unknown or unavailable. - `ignored` Task was intentionally skipped or excluded from execution. | | color | `'red-cardinal' \| 'gray-slate' \| 'gray-denim' \| 'blue-indigo' \| 'blue-cobalt' \| 'blue-sky' \| 'teal-cyan' \| 'green-mint' \| 'teal-seafoam' \| 'green-grass' \| 'yellow-amber' \| 'orange-pumpkin' \| 'red-tomato' \| 'pink-magenta' \| 'purple-plum' \| 'purple-violet' \| 'purple-lavender' \| 'pink-rose' \| 'green-jade' \| 'lime-pear' \| 'yellow-nova' \| 'brand-green'` | Defines a base color from the theme color palette | | container | `'flat' \| "default"` | Demonstrates different container styles to accommodate visual weight and context. - `flat` Element has white space bounds but reduced visual container. | | prominence | `'emphasis' \| "default"` | Controls the visual prominence to establish hierarchy and guide user attention. - `emphasis` Increases visual weight to draw attention and highlight important elements. | | i18n | | Enables updating internal string values for internationalization. | ### CSS Properties | name | value | description | | ---- | ----- | ----------- | | --background | `string` | [MDN](https://mdn.dev/CSS/background) | | --color | `string` | [MDN](https://mdn.dev/CSS/color) | | --gap | `string` | [MDN](https://mdn.dev/CSS/gap) | | --font-size | `string` | [MDN](https://mdn.dev/CSS/font-size) | | --icon-color | `string` | [MDN](https://mdn.dev/CSS/color) | | --padding | `string` | [MDN](https://mdn.dev/CSS/padding) | | --border | `string` | [MDN](https://mdn.dev/CSS/border) | | --border-radius | `string` | [MDN](https://mdn.dev/CSS/border-radius) | | --font-weight | `string` | [MDN](https://mdn.dev/CSS/font-weight) | | --text-transform | `string` | [MDN](https://mdn.dev/CSS/text-transform) | | --width | `string` | [MDN](https://mdn.dev/CSS/width) | | --height | `string` | [MDN](https://mdn.dev/CSS/height) | ## nve-breadcrumb Breadcrumb is a component that can help users establish their location while navigating a website with complex URLs and navigation paths. ### Example ```html Item 1 Item 2 Item 3 You Are Here ``` ### Import ```javascript import '@nvidia-elements/core/breadcrumb/define.js'; ``` ### Slots | name | value | description | | ---- | ----- | ----------- | | (default) | `string` | default slot for `nve-button` and anchor elements | ### CSS Properties | name | value | description | | ---- | ----- | ----------- | | --gap | `string` | [MDN](https://mdn.dev/CSS/gap) | | --height | `string` | [MDN](https://mdn.dev/CSS/height) | | --font-size | `string` | [MDN](https://mdn.dev/CSS/font-size) | | --font-weight | `string` | [MDN](https://mdn.dev/CSS/font-weight) | | --color | `string` | [MDN](https://mdn.dev/CSS/color) | | --border-radius | `string` | [MDN](https://mdn.dev/CSS/border-radius) | | --padding | `string` | [MDN](https://mdn.dev/CSS/padding) | | --width | `string` | [MDN](https://mdn.dev/CSS/width) | | --icon-width | `string` | [MDN](https://mdn.dev/CSS/width) | | --icon-height | `string` | [MDN](https://mdn.dev/CSS/height) | | --text-decoration | `string` | [MDN](https://mdn.dev/CSS/text-decoration) | | --breadcrumb-height | `string` | deprecated | | --item-text-size | `string` | deprecated | | --item-color | `string` | deprecated | | --item-active-color | `string` | deprecated | | --item-active-font-weight | `string` | deprecated | ## nve-button A button is a widget that enables users to trigger an action or event, such as submitting a form, opening a dialog, canceling an action, or performing a delete operation. ### Example ```html standard ``` ### Import ```javascript import '@nvidia-elements/core/button/define.js'; ``` ### Slots | name | value | description | | ---- | ----- | ----------- | | (default) | `string` | slot for button text content or icon, icon placement depends on whether `icon` appears before or after text content. | ### Properties / Attributes | property (attribute) | value | description | | -------------------- | ----- | ----------- | | container | `'flat' \| 'inline' \| "default"` | Demonstrates different container styles to accommodate visual weight and context. - `flat` Element has white space bounds but reduced visual container. - `inline` Element container reduces to fit within inline content such as a block of text. | | size | `'sm' \| 'md' \| 'lg' \| "default"` | Controls the visual scale of an element to match its importance and available space. - `sm` Compact size for dense layouts or secondary elements with less visual prominence. - `md` Standard size that works well in most contexts and provides balanced visibility. - `lg` Larger size for emphasizing important elements or improving touch targets in spacious layouts. | | interaction | `'emphasis' \| 'destructive'` | The Interaction type provides a way to show the intent of an interactive element. This can help users quickly understand what each interaction does and reduce the potential for confusion or errors. - `emphasis` Shows the interaction targets emphasis or highlighting primary actions. - `destructive` Shows the interaction targets destructive actions such as deleting or removing. | | pressed | `boolean` | Indicates the current state of a toggle button that switches on or off. [MDN](https://mdn.dev/ARIA/Attributes/aria-pressed) - `true` The button is in the pressed (on) state and the associated action or setting is active. - `false` The button is in the unpressed (off) state and the associated action or setting is inactive. | | expanded | `boolean` | Indicates whether collapsible content is currently visible or hidden from the user. [MDN](https://mdn.dev/ARIA/Attributes/aria-expanded) - `true` The associated content expands and becomes visible to the user. - `false` The associated content collapses and hides from the user. | | readOnly (readonly) | `boolean` | Indicates whether the user can change the element's value while it remains visible and focusable. [MDN](https://mdn.dev/HTML/Attributes/readonly) - `true` The element has a readonly state: the user cannot change its value, but can still focus and copy it. - `false` The element allows editing and the user can change its value through interaction. | | form | `HTMLFormElement \| null \| string` | Like input form, sets a button to submit a form outside its parent form. Returns a reference to the form element if available. https://mdn.dev/ElementInternals/form | | name | `string` | The name of the button, submitted as a pair with the button's value as part of the form data, when that button submits the form. https://mdn.dev/HTML/Element/button#attr-name | | value | `string` | Defines the value associated with the element's name when submitting the form data. The server receives this value in params when the form submits through this button. [MDN](https://mdn.dev/HTML/Element/input#value) | | type | `'button' \| 'submit' \| 'reset'` | Defines the button behavior when associated within an
element. https://mdn.dev/HTML/Element/button#attr-type | | disabled | `boolean` | This Boolean attribute prevents the user from interacting with the element: it cannot receive press or focus events. [MDN](https://mdn.dev/ARIA/Attributes/aria-disabled) - `true` The element has a disabled state and does not accept interaction. - `false` The element has an enabled state and accepts interaction. | | selected | `boolean` | Indicates whether an element currently holds selection within a multi-option selection group. [MDN](https://mdn.dev/ARIA/Attributes/aria-selected) - `true` The element holds selection and represents the user's current choice within the group. - `false` The element does not hold selection and the user can choose it. | | current | `'page' \| 'step'` | Indicates the element that represents the user's current location or position within a set. [MDN](https://mdn.dev/ARIA/Attributes/aria-current) - `page` Marks the current page within a set of navigation links. - `step` Marks the current step within a multi-step process or workflow. | | popoverTargetElement | `HTMLElement \| null` | Establishing a relationship between a popover and its invoker button. https://mdn.dev/HTMLInputElement/popoverTargetElement | | popovertarget | `string` | The idref of the element that receives the popover. https://mdn.dev/HTML/Reference/Elements/button#popovertarget | | popoverTargetAction (popovertargetaction) | `'show' \| 'hide' \| 'toggle'` | The popover target action to perform on the popover target element. https://mdn.dev/HTMLInputElement/popoverTargetAction | | commandForElement | `HTMLElement \| null` | The element that receives the command. https://mdn.dev/Invoker_Commands_API | | commandfor | `string \| null` | The idref of the element that receives the command. https://mdn.dev/Invoker_Commands_API | | command | `string` | The command to execute on the element. https://mdn.dev/Invoker_Commands_API | | interestForElement | `HTMLElement \| null` | The element that receives the interest. https://mdn.dev/HTMLAnchorElement/interestForElement | | interestfor | `string \| null` | The idref of the element that receives the interest. https://mdn.dev/HTMLAnchorElement/interestForElement | ### CSS Properties | name | value | description | | ---- | ----- | ----------- | | --background | `string` | [MDN](https://mdn.dev/CSS/background) | | --color | `string` | [MDN](https://mdn.dev/CSS/color) | | --padding | `string` | [MDN](https://mdn.dev/CSS/padding) | | --border | `string` | [MDN](https://mdn.dev/CSS/border) | | --border-radius | `string` | [MDN](https://mdn.dev/CSS/border-radius) | | --font-weight | `string` | [MDN](https://mdn.dev/CSS/font-weight) | | --font-size | `string` | [MDN](https://mdn.dev/CSS/font-size) | | --text-decoration | `string` | [MDN](https://mdn.dev/CSS/text-decoration) | | --text-align | `string` | [MDN](https://mdn.dev/CSS/text-align) | | --cursor | `string` | [MDN](https://mdn.dev/CSS/cursor) | | --gap | `string` | [MDN](https://mdn.dev/CSS/gap) | | --height | `string` | [MDN](https://mdn.dev/CSS/height) | | --text-transform | `string` | [MDN](https://mdn.dev/CSS/text-transform) | | --line-height | `string` | [MDN](https://mdn.dev/CSS/line-height) | | --width | `string` | [MDN](https://mdn.dev/CSS/width) | | --min-width | `string` | [MDN](https://mdn.dev/CSS/min-width) | ## nve-button-group A button group organizes related buttons and can support either mutually exclusive single or multi selection. Prefer usage within toolbars. ### Example ```html ``` ### Import ```javascript import '@nvidia-elements/core/button-group/define.js'; ``` ### Slots | name | value | description | | ---- | ----- | ----------- | | (default) | `string` | default slot for `nve-button` or `nve-icon-button` | ### Properties / Attributes | property (attribute) | value | description | | -------------------- | ----- | ----------- | | behaviorSelect (behavior-select) | `'single' \| 'multi'` | By default the button group is stateless. Add the `behavior-select` attribute and set to `single` or `multi` to enable stateful selction handling. | | container | `'flat' \| 'rounded' \| "default"` | Demonstrates different container styles to accommodate visual weight and context. - `flat` Element has white space bounds but reduced visual container. | | orientation | `'horizontal' \| 'vertical' \| "default"` | Controls the directional flow of the element's layout and interaction pattern. - `horizontal` Element orients horizontally with left-to-right flow. - `vertical` Element orients vertically with top-to-bottom flow. | | interaction | `'emphasis' \| 'destructive'` | The Interaction type provides a way to show the intent of an interactive element. This can help users quickly understand what each interaction does and reduce the potential for confusion or errors. - `emphasis` Shows the interaction targets emphasis or highlighting primary actions. - `destructive` Shows the interaction targets destructive actions such as deleting or removing. | | size | `'sm' \| 'md' \| 'lg' \| "default"` | Controls the visual scale of an element to match its importance and available space. - `sm` Compact size for dense layouts or secondary elements with less visual prominence. - `md` Standard size that works well in most contexts and provides balanced visibility. - `lg` Larger size for emphasizing important elements or improving touch targets in spacious layouts. | ### CSS Properties | name | value | description | | ---- | ----- | ----------- | | --background | `string` | [MDN](https://mdn.dev/CSS/background) | | --border-radius | `string` | [MDN](https://mdn.dev/CSS/border-radius) | | --padding | `string` | [MDN](https://mdn.dev/CSS/padding) | | --gap | `string` | [MDN](https://mdn.dev/CSS/gap) | | --width | `string` | [MDN](https://mdn.dev/CSS/width) | | --height | `string` | [MDN](https://mdn.dev/CSS/height) | | --color | `string` | [MDN](https://mdn.dev/CSS/color) | ## nve-card A container for content representing a single entity. ### Example ```html

Heading

card content

card footer

``` ### Import ```javascript import '@nvidia-elements/core/card/define.js'; ``` ### Slots | name | value | description | | ---- | ----- | ----------- | | (default) | `string` | use ``,``,`` for card content layout | ### Properties / Attributes | property (attribute) | value | description | | -------------------- | ----- | ----------- | | container | `'flat' \| 'full' \| "default"` | Demonstrates different container styles to accommodate visual weight and context. - `flat` Element has white space bounds but reduced visual container. - `full` Element container optimizes for filling its container bounds. | ### CSS Properties | name | value | description | | ---- | ----- | ----------- | | --background | `string` | [MDN](https://mdn.dev/CSS/background) | | --color | `string` | [MDN](https://mdn.dev/CSS/color) | | --border-radius | `string` | [MDN](https://mdn.dev/CSS/border-radius) | | --box-shadow | `string` | [MDN](https://mdn.dev/CSS/box-shadow) | | --border | `string` | [MDN](https://mdn.dev/CSS/border) | ## nve-card-content Contains the primary body content of a card, providing a structured region for the main information or media. ### Example ```html

Heading

card content

card footer

``` ### Import ```javascript import '@nvidia-elements/core/card/define.js'; ``` ### Slots | name | value | description | | ---- | ----- | ----------- | | (default) | `string` | This is a default/unnamed slot for card content | ### CSS Properties | name | value | description | | ---- | ----- | ----------- | | --padding | `string` | [MDN](https://mdn.dev/CSS/padding) | ## nve-card-footer Provides a designated area at the bottom of a card for actions, metadata, or supplementary information. ### Example ```html

Heading

card content

card footer

``` ### Import ```javascript import '@nvidia-elements/core/card/define.js'; ``` ### Slots | name | value | description | | ---- | ----- | ----------- | | (default) | `string` | This is a default/unnamed slot for card footer content | ### Properties / Attributes | property (attribute) | value | description | | -------------------- | ----- | ----------- | | slot | `string` | | ### CSS Properties | name | value | description | | ---- | ----- | ----------- | | --padding | `string` | [MDN](https://mdn.dev/CSS/padding) | | --border-top | `string` | [MDN](https://mdn.dev/CSS/border-top) | ## nve-card-header Displays the title and optional actions at the top of a card, establishing the card's identity and purpose. ### Example ```html

Heading

card content

card footer

``` ### Import ```javascript import '@nvidia-elements/core/card/define.js'; ``` ### Slots | name | value | description | | ---- | ----- | ----------- | | (default) | `string` | default slot | ### Properties / Attributes | property (attribute) | value | description | | -------------------- | ----- | ----------- | | slot | `string` | | ### CSS Properties | name | value | description | | ---- | ----- | ----------- | | --padding | `string` | [MDN](https://mdn.dev/CSS/padding) | | --border-bottom | `string` | [MDN](https://mdn.dev/CSS/border-bottom) | | --line-height | `string` | [MDN](https://mdn.dev/CSS/line-height) | | --gap | `string` | [MDN](https://mdn.dev/CSS/gap) | ## nve-chat-message A chat message component displays a text message within a conversation, sent between users or bots ### Example ```html Your deployment completed successfully. All services are running as expected. ``` ### Import ```javascript import '@nvidia-elements/core/chat-message/define.js'; ``` ### Slots | name | value | description | | ---- | ----- | ----------- | | (default) | `string` | default slot for content | | prefix | `string` | for avatar/img content | | suffix | `string` | for avatar/img content | ### Properties / Attributes | property (attribute) | value | description | | -------------------- | ----- | ----------- | | container | `'flat'` | Demonstrates different container styles to accommodate visual weight and context. - `flat` Element has white space bounds but reduced visual container. | | color | `'red-cardinal' \| 'gray-slate' \| 'gray-denim' \| 'blue-indigo' \| 'blue-cobalt' \| 'blue-sky' \| 'teal-cyan' \| 'green-mint' \| 'teal-seafoam' \| 'green-grass' \| 'yellow-amber' \| 'orange-pumpkin' \| 'red-tomato' \| 'pink-magenta' \| 'purple-plum' \| 'purple-violet' \| 'purple-lavender' \| 'pink-rose' \| 'green-jade' \| 'lime-pear' \| 'yellow-nova' \| 'brand-green'` | Defines a base color from the theme color palette | | arrowPosition (arrow-position) | `\| 'top-start' \| 'top-end' \| 'bottom-start' \| 'bottom-end'` | | ### CSS Properties | name | value | description | | ---- | ----- | ----------- | | --background | `string` | [MDN](https://mdn.dev/CSS/background) | | --color | `string` | [MDN](https://mdn.dev/CSS/color) | | --padding | `string` | [MDN](https://mdn.dev/CSS/padding) | | --gap | `string` | [MDN](https://mdn.dev/CSS/gap) | | --border-radius | `string` | [MDN](https://mdn.dev/CSS/border-radius) | | --font-size | `string` | [MDN](https://mdn.dev/CSS/font-size) | | --line-height | `string` | [MDN](https://mdn.dev/CSS/line-height) | | --overflow | `string` | [MDN](https://mdn.dev/CSS/overflow) | | --top-offset | `string` | Vertical offset for aligning message with avatar | ## nve-checkbox A checkbox is a control that enables users to choose between two distinct mutually exclusive options (checked or unchecked, on or off) through a single click or tap. ### Example ```html ``` ### Import ```javascript import '@nvidia-elements/core/checkbox/define.js'; ``` ### Slots | name | value | description | | ---- | ----- | ----------- | | (default) | `string` | Control input element | | label | `string` | Label element | ### Properties / Attributes | property (attribute) | value | description | | -------------------- | ----- | ----------- | | nveControl | `string` | | | status | `'warning' \| 'error' \| 'success' \| 'disabled'` | Communicates the intent and semantic meaning of an element to help users understand the outcome of their actions. - `warning` Indicates cautionary actions that require careful consideration before proceeding. - `success` Represents positive outcomes, confirmations, or constructive actions. | | layout | `\| 'vertical' \| 'vertical-inline' \| 'horizontal' \| 'horizontal-inline'` | Controls the directional arrangement and spacing behavior of the element's content. - `vertical` Arranges content in a vertical stack with block-level spacing. - `vertical-inline` Arranges content vertically with compact inline spacing for dense layouts. - `horizontal` Arranges content in a horizontal row with block-level spacing. - `horizontal-inline` Arranges content horizontally with compact inline spacing. | | i18n | | Enables updating internal string values for internationalization. | | prominence | `'muted'` | Controls the visual prominence to establish hierarchy and guide user attention. - `muted` Reduces visual weight for supporting content that should remain subtle and unobtrusive. | | reset | | Resets control value to initial attribute value and clears any active validation rules. | | showPicker | | | ### Events | name | value | description | | ---- | ----- | ----------- | | reset | `CustomEvent` | | ### CSS Properties | name | value | description | | ---- | ----- | ----------- | | --cursor | `string` | [MDN](https://mdn.dev/CSS/cursor) | | --width | `string` | [MDN](https://mdn.dev/CSS/width) | | --height | `string` | [MDN](https://mdn.dev/CSS/height) | | --border-width | `string` | [MDN](https://mdn.dev/CSS/border-width) | | --border-radius | `string` | [MDN](https://mdn.dev/CSS/border-radius) | | --border-color | `string` | [MDN](https://mdn.dev/CSS/border-color) | | --background | `string` | [MDN](https://mdn.dev/CSS/background) | | --check-color | `string` | | | --accent-color | `string` | [MDN](https://mdn.dev/CSS/accent-color) | | --color | `string` | [MDN](https://mdn.dev/CSS/color) | | --label-color | `string` | [MDN](https://mdn.dev/CSS/color) | | --label-width | `string` | [MDN](https://mdn.dev/CSS/width) | | --label-font-weight | `string` | [MDN](https://mdn.dev/CSS/font-weight) | | --label-font-size | `string` | [MDN](https://mdn.dev/CSS/font-size) | | --control-width | `string` | [MDN](https://mdn.dev/CSS/width) | | --control-height | `string` | [MDN](https://mdn.dev/CSS/height) | ## nve-checkbox-group Groups related checkboxes together with a shared label and validation messaging for multi-select form inputs. ### Import ```javascript import '@nvidia-elements/core/checkbox/define.js'; ``` ### Slots | name | value | description | | ---- | ----- | ----------- | | (default) | `string` | Control input elements | ### Properties / Attributes | property (attribute) | value | description | | -------------------- | ----- | ----------- | | layout | `\| 'vertical' \| 'vertical-inline' \| 'horizontal' \| 'horizontal-inline'` | Controls the directional arrangement and spacing behavior of the element's content. - `vertical` Arranges content in a vertical stack with block-level spacing. - `vertical-inline` Arranges content vertically with compact inline spacing for dense layouts. - `horizontal` Arranges content in a horizontal row with block-level spacing. - `horizontal-inline` Arranges content horizontally with compact inline spacing. | | prominence | `'muted'` | Controls the visual prominence to establish hierarchy and guide user attention. - `muted` Reduces visual weight for supporting content that should remain subtle and unobtrusive. | ### CSS Properties | name | value | description | | ---- | ----- | ----------- | | --color | `string` | [MDN](https://mdn.dev/CSS/color) | | --label-color | `string` | [MDN](https://mdn.dev/CSS/color) | | --label-text-transform | `string` | [MDN](https://mdn.dev/CSS/text-transform) | | --label-font-weight | `string` | [MDN](https://mdn.dev/CSS/font-weight) | | --label-font-size | `string` | [MDN](https://mdn.dev/CSS/font-size) | ## nve-color A color picker is a control that enables users to choose a color value. ### Example ```html message ``` ### Import ```javascript import '@nvidia-elements/core/color/define.js'; ``` ### Slots | name | value | description | | ---- | ----- | ----------- | | (default) | `string` | Control input element | | label | `string` | Label element | ### Properties / Attributes | property (attribute) | value | description | | -------------------- | ----- | ----------- | | container | `'flat' \| "default"` | Demonstrates different container styles to accommodate visual weight and context. - `flat` Element has white space bounds but reduced visual container. | | status | `'warning' \| 'error' \| 'success' \| 'disabled'` | Communicates the intent and semantic meaning of an element to help users understand the outcome of their actions. - `warning` Indicates cautionary actions that require careful consideration before proceeding. - `success` Represents positive outcomes, confirmations, or constructive actions. | | layout | `\| 'vertical' \| 'vertical-inline' \| 'horizontal' \| 'horizontal-inline'` | Controls the directional arrangement and spacing behavior of the element's content. - `vertical` Arranges content in a vertical stack with block-level spacing. - `vertical-inline` Arranges content vertically with compact inline spacing for dense layouts. - `horizontal` Arranges content in a horizontal row with block-level spacing. - `horizontal-inline` Arranges content horizontally with compact inline spacing. | | fitText (fit-text) | `boolean` | Sets the input to match the width of the active text content of the control value. Only applicable to vertical input box type controls (input, select) | | fitContent (fit-content) | `boolean` | Sets the input to match native default content block | | i18n | | Enables updating internal string values for internationalization. | | prominence | `'muted'` | Controls the visual prominence to establish hierarchy and guide user attention. - `muted` Reduces visual weight for supporting content that should remain subtle and unobtrusive. | | nveControl | `string` | | | reset | | Resets control value to initial attribute value and clears any active validation rules. | | showPicker | | | ### Events | name | value | description | | ---- | ----- | ----------- | | reset | `CustomEvent` | | ### CSS Properties | name | value | description | | ---- | ----- | ----------- | | --cursor | `string` | [MDN](https://mdn.dev/CSS/cursor) | | --accent-color | `string` | [MDN](https://mdn.dev/CSS/accent-color) | | --color | `string` | [MDN](https://mdn.dev/CSS/color) | | --label-color | `string` | [MDN](https://mdn.dev/CSS/color) | | --label-width | `string` | [MDN](https://mdn.dev/CSS/width) | | --label-font-weight | `string` | [MDN](https://mdn.dev/CSS/font-weight) | | --label-font-size | `string` | [MDN](https://mdn.dev/CSS/font-size) | | --control-width | `string` | [MDN](https://mdn.dev/CSS/width) | | --control-height | `string` | [MDN](https://mdn.dev/CSS/height) | ## nve-combobox An editable combobox with autocomplete behavior and selection support. ### Example ```html message ``` ### Import ```javascript import '@nvidia-elements/core/combobox/define.js'; ``` ### Slots | name | value | description | | ---- | ----- | ----------- | | (default) | `string` | default slot for an input and a datalist/select element | | prefix-icon | `string` | slot for icon before the input | | footer | `string` | slot for dropdown footer content | | label | `string` | Label element | ### Properties / Attributes | property (attribute) | value | description | | -------------------- | ----- | ----------- | | container | `'flat'` | Demonstrates different container styles to accommodate visual weight and context. - `flat` Element has white space bounds but reduced visual container. | | notags | `boolean` | Disable rendering of inline tags for many-item select | | behaviorCreate (behavior-create) | `boolean` | Enable creation of new options when the input value doesn't match any existing option. Dispatches a `create` event with `{ value }` detail. | | reset | | Resets control value to initial attribute value and clears any active validation rules. | | selectAll | | Select all options provided | | status | `'warning' \| 'error' \| 'success' \| 'disabled'` | Communicates the intent and semantic meaning of an element to help users understand the outcome of their actions. - `warning` Indicates cautionary actions that require careful consideration before proceeding. - `success` Represents positive outcomes, confirmations, or constructive actions. | | layout | `\| 'vertical' \| 'vertical-inline' \| 'horizontal' \| 'horizontal-inline'` | Controls the directional arrangement and spacing behavior of the element's content. - `vertical` Arranges content in a vertical stack with block-level spacing. - `vertical-inline` Arranges content vertically with compact inline spacing for dense layouts. - `horizontal` Arranges content in a horizontal row with block-level spacing. - `horizontal-inline` Arranges content horizontally with compact inline spacing. | | fitText (fit-text) | `boolean` | Sets the input to match the width of the active text content of the control value. Only applicable to vertical input box type controls (input, select) | | fitContent (fit-content) | `boolean` | Sets the input to match native default content block | | i18n | | Enables updating internal string values for internationalization. | | prominence | `'muted'` | Controls the visual prominence to establish hierarchy and guide user attention. - `muted` Reduces visual weight for supporting content that should remain subtle and unobtrusive. | | nveControl | `string` | | | showPicker | | | ### Events | name | value | description | | ---- | ----- | ----------- | | create | `CustomEvent` | Fires when the user confirms a value that doesn't match any existing option and the `behavior-create` attribute exists. `detail: { value }`. | | scroll | `CustomEvent` | Fires when the user scrolls the dropdown option list. Throttled to one dispatch per animation frame. `detail: { scrollTop, scrollHeight, clientHeight }`. | | reset | `CustomEvent` | | ### CSS Properties | name | value | description | | ---- | ----- | ----------- | | --scroll-height | `string` | | | --padding | `string` | [MDN](https://mdn.dev/CSS/padding) | | --font-size | `string` | [MDN](https://mdn.dev/CSS/font-size) | | --height | `string` | [MDN](https://mdn.dev/CSS/height) | | --background | `string` | [MDN](https://mdn.dev/CSS/background) | | --color | `string` | [MDN](https://mdn.dev/CSS/color) | | --border-radius | `string` | [MDN](https://mdn.dev/CSS/border-radius) | | --border | `string` | [MDN](https://mdn.dev/CSS/border) | | --cursor | `string` | [MDN](https://mdn.dev/CSS/cursor) | | --font-weight | `string` | [MDN](https://mdn.dev/CSS/font-weight) | | --width | `string` | [MDN](https://mdn.dev/CSS/width) | | --border-color | `string` | [MDN](https://mdn.dev/CSS/border-color) | | --max-height | `string` | [MDN](https://mdn.dev/CSS/max-height) | | --text-transform | `string` | [MDN](https://mdn.dev/CSS/text-transform) | | --accent-color | `string` | [MDN](https://mdn.dev/CSS/accent-color) | | --label-color | `string` | [MDN](https://mdn.dev/CSS/color) | | --label-width | `string` | [MDN](https://mdn.dev/CSS/width) | | --label-font-weight | `string` | [MDN](https://mdn.dev/CSS/font-weight) | | --label-font-size | `string` | [MDN](https://mdn.dev/CSS/font-size) | | --control-width | `string` | [MDN](https://mdn.dev/CSS/width) | | --control-height | `string` | [MDN](https://mdn.dev/CSS/height) | ## nve-control Wraps a form input with its associated label and validation messages, managing layout and accessibility associations. ### Example ```html message ``` ### Import ```javascript import '@nvidia-elements/core/forms/define.js'; ``` ### Slots | name | value | description | | ---- | ----- | ----------- | | (default) | `string` | Control input element | | label | `string` | Label element | ### Properties / Attributes | property (attribute) | value | description | | -------------------- | ----- | ----------- | | status | `'warning' \| 'error' \| 'success' \| 'disabled'` | Communicates the intent and semantic meaning of an element to help users understand the outcome of their actions. - `warning` Indicates cautionary actions that require careful consideration before proceeding. - `success` Represents positive outcomes, confirmations, or constructive actions. | | layout | `\| 'vertical' \| 'vertical-inline' \| 'horizontal' \| 'horizontal-inline'` | Controls the directional arrangement and spacing behavior of the element's content. - `vertical` Arranges content in a vertical stack with block-level spacing. - `vertical-inline` Arranges content vertically with compact inline spacing for dense layouts. - `horizontal` Arranges content in a horizontal row with block-level spacing. - `horizontal-inline` Arranges content horizontally with compact inline spacing. | | fitText (fit-text) | `boolean` | Sets the input to match the width of the active text content of the control value. Only applicable to vertical input box type controls (input, select) | | fitContent (fit-content) | `boolean` | Sets the input to match native default content block | | i18n | | Enables updating internal string values for internationalization. | | prominence | `'muted'` | Controls the visual prominence to establish hierarchy and guide user attention. - `muted` Reduces visual weight for supporting content that should remain subtle and unobtrusive. | | nveControl | `string` | | | reset | | Resets control value to initial attribute value and clears any active validation rules. | | showPicker | | | ### Events | name | value | description | | ---- | ----- | ----------- | | reset | `CustomEvent` | | ### CSS Properties | name | value | description | | ---- | ----- | ----------- | | --cursor | `string` | [MDN](https://mdn.dev/CSS/cursor) | | --accent-color | `string` | [MDN](https://mdn.dev/CSS/accent-color) | | --color | `string` | [MDN](https://mdn.dev/CSS/color) | | --label-color | `string` | [MDN](https://mdn.dev/CSS/color) | | --label-width | `string` | [MDN](https://mdn.dev/CSS/width) | | --label-font-weight | `string` | [MDN](https://mdn.dev/CSS/font-weight) | | --label-font-size | `string` | [MDN](https://mdn.dev/CSS/font-size) | | --control-width | `string` | [MDN](https://mdn.dev/CSS/width) | | --control-height | `string` | [MDN](https://mdn.dev/CSS/height) | ## nve-control-group Groups many related form controls under a shared label and validation context for semantically linked inputs. ### Import ```javascript import '@nvidia-elements/core/forms/define.js'; ``` ### Slots | name | value | description | | ---- | ----- | ----------- | | (default) | `string` | Control input elements | ### Properties / Attributes | property (attribute) | value | description | | -------------------- | ----- | ----------- | | layout | `\| 'vertical' \| 'vertical-inline' \| 'horizontal' \| 'horizontal-inline'` | Controls the directional arrangement and spacing behavior of the element's content. - `vertical` Arranges content in a vertical stack with block-level spacing. - `vertical-inline` Arranges content vertically with compact inline spacing for dense layouts. - `horizontal` Arranges content in a horizontal row with block-level spacing. - `horizontal-inline` Arranges content horizontally with compact inline spacing. | | prominence | `'muted'` | Controls the visual prominence to establish hierarchy and guide user attention. - `muted` Reduces visual weight for supporting content that should remain subtle and unobtrusive. | ### CSS Properties | name | value | description | | ---- | ----- | ----------- | | --color | `string` | [MDN](https://mdn.dev/CSS/color) | | --label-color | `string` | [MDN](https://mdn.dev/CSS/color) | | --label-text-transform | `string` | [MDN](https://mdn.dev/CSS/text-transform) | | --label-font-weight | `string` | [MDN](https://mdn.dev/CSS/font-weight) | | --label-font-size | `string` | [MDN](https://mdn.dev/CSS/font-size) | ## nve-control-message Defining a Validity State on a control-message allows messages to show conditionally based on the current HTML5 validity state. ### Import ```javascript import '@nvidia-elements/core/forms/define.js'; ``` ### Slots | name | value | description | | ---- | ----- | ----------- | | (default) | `string` | default slot for content | ### Properties / Attributes | property (attribute) | value | description | | -------------------- | ----- | ----------- | | status | `'warning' \| 'error' \| 'success' \| 'disabled' \| "default"` | Communicates the intent and semantic meaning of an element to help users understand the outcome of their actions. - `warning` Indicates cautionary actions that require careful consideration before proceeding. - `success` Represents positive outcomes, confirmations, or constructive actions. | | error | `'badInput' \| 'customError' \| 'patternMismatch' \| 'rangeOverflow' \| 'rangeUnderflow' \| 'stepMismatch' \| 'tooLong' \| 'tooShort' \| 'typeMismatch' \| 'valid' \| 'valueMissing' \| null` | Validation error code for current form control https://mdn.dev/ValidityState | | slot | `string` | | ### CSS Properties | name | value | description | | ---- | ----- | ----------- | | --color | `string` | [MDN](https://mdn.dev/CSS/color) | | --font-weight | `string` | [MDN](https://mdn.dev/CSS/font-weight) | | --font-size | `string` | [MDN](https://mdn.dev/CSS/font-size) | ## nve-copy-button A copy button is a button that easily enables the copy to clipboard pattern. ### Example ```html ``` ### Import ```javascript import '@nvidia-elements/core/copy-button/define.js'; ``` ### Slots | name | value | description | | ---- | ----- | ----------- | | (default) | `string` | default | | icon | `string` | slot for custom icon | ### Properties / Attributes | property (attribute) | value | description | | -------------------- | ----- | ----------- | | i18n | | Enables updating internal string values for internationalization. | | behaviorCopy (behavior-copy) | `boolean` | Determines if the copy button should auto write to clipboard by the trigger. | | value | `string` | Defines the value associated with the element's name when submitting the form data. The server receives this value in params when the form submits through this button. [MDN](https://mdn.dev/HTML/Element/input#value) | | container | `'flat' \| 'inline' \| "default"` | Demonstrates different container styles to accommodate visual weight and context. - `flat` Element has white space bounds but reduced visual container. - `inline` Element container reduces to fit within inline content such as a block of text. | | size | `'sm' \| 'md' \| 'lg' \| "default"` | Controls the visual scale of an element to match its importance and available space. - `sm` Compact size for dense layouts or secondary elements with less visual prominence. - `md` Standard size that works well in most contexts and provides balanced visibility. - `lg` Larger size for emphasizing important elements or improving touch targets in spacious layouts. | | interaction | `'emphasis' \| 'destructive'` | The Interaction type provides a way to show the intent of an interactive element. This can help users quickly understand what each interaction does and reduce the potential for confusion or errors. - `emphasis` Shows the interaction targets emphasis or highlighting primary actions. - `destructive` Shows the interaction targets destructive actions such as deleting or removing. | | pressed | `boolean` | Indicates the current state of a toggle button that switches on or off. [MDN](https://mdn.dev/ARIA/Attributes/aria-pressed) - `true` The button is in the pressed (on) state and the associated action or setting is active. - `false` The button is in the unpressed (off) state and the associated action or setting is inactive. | | expanded | `boolean` | Indicates whether collapsible content is currently visible or hidden from the user. [MDN](https://mdn.dev/ARIA/Attributes/aria-expanded) - `true` The associated content expands and becomes visible to the user. - `false` The associated content collapses and hides from the user. | | readOnly (readonly) | `boolean` | Indicates whether the user can change the element's value while it remains visible and focusable. [MDN](https://mdn.dev/HTML/Attributes/readonly) - `true` The element has a readonly state: the user cannot change its value, but can still focus and copy it. - `false` The element allows editing and the user can change its value through interaction. | | form | `HTMLFormElement \| null \| string` | Like input form, sets a button to submit a form outside its parent form. Returns a reference to the form element if available. https://mdn.dev/ElementInternals/form | | name | `string` | The name of the button, submitted as a pair with the button's value as part of the form data, when that button submits the form. https://mdn.dev/HTML/Element/button#attr-name | | type | `'button' \| 'submit' \| 'reset'` | Defines the button behavior when associated within an element. https://mdn.dev/HTML/Element/button#attr-type | | disabled | `boolean` | This Boolean attribute prevents the user from interacting with the element: it cannot receive press or focus events. [MDN](https://mdn.dev/ARIA/Attributes/aria-disabled) - `true` The element has a disabled state and does not accept interaction. - `false` The element has an enabled state and accepts interaction. | | selected | `boolean` | Indicates whether an element currently holds selection within a multi-option selection group. [MDN](https://mdn.dev/ARIA/Attributes/aria-selected) - `true` The element holds selection and represents the user's current choice within the group. - `false` The element does not hold selection and the user can choose it. | | current | `'page' \| 'step'` | Indicates the element that represents the user's current location or position within a set. [MDN](https://mdn.dev/ARIA/Attributes/aria-current) - `page` Marks the current page within a set of navigation links. - `step` Marks the current step within a multi-step process or workflow. | | popoverTargetElement | `HTMLElement \| null` | Establishing a relationship between a popover and its invoker button. https://mdn.dev/HTMLInputElement/popoverTargetElement | | popovertarget | `string` | The idref of the element that receives the popover. https://mdn.dev/HTML/Reference/Elements/button#popovertarget | | popoverTargetAction (popovertargetaction) | `'show' \| 'hide' \| 'toggle'` | The popover target action to perform on the popover target element. https://mdn.dev/HTMLInputElement/popoverTargetAction | | commandForElement | `HTMLElement \| null` | The element that receives the command. https://mdn.dev/Invoker_Commands_API | | commandfor | `string \| null` | The idref of the element that receives the command. https://mdn.dev/Invoker_Commands_API | | command | `string` | The command to execute on the element. https://mdn.dev/Invoker_Commands_API | | interestForElement | `HTMLElement \| null` | The element that receives the interest. https://mdn.dev/HTMLAnchorElement/interestForElement | | interestfor | `string \| null` | The idref of the element that receives the interest. https://mdn.dev/HTMLAnchorElement/interestForElement | ### CSS Properties | name | value | description | | ---- | ----- | ----------- | | --color | `string` | [MDN](https://mdn.dev/CSS/color) | | --background | `string` | [MDN](https://mdn.dev/CSS/background) | | --border-radius | `string` | [MDN](https://mdn.dev/CSS/border-radius) | | --padding | `string` | [MDN](https://mdn.dev/CSS/padding) | | --height | `string` | [MDN](https://mdn.dev/CSS/height) | | --min-width | `string` | [MDN](https://mdn.dev/CSS/min-width) | | --font-size | `string` | [MDN](https://mdn.dev/CSS/font-size) | | --line-height | `string` | [MDN](https://mdn.dev/CSS/line-height) | | --border | `string` | [MDN](https://mdn.dev/CSS/border) | | --font-weight | `string` | [MDN](https://mdn.dev/CSS/font-weight) | | --text-decoration | `string` | [MDN](https://mdn.dev/CSS/text-decoration) | | --text-align | `string` | [MDN](https://mdn.dev/CSS/text-align) | | --cursor | `string` | [MDN](https://mdn.dev/CSS/cursor) | | --gap | `string` | [MDN](https://mdn.dev/CSS/gap) | | --text-transform | `string` | [MDN](https://mdn.dev/CSS/text-transform) | | --width | `string` | [MDN](https://mdn.dev/CSS/width) | ## nve-date A date picker is a control that enables users to choose a date value. ### Example ```html message ``` ### Import ```javascript import '@nvidia-elements/core/date/define.js'; ``` ### Slots | name | value | description | | ---- | ----- | ----------- | | (default) | `string` | Control input element | | label | `string` | Label element | ### Properties / Attributes | property (attribute) | value | description | | -------------------- | ----- | ----------- | | container | `'flat' \| "default"` | Demonstrates different container styles to accommodate visual weight and context. - `flat` Element has white space bounds but reduced visual container. | | status | `'warning' \| 'error' \| 'success' \| 'disabled'` | Communicates the intent and semantic meaning of an element to help users understand the outcome of their actions. - `warning` Indicates cautionary actions that require careful consideration before proceeding. - `success` Represents positive outcomes, confirmations, or constructive actions. | | layout | `\| 'vertical' \| 'vertical-inline' \| 'horizontal' \| 'horizontal-inline'` | Controls the directional arrangement and spacing behavior of the element's content. - `vertical` Arranges content in a vertical stack with block-level spacing. - `vertical-inline` Arranges content vertically with compact inline spacing for dense layouts. - `horizontal` Arranges content in a horizontal row with block-level spacing. - `horizontal-inline` Arranges content horizontally with compact inline spacing. | | fitText (fit-text) | `boolean` | Sets the input to match the width of the active text content of the control value. Only applicable to vertical input box type controls (input, select) | | fitContent (fit-content) | `boolean` | Sets the input to match native default content block | | i18n | | Enables updating internal string values for internationalization. | | prominence | `'muted'` | Controls the visual prominence to establish hierarchy and guide user attention. - `muted` Reduces visual weight for supporting content that should remain subtle and unobtrusive. | | nveControl | `string` | | | reset | | Resets control value to initial attribute value and clears any active validation rules. | | showPicker | | | ### Events | name | value | description | | ---- | ----- | ----------- | | reset | `CustomEvent` | | ### CSS Properties | name | value | description | | ---- | ----- | ----------- | | --padding | `string` | [MDN](https://mdn.dev/CSS/padding) | | --font-size | `string` | [MDN](https://mdn.dev/CSS/font-size) | | --height | `string` | [MDN](https://mdn.dev/CSS/height) | | --background | `string` | [MDN](https://mdn.dev/CSS/background) | | --color | `string` | [MDN](https://mdn.dev/CSS/color) | | --border-radius | `string` | [MDN](https://mdn.dev/CSS/border-radius) | | --border | `string` | [MDN](https://mdn.dev/CSS/border) | | --border-bottom | `string` | [MDN](https://mdn.dev/CSS/border-bottom) | | --cursor | `string` | [MDN](https://mdn.dev/CSS/cursor) | | --font-weight | `string` | [MDN](https://mdn.dev/CSS/font-weight) | | --width | `string` | [MDN](https://mdn.dev/CSS/width) | | --max-width | `string` | [MDN](https://mdn.dev/CSS/max-width) | | --min-width | `string` | [MDN](https://mdn.dev/CSS/min-width) | | --accent-color | `string` | [MDN](https://mdn.dev/CSS/accent-color) | | --label-color | `string` | [MDN](https://mdn.dev/CSS/color) | | --label-width | `string` | [MDN](https://mdn.dev/CSS/width) | | --label-font-weight | `string` | [MDN](https://mdn.dev/CSS/font-weight) | | --label-font-size | `string` | [MDN](https://mdn.dev/CSS/font-size) | | --control-width | `string` | [MDN](https://mdn.dev/CSS/width) | | --control-height | `string` | [MDN](https://mdn.dev/CSS/height) | ## nve-datetime A datetime picker is a control that enables users to choose a datetime value. ### Example ```html message ``` ### Import ```javascript import '@nvidia-elements/core/datetime/define.js'; ``` ### Slots | name | value | description | | ---- | ----- | ----------- | | (default) | `string` | Control input element | | label | `string` | Label element | ### Properties / Attributes | property (attribute) | value | description | | -------------------- | ----- | ----------- | | container | `'flat' \| "default"` | Demonstrates different container styles to accommodate visual weight and context. - `flat` Element has white space bounds but reduced visual container. | | status | `'warning' \| 'error' \| 'success' \| 'disabled'` | Communicates the intent and semantic meaning of an element to help users understand the outcome of their actions. - `warning` Indicates cautionary actions that require careful consideration before proceeding. - `success` Represents positive outcomes, confirmations, or constructive actions. | | layout | `\| 'vertical' \| 'vertical-inline' \| 'horizontal' \| 'horizontal-inline'` | Controls the directional arrangement and spacing behavior of the element's content. - `vertical` Arranges content in a vertical stack with block-level spacing. - `vertical-inline` Arranges content vertically with compact inline spacing for dense layouts. - `horizontal` Arranges content in a horizontal row with block-level spacing. - `horizontal-inline` Arranges content horizontally with compact inline spacing. | | fitText (fit-text) | `boolean` | Sets the input to match the width of the active text content of the control value. Only applicable to vertical input box type controls (input, select) | | fitContent (fit-content) | `boolean` | Sets the input to match native default content block | | i18n | | Enables updating internal string values for internationalization. | | prominence | `'muted'` | Controls the visual prominence to establish hierarchy and guide user attention. - `muted` Reduces visual weight for supporting content that should remain subtle and unobtrusive. | | nveControl | `string` | | | reset | | Resets control value to initial attribute value and clears any active validation rules. | | showPicker | | | ### Events | name | value | description | | ---- | ----- | ----------- | | reset | `CustomEvent` | | ### CSS Properties | name | value | description | | ---- | ----- | ----------- | | --padding | `string` | [MDN](https://mdn.dev/CSS/padding) | | --font-size | `string` | [MDN](https://mdn.dev/CSS/font-size) | | --height | `string` | [MDN](https://mdn.dev/CSS/height) | | --background | `string` | [MDN](https://mdn.dev/CSS/background) | | --color | `string` | [MDN](https://mdn.dev/CSS/color) | | --border-radius | `string` | [MDN](https://mdn.dev/CSS/border-radius) | | --border | `string` | [MDN](https://mdn.dev/CSS/border) | | --border-bottom | `string` | [MDN](https://mdn.dev/CSS/border-bottom) | | --cursor | `string` | [MDN](https://mdn.dev/CSS/cursor) | | --font-weight | `string` | [MDN](https://mdn.dev/CSS/font-weight) | | --width | `string` | [MDN](https://mdn.dev/CSS/width) | | --max-width | `string` | [MDN](https://mdn.dev/CSS/max-width) | | --min-width | `string` | [MDN](https://mdn.dev/CSS/min-width) | | --accent-color | `string` | [MDN](https://mdn.dev/CSS/accent-color) | | --label-color | `string` | [MDN](https://mdn.dev/CSS/color) | | --label-width | `string` | [MDN](https://mdn.dev/CSS/width) | | --label-font-weight | `string` | [MDN](https://mdn.dev/CSS/font-weight) | | --label-font-size | `string` | [MDN](https://mdn.dev/CSS/font-size) | | --control-width | `string` | [MDN](https://mdn.dev/CSS/width) | | --control-height | `string` | [MDN](https://mdn.dev/CSS/height) | ## nve-dialog Dialog is a component that appears above main content. A modal dialog displays critical information that requires user attention and interrupts user flow. [MDN Popover API](https://developer.mozilla.org/en-US/docs/Web/API/Popover_API) ### Example ```html button

title

some text content in a closable dialog

``` ### Import ```javascript import '@nvidia-elements/core/dialog/define.js'; ``` ### Slots | name | value | description | | ---- | ----- | ----------- | | (default) | `string` | default content slot | ### Properties / Attributes | property (attribute) | value | description | | -------------------- | ----- | ----------- | | position | `'center' \| 'top' \| 'bottom' \| 'left' \| 'right'` | Determines the position of an element along both inline and block axis. [MDN](https://mdn.dev/CSS/CSS_grid_layout/Box_alignment_in_grid_layout#the_two_axes_of_a_grid_layout) - `center` Centers the popover directly over the anchor element. - `top` Positions the popover above the anchor element. - `bottom` Positions the popover below the anchor element. - `left` Positions the popover to the left side of the anchor element. - `right` Positions the popover to the right side of the anchor element. | | alignment | `'start' \| 'end' \| 'center'` | Determines the alignment of the popover relative to the provided anchor element. - `start` Aligns the popover to the beginning edge of the anchor for left or top alignment. - `end` Aligns the popover to the ending edge of the anchor for right or bottom alignment. - `center` Centers the popover along the anchor's edge for balanced positioning. | | size | `'sm' \| 'md' \| 'lg' \| "default"` | Controls the visual scale of an element to match its importance and available space. - `sm` Compact size for dense layouts or secondary elements with less visual prominence. - `md` Standard size that works well in most contexts and provides balanced visibility. - `lg` Larger size for emphasizing important elements or improving touch targets in spacious layouts. | | closable | `boolean` | Indicates whether the user can dismiss or close the element. - `true` The element displays a close control and the user can dismiss it. - `false` The user cannot close the element and must dismiss it programmatically. | | modal | `boolean` | Determines if a dialog should have a modal backdrop that visually overlays the UI. | | anchor | `string \| HTMLElement` | Provides the element that the popover should position relative to. Anchor can accept a idref string within the same render root or a HTMLElement DOM reference. | | i18n | | Enables updating internal string values for internationalization. | | typeNativePopoverController | | | ### Events | name | value | description | | ---- | ----- | ----------- | | beforetoggle | `CustomEvent` | Dispatched on a popover just before showing or hiding. [MDN](https://mdn.dev/HTMLElement/beforetoggle_event) | | toggle | `CustomEvent` | Dispatched on a popover element just after showing or hiding. [MDN](https://mdn.dev/HTMLElement/toggle_event) | | open | `CustomEvent` | Dispatched when the dialog opens. | | close | `CustomEvent` | Dispatched when the dialog closes. | ### CSS Properties | name | value | description | | ---- | ----- | ----------- | | --border | `string` | [MDN](https://mdn.dev/CSS/border) | | --border-radius | `string` | [MDN](https://mdn.dev/CSS/border-radius) | | --background | `string` | [MDN](https://mdn.dev/CSS/background) | | --color | `string` | [MDN](https://mdn.dev/CSS/color) | | --padding | `string` | [MDN](https://mdn.dev/CSS/padding) | | --box-shadow | `string` | [MDN](https://mdn.dev/CSS/box-shadow) | | --gap | `string` | [MDN](https://mdn.dev/CSS/gap) | | --max-width | `string` | [MDN](https://mdn.dev/CSS/max-width) | | --min-height | `string` | [MDN](https://mdn.dev/CSS/min-height) | | --max-height | `string` | [MDN](https://mdn.dev/CSS/max-height) | | --animation-duration | `string` | Duration of dialog open/close animations [MDN](https://mdn.dev/CSS/animation-duration) | ## nve-dialog-footer Contains the action buttons and controls at the bottom of a dialog for confirming, canceling, or navigating. ### Import ```javascript import '@nvidia-elements/core/dialog/define.js'; ``` ### Slots | name | value | description | | ---- | ----- | ----------- | | (default) | `string` | default slot for the dialog footer | ### CSS Properties | name | value | description | | ---- | ----- | ----------- | | --border-top | `string` | [MDN](https://mdn.dev/CSS/border-top) | | --padding | `string` | [MDN](https://mdn.dev/CSS/padding) | | --gap | `string` | [MDN](https://mdn.dev/CSS/gap) | ## nve-dialog-header Displays the title and contextual information at the top of a dialog to orient users to the dialog's purpose. ### Import ```javascript import '@nvidia-elements/core/dialog/define.js'; ``` ### Slots | name | value | description | | ---- | ----- | ----------- | | (default) | `string` | default slot for the dialog header | ### CSS Properties | name | value | description | | ---- | ----- | ----------- | | --border-bottom | `string` | [MDN](https://mdn.dev/CSS/border-bottom) | | --padding | `string` | [MDN](https://mdn.dev/CSS/padding) | ## nve-divider Divider is a component that separates and distinguishes sections of content or groups of menuitems. ### Example ```html ``` ### Import ```javascript import '@nvidia-elements/core/divider/define.js'; ``` ### Properties / Attributes | property (attribute) | value | description | | -------------------- | ----- | ----------- | | orientation | `'vertical' \| 'horizontal'` | Controls the directional flow of the element's layout and interaction pattern. - `vertical` Element orients vertically with top-to-bottom flow. - `horizontal` Element orients horizontally with left-to-right flow. | ### CSS Properties | name | value | description | | ---- | ----- | ----------- | | --color | `string` | [MDN](https://mdn.dev/CSS/color) | | --padding | `string` | [MDN](https://mdn.dev/CSS/padding) | | --size | `string` | | | --border-radius | `string` | [MDN](https://mdn.dev/CSS/border-radius) | ## nve-dot A visual indicator that communicates a status or notification of an associated component. ### Example ```html ``` ### Import ```javascript import '@nvidia-elements/core/dot/define.js'; ``` ### Slots | name | value | description | | ---- | ----- | ----------- | | (default) | `string` | default text content no more than 2 characters in length | ### Properties / Attributes | property (attribute) | value | description | | -------------------- | ----- | ----------- | | status | `'accent' \| 'warning' \| 'success' \| 'danger' \| 'scheduled' \| 'queued' \| 'pending' \| 'starting' \| 'running' \| 'restarting' \| 'stopping' \| 'finished' \| 'failed' \| 'unknown' \| 'ignored'` | Communicates the intent and semantic meaning of an element to help users understand the outcome of their actions. - `accent` Highlights important actions or draws attention to primary interactive elements. - `warning` Indicates cautionary actions that require careful consideration before proceeding. - `success` Represents positive outcomes, confirmations, or constructive actions. - `danger` Signals destructive or irreversible actions that need extra attention and confirmation. - `scheduled` Task has a scheduled future execution at a specific time. - `queued` Task is waiting in line to begin after other tasks complete. - `pending` Task is awaiting approval, user input, or external conditions before proceeding. - `starting` Task is initializing and preparing to begin active execution. - `running` Task is actively executing and making progress. - `restarting` Task restarts after an interruption or reset. - `stopping` Task is gracefully shutting down and completing cleanup operations. - `finished` Task has completed successfully with the expected outcome. - `failed` Task encountered an error and did not complete as intended. - `unknown` Task status remains unknown or unavailable. - `ignored` Task was intentionally skipped or excluded from execution. | | size | `'sm' \| 'md' \| 'lg'` | Controls the visual scale of an element to match its importance and available space. - `sm` Compact size for dense layouts or secondary elements with less visual prominence. - `md` Standard size that works well in most contexts and provides balanced visibility. - `lg` Larger size for emphasizing important elements or improving touch targets in spacious layouts. | ### CSS Properties | name | value | description | | ---- | ----- | ----------- | | --gap | `string` | [MDN](https://mdn.dev/CSS/gap) | | --font-size | `string` | [MDN](https://mdn.dev/CSS/font-size) | | --font-weight | `string` | [MDN](https://mdn.dev/CSS/font-weight) | | --background | `string` | [MDN](https://mdn.dev/CSS/background) | | --color | `string` | [MDN](https://mdn.dev/CSS/color) | | --border-radius | `string` | [MDN](https://mdn.dev/CSS/border-radius) | | --height | `string` | [MDN](https://mdn.dev/CSS/height) | | --width | `string` | [MDN](https://mdn.dev/CSS/width) | | --padding | `string` | [MDN](https://mdn.dev/CSS/padding) | | --border | `string` | [MDN](https://mdn.dev/CSS/border) | ## nve-drawer Drawer are to display content that is out of context of the rest of the page (notifications, navigation, settings). Or use [Panel](./docs/elements/panel/) inline as its content couples with or closely relates to the content on the page (details, extra actions/options). [MDN Popover API](https://developer.mozilla.org/en-US/docs/Web/API/Popover_API) ### Example ```html

Drawer Header

drawer content

drawer footer

button ``` ### Import ```javascript import '@nvidia-elements/core/drawer/define.js'; ``` ### Slots | name | value | description | | ---- | ----- | ----------- | | (default) | `string` | default content slot | ### Properties / Attributes | property (attribute) | value | description | | -------------------- | ----- | ----------- | | position | `'left' \| 'right' \| 'bottom' \| 'top'` | Determines the position of an element along both inline and block axis. [MDN](https://mdn.dev/CSS/CSS_grid_layout/Box_alignment_in_grid_layout#the_two_axes_of_a_grid_layout) | | size | `'sm' \| 'md' \| 'lg' \| "default"` | Controls the visual scale of an element to match its importance and available space. - `sm` Compact size for dense layouts or secondary elements with less visual prominence. - `md` Standard size that works well in most contexts and provides balanced visibility. - `lg` Larger size for emphasizing important elements or improving touch targets in spacious layouts. | | closable | `boolean` | Indicates whether the user can dismiss or close the element. - `true` The element displays a close control and the user can dismiss it. - `false` The user cannot close the element and must dismiss it programmatically. | | modal | `boolean` | Determines if a drawer should have a modal backdrop that visually overlays the UI. | | anchor | `string \| HTMLElement` | Provides the element that the popover should position relative to. Anchor can accept a idref string within the same render root or a HTMLElement DOM reference. | | inline | `boolean` | Create a inline layout effect while retaining the a11y characteristics and top layer behavior (light dismiss, focus trap, non interactive background) https://www.w3.org/WAI/ARIA/apg/patterns/dialog-modal/ | | i18n | | Enables updating internal string values for internationalization. | | typeNativePopoverController | | | ### Events | name | value | description | | ---- | ----- | ----------- | | beforetoggle | `CustomEvent` | Dispatched on a popover just before showing or hiding. [MDN](https://mdn.dev/HTMLElement/beforetoggle_event) | | toggle | `CustomEvent` | Dispatched on a popover element just after showing or hiding. [MDN](https://mdn.dev/HTMLElement/toggle_event) | | open | `CustomEvent` | Dispatched when the drawer opens. | | close | `CustomEvent` | Dispatched when the drawer closes. | ### CSS Properties | name | value | description | | ---- | ----- | ----------- | | --border | `string` | [MDN](https://mdn.dev/CSS/border) | | --background | `string` | [MDN](https://mdn.dev/CSS/background) | | --color | `string` | [MDN](https://mdn.dev/CSS/color) | | --padding | `string` | [MDN](https://mdn.dev/CSS/padding) | | --box-shadow | `string` | [MDN](https://mdn.dev/CSS/box-shadow) | | --gap | `string` | [MDN](https://mdn.dev/CSS/gap) | | --top | `string` | [MDN](https://mdn.dev/CSS/top) | | --max-width | `string` | [MDN](https://mdn.dev/CSS/max-width) | | --width | `string` | [MDN](https://mdn.dev/CSS/width) | | --animation-duration | `string` | Duration of drawer open/close animations [MDN](https://mdn.dev/CSS/animation-duration) | ## nve-drawer-content Contains the scrollable main body content within a drawer panel. ### Import ```javascript import '@nvidia-elements/core/drawer/define.js'; ``` ### Slots | name | value | description | | ---- | ----- | ----------- | | (default) | `string` | default slot for the drawer content | ### CSS Properties | name | value | description | | ---- | ----- | ----------- | | --padding | `string` | [MDN](https://mdn.dev/CSS/padding) | | --gap | `string` | [MDN](https://mdn.dev/CSS/gap) | | --width | `string` | [MDN](https://mdn.dev/CSS/width) | ## nve-drawer-footer Provides a fixed action area at the bottom of a drawer for primary actions such as save or cancel. ### Import ```javascript import '@nvidia-elements/core/drawer/define.js'; ``` ### Slots | name | value | description | | ---- | ----- | ----------- | | (default) | `string` | default slot for the drawer footer | ### CSS Properties | name | value | description | | ---- | ----- | ----------- | | --border-top | `string` | [MDN](https://mdn.dev/CSS/border-top) | | --padding | `string` | [MDN](https://mdn.dev/CSS/padding) | | --gap | `string` | [MDN](https://mdn.dev/CSS/gap) | | --min-height | `string` | [MDN](https://mdn.dev/CSS/min-height) | ## nve-drawer-header Displays the title and optional close control at the top of a drawer to identify its purpose. ### Import ```javascript import '@nvidia-elements/core/drawer/define.js'; ``` ### Slots | name | value | description | | ---- | ----- | ----------- | | (default) | `string` | default slot for the drawer header | ### CSS Properties | name | value | description | | ---- | ----- | ----------- | | --border-bottom | `string` | [MDN](https://mdn.dev/CSS/border-bottom) | | --min-height | `string` | [MDN](https://mdn.dev/CSS/min-height) | | --padding | `string` | [MDN](https://mdn.dev/CSS/padding) | ## nve-dropdown Generic dropdown element for rendering a variety of different content such as interactive navigation or form controls. [MDN Popover API](https://developer.mozilla.org/en-US/docs/Web/API/Popover_API) ### Example ```html button dropdown content ``` ### Import ```javascript import '@nvidia-elements/core/dropdown/define.js'; ``` ### Slots | name | value | description | | ---- | ----- | ----------- | | (default) | `string` | default slot for dropdown content | ### Properties / Attributes | property (attribute) | value | description | | -------------------- | ----- | ----------- | | anchor | `string \| HTMLElement` | Provides the element that the popover should position relative to. Anchor can accept a idref string within the same render root or a HTMLElement DOM reference. | | position | `'center' \| 'top' \| 'bottom' \| 'left' \| 'right'` | Determines the position of an element along both inline and block axis. [MDN](https://mdn.dev/CSS/CSS_grid_layout/Box_alignment_in_grid_layout#the_two_axes_of_a_grid_layout) - `center` Centers the popover directly over the anchor element. - `top` Positions the popover above the anchor element. - `bottom` Positions the popover below the anchor element. - `left` Positions the popover to the left side of the anchor element. - `right` Positions the popover to the right side of the anchor element. | | alignment | `'start' \| 'end' \| 'center'` | Determines the alignment of the popover relative to the provided anchor element. - `start` Aligns the popover to the beginning edge of the anchor for left or top alignment. - `end` Aligns the popover to the ending edge of the anchor for right or bottom alignment. - `center` Centers the popover along the anchor's edge for balanced positioning. | | closable | `boolean` | Indicates whether the user can dismiss or close the element. - `true` The element displays a close control and the user can dismiss it. - `false` The user cannot close the element and must dismiss it programmatically. | | arrow | `boolean` | Determines if an arrow renders. | | popoverArrow | `HTMLElement` | | | typeNativePopoverController | | | | i18n | | Enables updating internal string values for internationalization. | ### Events | name | value | description | | ---- | ----- | ----------- | | beforetoggle | `CustomEvent` | Dispatched on a popover just before showing or hiding. [MDN](https://mdn.dev/HTMLElement/beforetoggle_event) | | toggle | `CustomEvent` | Dispatched on a popover element just after showing or hiding. [MDN](https://mdn.dev/HTMLElement/toggle_event) | | open | `CustomEvent` | Dispatched when the dropdown opens. | | close | `CustomEvent` | Dispatched when the dropdown closes. | ### CSS Properties | name | value | description | | ---- | ----- | ----------- | | --border | `string` | [MDN](https://mdn.dev/CSS/border) | | --border-radius | `string` | [MDN](https://mdn.dev/CSS/border-radius) | | --background | `string` | [MDN](https://mdn.dev/CSS/background) | | --color | `string` | [MDN](https://mdn.dev/CSS/color) | | --padding | `string` | [MDN](https://mdn.dev/CSS/padding) | | --box-shadow | `string` | [MDN](https://mdn.dev/CSS/box-shadow) | | --width | `string` | [MDN](https://mdn.dev/CSS/width) | | --min-width | `string` | [MDN](https://mdn.dev/CSS/min-width) | | --gap | `string` | [MDN](https://mdn.dev/CSS/gap) | | --arrow-transform | `string` | Transform applied to the popover arrow | | --animation-duration | `string` | Duration of dropdown open/close animations [MDN](https://mdn.dev/CSS/animation-duration) | ## nve-dropdown-footer Provides a fixed area at the bottom of a dropdown menu for extra actions or supplementary controls. ### Import ```javascript import '@nvidia-elements/core/dropdown/define.js'; ``` ### Slots | name | value | description | | ---- | ----- | ----------- | | (default) | `string` | default slot for the dropdown footer | ### CSS Properties | name | value | description | | ---- | ----- | ----------- | | --border-top | `string` | [MDN](https://mdn.dev/CSS/border-top) | | --padding | `string` | [MDN](https://mdn.dev/CSS/padding) | | --gap | `string` | [MDN](https://mdn.dev/CSS/gap) | ## nve-dropdown-group A Dropdown Group streamlines the management of linked dropdowns and supports nested dropdowns for a more organized and intuitive user experience ### Example ```html menu item 1-1 item 1-2 item 1-3 item 2-1 item 2-2 item 2-3 item 3-1 item 3-2 item 3-3 ``` ### Import ```javascript import '@nvidia-elements/core/dropdown-group/define.js'; ``` ### Slots | name | value | description | | ---- | ----- | ----------- | | (default) | `string` | default slot for dropdown content | ### Properties / Attributes | property (attribute) | value | description | | -------------------- | ----- | ----------- | | dropdowns | `Dropdown[]` | | | close | | | ### Events | name | value | description | | ---- | ----- | ----------- | | open | `CustomEvent` | Dispatched when a dropdown in the group opens | | close | `CustomEvent` | Dispatched when a dropdown in the group closes | ### CSS Properties | name | value | description | | ---- | ----- | ----------- | | --nve-dropdown-group-spacing | `string` | | | --nve-dropdown-group-transition | `string` | | | --arrow-transform | `string` | Transform applied to the popover arrow | ## nve-dropdown-header Displays a title or contextual label at the top of a dropdown menu to categorize its contents. ### Import ```javascript import '@nvidia-elements/core/dropdown/define.js'; ``` ### Slots | name | value | description | | ---- | ----- | ----------- | | (default) | `string` | default slot for the dropdown header | ### CSS Properties | name | value | description | | ---- | ----- | ----------- | | --border-bottom | `string` | [MDN](https://mdn.dev/CSS/border-bottom) | | --padding | `string` | [MDN](https://mdn.dev/CSS/padding) | ## nve-dropzone A dropzone form control that enables users to drag and drop files onto it. ### Example ```html ``` ### Import ```javascript import '@nvidia-elements/core/dropzone/define.js'; ``` ### Slots | name | value | description | | ---- | ----- | ----------- | | (default) | `string` | use only when custom messaging requires it | | icon | `string` | default slot for icon | | content | `string` | default slot for content | ### Properties / Attributes | property (attribute) | value | description | | -------------------- | ----- | ----------- | | accept | `string` | | | maxFileSize (max-file-size) | `number` | | | i18n | | Enables updating internal string values for internationalization. | | formResetCallback | | | | value | `array` | Defines the value associated with the element's name when submitting the form data. The server receives this value in params when the form submits through this button. [MDN](https://mdn.dev/HTML/Element/input#value) | ### Events | name | value | description | | ---- | ----- | ----------- | | change | `CustomEvent` | Dispatched when the value has changed (files located in event.target) | ### CSS Properties | name | value | description | | ---- | ----- | ----------- | | --background | `string` | [MDN](https://mdn.dev/CSS/background) | | --border-color | `string` | [MDN](https://mdn.dev/CSS/border-color) | | --border-radius | `string` | [MDN](https://mdn.dev/CSS/border-radius) | | --padding | `string` | [MDN](https://mdn.dev/CSS/padding) | | --min-height | `string` | [MDN](https://mdn.dev/CSS/min-height) | | --color | `string` | [MDN](https://mdn.dev/CSS/color) | ## nve-file A file picker is a control that enables users to choose a file value. ### Example ```html message ``` ### Import ```javascript import '@nvidia-elements/core/file/define.js'; ``` ### Slots | name | value | description | | ---- | ----- | ----------- | | (default) | `string` | Control input element | | label | `string` | Label element | ### Properties / Attributes | property (attribute) | value | description | | -------------------- | ----- | ----------- | | status | `'warning' \| 'error' \| 'success' \| 'disabled'` | Communicates the intent and semantic meaning of an element to help users understand the outcome of their actions. - `warning` Indicates cautionary actions that require careful consideration before proceeding. - `success` Represents positive outcomes, confirmations, or constructive actions. | | layout | `\| 'vertical' \| 'vertical-inline' \| 'horizontal' \| 'horizontal-inline'` | Controls the directional arrangement and spacing behavior of the element's content. - `vertical` Arranges content in a vertical stack with block-level spacing. - `vertical-inline` Arranges content vertically with compact inline spacing for dense layouts. - `horizontal` Arranges content in a horizontal row with block-level spacing. - `horizontal-inline` Arranges content horizontally with compact inline spacing. | | fitText (fit-text) | `boolean` | Sets the input to match the width of the active text content of the control value. Only applicable to vertical input box type controls (input, select) | | fitContent (fit-content) | `boolean` | Sets the input to match native default content block | | i18n | | Enables updating internal string values for internationalization. | | prominence | `'muted'` | Controls the visual prominence to establish hierarchy and guide user attention. - `muted` Reduces visual weight for supporting content that should remain subtle and unobtrusive. | | nveControl | `string` | | | reset | | Resets control value to initial attribute value and clears any active validation rules. | | showPicker | | | ### Events | name | value | description | | ---- | ----- | ----------- | | reset | `CustomEvent` | | ### CSS Properties | name | value | description | | ---- | ----- | ----------- | | --background | `string` | [MDN](https://mdn.dev/CSS/background) | | --padding | `string` | [MDN](https://mdn.dev/CSS/padding) | | --border-radius | `string` | [MDN](https://mdn.dev/CSS/border-radius) | | --border | `string` | [MDN](https://mdn.dev/CSS/border) | | --font-weight | `string` | [MDN](https://mdn.dev/CSS/font-weight) | | --font-size | `string` | [MDN](https://mdn.dev/CSS/font-size) | | --text-decoration | `string` | [MDN](https://mdn.dev/CSS/text-decoration) | | --cursor | `string` | [MDN](https://mdn.dev/CSS/cursor) | | --gap | `string` | [MDN](https://mdn.dev/CSS/gap) | | --height | `string` | [MDN](https://mdn.dev/CSS/height) | | --accent-color | `string` | [MDN](https://mdn.dev/CSS/accent-color) | | --color | `string` | [MDN](https://mdn.dev/CSS/color) | | --label-color | `string` | [MDN](https://mdn.dev/CSS/color) | | --label-width | `string` | [MDN](https://mdn.dev/CSS/width) | | --label-font-weight | `string` | [MDN](https://mdn.dev/CSS/font-weight) | | --label-font-size | `string` | [MDN](https://mdn.dev/CSS/font-size) | | --control-width | `string` | [MDN](https://mdn.dev/CSS/width) | | --control-height | `string` | [MDN](https://mdn.dev/CSS/height) | ## nve-format-datetime Formats a date/time value as localized text using the Intl.DateTimeFormat API. Renders inside a semantic time element. Granular options (weekday, year, month, day, hour, minute, second) mirror the Intl.DateTimeFormat API. 'numeric' omits zero-padding, '2-digit' zero-pads. ### Example ```html 2023-07-28T04:20:17.434Z ``` ### Import ```javascript import '@nvidia-elements/core/format-datetime/define.js'; ``` ### Slots | name | value | description | | ---- | ----- | ----------- | | (default) | `string` | Date string to format (such as 2023-07-28T04:20:17.434Z). Serves as fallback before hydration. | ### Properties / Attributes | property (attribute) | value | description | | -------------------- | ----- | ----------- | | date | `string \| "default"` | Optional date string for values supplied by JavaScript or bound data. By default, the component formats the element's text content, which also serves as the SSR fallback. When both are present, this property takes precedence. | | locale | `string \| "default"` | Language tag (such as en-US, de-DE). Defaults to document.documentElement.lang or browser default. | | weekday | `'long' \| 'short' \| 'narrow' \| "default"` | Weekday representation: 'long' \| 'short' \| 'narrow'. | | year | `'numeric' \| '2-digit' \| "default"` | Year representation: 'numeric' \| '2-digit'. | | month | `'numeric' \| '2-digit' \| 'long' \| 'short' \| 'narrow' \| "default"` | Month representation: 'numeric' \| '2-digit' \| 'long' \| 'short' \| 'narrow'. | | day | `'numeric' \| '2-digit' \| "default"` | Day representation: 'numeric' \| '2-digit'. | | hour | `'numeric' \| '2-digit' \| "default"` | Hour representation: 'numeric' \| '2-digit'. | | minute | `'numeric' \| '2-digit' \| "default"` | Minute representation: 'numeric' \| '2-digit'. | | second | `'numeric' \| '2-digit' \| "default"` | Second representation: 'numeric' \| '2-digit'. | | dateStyle (date-style) | `'full' \| 'long' \| 'medium' \| 'short' \| "default"` | Preset date formatting style: 'full' \| 'long' \| 'medium' \| 'short'. Preset styles take precedence over granular date and time part options. | | timeStyle (time-style) | `'full' \| 'long' \| 'medium' \| 'short' \| "default"` | Preset time formatting style: 'full' \| 'long' \| 'medium' \| 'short'. Preset styles take precedence over granular date and time part options. | | timeZoneName (time-zone-name) | `'long' \| 'short' \| "default"` | Time zone name display: 'long' \| 'short'. Use it with granular options only; preset styles ignore it. | | timeZone (time-zone) | `string \| "default"` | IANA time zone identifier (such as 'America/New_York', 'UTC'). | ## nve-format-number A localized number formatter for currencies, percentages, units, and compact notation, backed by Intl.NumberFormat. Provide a `currency` attribute when `formatStyle` is `currency`, and a `unit` attribute when `formatStyle` is `unit`. ### Example ```html 1234567.89 ``` ### Import ```javascript import '@nvidia-elements/core/format-number/define.js'; ``` ### Slots | name | value | description | | ---- | ----- | ----------- | | (default) | `string` | Numeric string to format (such as 1234567 or 1234.56). Serves as fallback before hydration. | ### Properties / Attributes | property (attribute) | value | description | | -------------------- | ----- | ----------- | | number | `string \| "default"` | Optional numeric string for values supplied by JavaScript or bound data. By default, the component formats the element's text content, which also serves as the SSR fallback. When both are present, this property takes precedence. | | locale | `string \| "default"` | Language tag (such as en-US, de-DE). Defaults to document.documentElement.lang or browser default. | | formatStyle (format-style) | `'decimal' \| 'currency' \| 'percent' \| 'unit'` | Formatting style: 'decimal' \| 'currency' \| 'percent' \| 'unit'. | | currency | `string \| "default"` | ISO 4217 currency code (such as USD or EUR). Required when formatStyle is currency. | | currencySign (currency-sign) | `'standard' \| 'accounting' \| "default"` | Currency sign style: 'standard' \| 'accounting'. | | currencyDisplay (currency-display) | `'symbol' \| 'code' \| 'name' \| 'narrowSymbol' \| "default"` | Currency display style: 'symbol' \| 'code' \| 'name' \| 'narrowSymbol'. | | unit | `string \| "default"` | Unit identifier (such as kilometer or byte). Required when formatStyle is unit. | | unitDisplay (unit-display) | `'short' \| 'long' \| 'narrow' \| "default"` | Unit display style: 'short' \| 'long' \| 'narrow'. | | notation | `'standard' \| 'scientific' \| 'engineering' \| 'compact' \| "default"` | Number notation: 'standard' \| 'scientific' \| 'engineering' \| 'compact'. | | compactDisplay (compact-display) | `'short' \| 'long' \| "default"` | Compact notation display: 'short' \| 'long'. Only applies when notation is compact. | | signDisplay (sign-display) | `'auto' \| 'never' \| 'always' \| 'exceptZero' \| "default"` | Sign display: 'auto' \| 'never' \| 'always' \| 'exceptZero'. | | useGrouping (use-grouping) | `string \| "default"` | Grouping separators: 'auto' \| 'always' \| 'min2' \| 'true' \| 'false'. | | minimumFractionDigits (minimum-fraction-digits) | `number \| "default"` | Pad fraction output to at least this many digits (0-20). | | maximumFractionDigits (maximum-fraction-digits) | `number \| "default"` | Round fraction output to at most this many digits (0-20). | | minimumIntegerDigits (minimum-integer-digits) | `number \| "default"` | Pad integer output to at least this many digits (1-21). | ## nve-format-relative-time Formats a date/time value as localized relative text using the Intl.RelativeTimeFormat API. Renders inside a semantic time element. Options mirror the Intl.RelativeTimeFormat API. When unit is 'auto', the component selects the best unit based on the time difference. ### Example ```html
2020-01-15T12:00:00.000Z 2024-06-15T12:00:00.000Z 2025-12-01T12:00:00.000Z
``` ### Import ```javascript import '@nvidia-elements/core/format-relative-time/define.js'; ``` ### Slots | name | value | description | | ---- | ----- | ----------- | | (default) | `string` | Date string to format (such as 2023-07-28T04:20:17.434Z). Serves as fallback before hydration. | ### Properties / Attributes | property (attribute) | value | description | | -------------------- | ----- | ----------- | | date | `string \| "default"` | Optional date string for values supplied by JavaScript or bound data. By default, the component formats the element's text content, which also serves as the SSR fallback. When both are present, this property takes precedence. | | locale | `string \| "default"` | Language tag (such as en-US, de-DE). Defaults to document.documentElement.lang or browser default. | | numeric | `'always' \| 'auto'` | Numeric formatting: 'always' \| 'auto'. When 'auto', enables natural language forms such as 'yesterday' instead of '1 day ago'. | | formatStyle (format-style) | `'long' \| 'short' \| 'narrow'` | Formatting length: 'long' \| 'short' \| 'narrow'. Controls verbosity (such as '3 days ago' vs '3d ago'). Maps to Intl.RelativeTimeFormat style option. | | unit | `'second' \| 'minute' \| 'hour' \| 'day' \| 'week' \| 'month' \| 'year' \| 'auto'` | Time unit: 'second' \| 'minute' \| 'hour' \| 'day' \| 'week' \| 'month' \| 'year' \| 'auto'. Use 'auto' to let the component select the most appropriate unit based on the time difference. | | sync | `boolean` | When present, auto-updates the displayed relative time at appropriate intervals. | ## nve-grid A versatile table/datagrid component with built-in keyboard navigation for displaying and interacting with structured data. Use it for anything from simple read-only tables to fully interactive, spreadsheet experiences. ### Example ```html column 0column 1column 2column 3column 4 cell 0-0cell 0-1cell 0-2cell 0-3cell 0-4 cell 1-0cell 1-1cell 1-2cell 1-3cell 1-4 cell 2-0cell 2-1cell 2-2cell 2-3cell 2-4 cell 3-0cell 3-1cell 3-2cell 3-3cell 3-4 cell 4-0cell 4-1cell 4-2cell 4-3cell 4-4 cell 5-0cell 5-1cell 5-2cell 5-3cell 5-4 cell 6-0cell 6-1cell 6-2cell 6-3cell 6-4 cell 7-0cell 7-1cell 7-2cell 7-3cell 7-4 cell 8-0cell 8-1cell 8-2cell 8-3cell 8-4 cell 9-0cell 9-1cell 9-2cell 9-3cell 9-4 ``` ### Import ```javascript import '@nvidia-elements/core/grid/define.js'; ``` ### Slots | name | value | description | | ---- | ----- | ----------- | | (default) | `string` | default slot for content | | footer | `string` | slot for grid-footer or toolbar | ### Properties / Attributes | property (attribute) | value | description | | -------------------- | ----- | ----------- | | container | `'flat' \| 'full' \| "default"` | Demonstrates different container styles to accommodate visual weight and context. - `flat` Element has white space bounds but reduced visual container. - `full` Element container optimizes for filling its container bounds. | | stripe | `boolean` | Determine style variant stripe rows | | scrollTo | | Scroll to a specific position in the grid. | ### CSS Properties | name | value | description | | ---- | ----- | ----------- | | --background | `string` | [MDN](https://mdn.dev/CSS/background) | | --color | `string` | [MDN](https://mdn.dev/CSS/color) | | --border-radius | `string` | [MDN](https://mdn.dev/CSS/border-radius) | | --box-shadow | `string` | [MDN](https://mdn.dev/CSS/box-shadow) | | --font-size | `string` | [MDN](https://mdn.dev/CSS/font-size) | | --row-height | `string` | fixed height of each row | | --scroll-height | `string` | height of the scrollable area | ## nve-grid-cell Represents an individual data cell within a grid row, displaying content aligned to its parent column. ### Import ```javascript import '@nvidia-elements/core/grid/define.js'; ``` ### Slots | name | value | description | | ---- | ----- | ----------- | | (default) | `string` | default slot for content | ### CSS Properties | name | value | description | | ---- | ----- | ----------- | | --background | `string` | [MDN](https://mdn.dev/CSS/background) | | --color | `string` | [MDN](https://mdn.dev/CSS/color) | | --padding | `string` | [MDN](https://mdn.dev/CSS/padding) | | --min-height | `string` | [MDN](https://mdn.dev/CSS/min-height) | | --min-width | `string` | [MDN](https://mdn.dev/CSS/min-width) | | --font-weight | `string` | [MDN](https://mdn.dev/CSS/font-weight) | | --font-size | `string` | [MDN](https://mdn.dev/CSS/font-size) | | --height | `string` | [MDN](https://mdn.dev/CSS/height) | | --border-left | `string` | [MDN](https://mdn.dev/CSS/border-left) | | --border-right | `string` | [MDN](https://mdn.dev/CSS/border-right) | | --justify-content | `string` | [MDN](https://mdn.dev/CSS/justify-content) | ## nve-grid-column Defines a column header within a grid, specifying the column's label, width, and alignment for all cells beneath it. ### Import ```javascript import '@nvidia-elements/core/grid/define.js'; ``` ### Slots | name | value | description | | ---- | ----- | ----------- | | (default) | `string` | default slot for content | | actions | `string` | slot for column actions | ### Properties / Attributes | property (attribute) | value | description | | -------------------- | ----- | ----------- | | width | `string` | Only set a fixed px width when you know the grid width. Most cases this should remain unset. If the total width of all columns is less than the grid width then the last column fills the remaining space. By default column widths are evenly divided unless width is explicitly provided. | | position | `'fixed' \| 'sticky' \| ''` | Determines the position of an element along both inline and block axis. [MDN](https://mdn.dev/CSS/CSS_grid_layout/Box_alignment_in_grid_layout#the_two_axes_of_a_grid_layout) | | columnAlign (column-align) | `'start' \| 'center' \| 'end'` | Control the content alignment within a given column. | ### Events | name | value | description | | ---- | ----- | ----------- | | nve-grid-column-resize | `CustomEvent` | | ### CSS Properties | name | value | description | | ---- | ----- | ----------- | | --color | `string` | [MDN](https://mdn.dev/CSS/color) | | --padding | `string` | [MDN](https://mdn.dev/CSS/padding) | | --font-weight | `string` | [MDN](https://mdn.dev/CSS/font-weight) | | --font-size | `string` | [MDN](https://mdn.dev/CSS/font-size) | | --height | `string` | [MDN](https://mdn.dev/CSS/height) | | --min-width | `string` | [MDN](https://mdn.dev/CSS/min-width) | | --justify-content | `string` | [MDN](https://mdn.dev/CSS/justify-content) | | --border-left | `string` | [MDN](https://mdn.dev/CSS/border-left) | | --border-right | `string` | [MDN](https://mdn.dev/CSS/border-right) | ## nve-grid-footer Grid footer displays contextual information or user actions such as pagination. ### Import ```javascript import '@nvidia-elements/core/grid/define.js'; ``` ### Slots | name | value | description | | ---- | ----- | ----------- | | (default) | `string` | default slot for content | ### Properties / Attributes | property (attribute) | value | description | | -------------------- | ----- | ----------- | | slot | `string` | | ### CSS Properties | name | value | description | | ---- | ----- | ----------- | | --background | `string` | [MDN](https://mdn.dev/CSS/background) | | --color | `string` | [MDN](https://mdn.dev/CSS/color) | | --padding | `string` | [MDN](https://mdn.dev/CSS/padding) | | --height | `string` | [MDN](https://mdn.dev/CSS/height) | ## nve-grid-header Contains the column headers of a grid, managing column widths and providing structural context for the data rows below. ### Import ```javascript import '@nvidia-elements/core/grid/define.js'; ``` ### Slots | name | value | description | | ---- | ----- | ----------- | | (default) | `string` | default slot for `nve-grid-column` | ### CSS Properties | name | value | description | | ---- | ----- | ----------- | | --background | `string` | [MDN](https://mdn.dev/CSS/background) | | --border-bottom | `string` | [MDN](https://mdn.dev/CSS/border-bottom) | | --padding | `string` | [MDN](https://mdn.dev/CSS/padding) | ## nve-grid-placeholder Placeholder displays a message while data loads for the grid or shows empty states for datasets. ### Import ```javascript import '@nvidia-elements/core/grid/define.js'; ``` ### Slots | name | value | description | | ---- | ----- | ----------- | | (default) | `string` | default slot for content | ### CSS Properties | name | value | description | | ---- | ----- | ----------- | | --color | `string` | [MDN](https://mdn.dev/CSS/color) | | --padding | `string` | [MDN](https://mdn.dev/CSS/padding) | ## nve-grid-row Represents a horizontal row of data cells within a grid, supporting selection and interactive states. ### Import ```javascript import '@nvidia-elements/core/grid/define.js'; ``` ### Slots | name | value | description | | ---- | ----- | ----------- | | (default) | `string` | default slot for `nve-grid-cell` | ### Properties / Attributes | property (attribute) | value | description | | -------------------- | ----- | ----------- | | selected | `boolean` | Indicates whether an element currently holds selection within a multi-option selection group. [MDN](https://mdn.dev/ARIA/Attributes/aria-selected) - `true` The element holds selection and represents the user's current choice within the group. - `false` The element does not hold selection and the user can choose it. | ### CSS Properties | name | value | description | | ---- | ----- | ----------- | | --background | `string` | [MDN](https://mdn.dev/CSS/background) | | --border-bottom | `string` | [MDN](https://mdn.dev/CSS/border-bottom) | ## nve-icon An icon is a graphic symbol designed to visually show the purpose of an interface element. ### Example ```html ``` ### Import ```javascript import '@nvidia-elements/core/icon/define.js'; ``` ### Slots | name | value | description | | ---- | ----- | ----------- | | (default) | `string` | Custom SVG content to override the named icon | ### Properties / Attributes | property (attribute) | value | description | | -------------------- | ----- | ----------- | | status | `'warning' \| 'danger' \| 'success' \| 'accent' \| "default"` | Communicates the intent and semantic meaning of an element to help users understand the outcome of their actions. - `warning` Indicates cautionary actions that require careful consideration before proceeding. - `danger` Signals destructive or irreversible actions that need extra attention and confirmation. - `success` Represents positive outcomes, confirmations, or constructive actions. - `accent` Highlights important actions or draws attention to primary interactive elements. | | size | `'sm' \| 'md' \| 'lg' \| 'xs' \| 'xl' \| "default"` | Controls the visual scale of an element to match its importance and available space. - `sm` Compact size for dense layouts or secondary elements with less visual prominence. - `md` Standard size that works well in most contexts and provides balanced visibility. - `lg` Larger size for emphasizing important elements or improving touch targets in spacious layouts. | | direction | `'up' \| 'down' \| 'left' \| 'right' \| "default"` | Sets the direction of the icon. Only supported by expand-panel/collapse-panel (horizontal axis) and arrow/caret/chevron icons (4-directions) | | name | `placeholder` \| `caret` \| `person` \| `menu` \| `cancel` \| `gear` \| `chevron` \| `logout` \| `copy` \| `more-actions` \| `add` \| `arrow` \| `delete` \| `download` \| `search` \| `split-vertical` \| `sparkles` \| `branch` \| `refresh` \| `double-chevron` ... (use `icons_list` tool for full list) | The name of the icon SVG sprite to render. | ### CSS Properties | name | value | description | | ---- | ----- | ----------- | | --color | `string` | [MDN](https://mdn.dev/CSS/color) | | --width | `string` | [MDN](https://mdn.dev/CSS/width) | | --height | `string` | [MDN](https://mdn.dev/CSS/height) | ## nve-icon-button An icon button is a button that displays only an icon without a visual label. ### Example ```html ``` ### Import ```javascript import '@nvidia-elements/core/icon-button/define.js'; ``` ### Slots | name | value | description | | ---- | ----- | ----------- | | (default) | `string` | default slot for custom icons | ### Properties / Attributes | property (attribute) | value | description | | -------------------- | ----- | ----------- | | iconName (icon-name) | `'placeholder' \| 'caret' \| 'person' \| 'menu' \| 'cancel' \| 'gear' \| 'chevron' \| 'logout' \| 'copy' \| 'more-actions' \| 'add' \| 'arrow' \| 'delete' \| 'download' \| 'search' \| 'split-vertical' \| 'sparkles' \| 'branch' \| 'refresh' \| 'double-chevron' \| 'academic-cap' \| 'add-asset' \| 'add-comment' \| 'add-grid' \| 'add-user' \| 'ancestors' \| 'archive' \| 'arrow-angle' \| 'arrow-both' \| 'arrow-cycle' \| 'arrow-path-rounded-square' \| 'arrow-stop' \| 'at-symbol' \| 'backspace' \| 'bar-pill-stack' \| 'bars-3' \| 'bars-3-bottom-left' \| 'bars-3-bottom-right' \| 'bars-3-center-left' \| 'bars-4' \| 'beaker' \| 'bell' \| 'bell-slash' \| 'bell-stroke' \| 'bold' \| 'book' \| 'bookmark' \| 'bookmark-stroke' \| 'bounding-box' \| 'briefcase' \| 'broadcast' \| 'browser' \| 'bug' \| 'calendar' \| 'camera' \| 'carets-closed-square' \| 'carousel' \| 'category-list' \| 'chart-bar' \| 'chat-bubble' \| 'chat-bubbles' \| 'check' \| 'check-badge' \| 'checklist' \| 'checkmark-circle' \| 'chip' \| 'circle' \| 'circle-angled-line' \| 'circle-dash' \| 'circle-dot' \| 'circle-dot-arrows' \| 'circle-half' \| 'circle-rule' \| 'circle-tick' \| 'clipboard' \| 'clock' \| 'clock-circle-arrow' \| 'cloud' \| 'cloud-download' \| 'cloud-upload' \| 'code' \| 'collapse-all' \| 'collapse-details' \| 'color-palette' \| 'columns' \| 'compare' \| 'computer' \| 'connect-node' \| 'connected-blocks' \| 'cross-hairs' \| 'cursor-rays' \| 'cursor-ripples' \| 'data-management' \| 'delete-node' \| 'doc-checkmark' \| 'dock-bottom' \| 'dock-none' \| 'dock-side' \| 'document' \| 'document-clipboard' \| 'dot' \| 'dot-stroke' \| 'drag' \| 'dropper' \| 'duplicate' \| 'edit' \| 'ellipses' \| 'envelope' \| 'exclamation-circle' \| 'exclamation-mark' \| 'exclamation-triangle' \| 'expand-all' \| 'expand-details' \| 'expression' \| 'eye' \| 'eye-hidden' \| 'face-frown' \| 'face-smile' \| 'fast-forward' \| 'fast-forward-10' \| 'film' \| 'filter' \| 'filter-stroke' \| 'flag' \| 'flag-stroke' \| 'fold' \| 'folder' \| 'fork' \| 'globe' \| 'globe-alt-stroke' \| 'group' \| 'group-boxes' \| 'hand' \| 'hash' \| 'heading' \| 'home' \| 'horizontal-rule' \| 'hourglass' \| 'hourglass-end' \| 'hourglass-mid' \| 'hourglass-start' \| 'identification' \| 'image' \| 'inbox' \| 'infinity' \| 'information-circle-stroke' \| 'inspect' \| 'italic' \| 'key' \| 'keyboard' \| 'laptop-phone' \| 'layers' \| 'lifebuoy' \| 'lightbulb' \| 'lightning-bolt' \| 'link' \| 'list-ordered' \| 'list-unordered' \| 'lock' \| 'login' \| 'looping' \| 'looping-off' \| 'map' \| 'map-drives' \| 'map-pin' \| 'markdown' \| 'maximize' \| 'megaphone' \| 'merge' \| 'meter' \| 'minimize' \| 'minus' \| 'minus-circle' \| 'moon' \| 'multiselect' \| 'music-note' \| 'newspaper' \| 'not-allowed' \| 'numbers' \| 'office-building' \| 'outline' \| 'paper-airplane' \| 'paper-clip' \| 'pause' \| 'pencil-square' \| 'person-2' \| 'person-3' \| 'person-circle' \| 'phone' \| 'picture-in-picture' \| 'pie-chart' \| 'pin' \| 'pizza-slice' \| 'play' \| 'plug' \| 'plus-circle' \| 'plus-minus' \| 'pointer' \| 'pointer-stroke' \| 'priority-high' \| 'priority-low' \| 'priority-medium' \| 'projector' \| 'pull-close' \| 'pull-draft' \| 'pull-open' \| 'pulse' \| 'puzzle-piece' \| 'question-mark-circle' \| 'question-mark-circle-stroke' \| 'rectangle-group' \| 'rectangle-stack-horizontal' \| 'rectangle-stack-vertical' \| 'redo' \| 'reply' \| 'rewind' \| 'rewind-10' \| 'rocketship' \| 'running' \| 'scale' \| 'scissors' \| 'sensor' \| 'server' \| 'server-stack' \| 'shapes' \| 'share' \| 'signal' \| 'signal-slash' \| 'signpost' \| 'sort-ascending' \| 'sort-descending' \| 'soundwave' \| 'split-horizontal' \| 'split-none' \| 'star' \| 'star-half' \| 'star-stroke' \| 'start' \| 'status-offline' \| 'status-online' \| 'stop' \| 'stop-sign' \| 'stopwatch' \| 'strikethrough' \| 'sun' \| 'swatch' \| 'switch' \| 'switch-apps' \| 'table' \| 'tag' \| 'task' \| 'telescope' \| 'template' \| 'terminal' \| 'thumb' \| 'thumb-stroke' \| 'traffic-cone' \| 'transparent-box' \| 'trend-down' \| 'trend-up' \| 'trophy' \| 'truck' \| 'typography' \| 'undo' \| 'unlock' \| 'upload' \| 'video-camera' \| 'view-as-grid' \| 'volume' \| 'volume-muted' \| 'wifi' \| 'wrench' \| 'x-circle' \| 'zoom-in' \| 'zoom-out'` | Sets the icon name, which determines which icon to display. | | direction | `'up' \| 'down' \| 'left' \| 'right'` | Sets the direction of the icon. Only supported by expand-panel/collapse-panel (horizontal axis) and arrow/caret/chevron icons (4-directions) | | size | `'sm' \| 'md' \| 'lg' \| "default"` | Controls the visual scale of an element to match its importance and available space. - `sm` Compact size for dense layouts or secondary elements with less visual prominence. - `md` Standard size that works well in most contexts and provides balanced visibility. - `lg` Larger size for emphasizing important elements or improving touch targets in spacious layouts. | | container | `'flat' \| 'inline' \| "default"` | Demonstrates different container styles to accommodate visual weight and context. - `flat` Element has white space bounds but reduced visual container. - `inline` Element container reduces to fit within inline content such as a block of text. | | interaction | `'emphasis' \| 'destructive'` | The Interaction type provides a way to show the intent of an interactive element. This can help users quickly understand what each interaction does and reduce the potential for confusion or errors. - `emphasis` Shows the interaction targets emphasis or highlighting primary actions. - `destructive` Shows the interaction targets destructive actions such as deleting or removing. | | pressed | `boolean` | Indicates the current state of a toggle button that switches on or off. [MDN](https://mdn.dev/ARIA/Attributes/aria-pressed) - `true` The button is in the pressed (on) state and the associated action or setting is active. - `false` The button is in the unpressed (off) state and the associated action or setting is inactive. | | expanded | `boolean` | Indicates whether collapsible content is currently visible or hidden from the user. [MDN](https://mdn.dev/ARIA/Attributes/aria-expanded) - `true` The associated content expands and becomes visible to the user. - `false` The associated content collapses and hides from the user. | | readOnly (readonly) | `boolean` | Indicates whether the user can change the element's value while it remains visible and focusable. [MDN](https://mdn.dev/HTML/Attributes/readonly) - `true` The element has a readonly state: the user cannot change its value, but can still focus and copy it. - `false` The element allows editing and the user can change its value through interaction. | | form | `HTMLFormElement \| null \| string` | Like input form, sets a button to submit a form outside its parent form. Returns a reference to the form element if available. https://mdn.dev/ElementInternals/form | | name | `string` ... (use `icons_list` tool for full list) | The name of the button, submitted as a pair with the button's value as part of the form data, when that button submits the form. https://mdn.dev/HTML/Element/button#attr-name | | value | `string` | Defines the value associated with the element's name when submitting the form data. The server receives this value in params when the form submits through this button. [MDN](https://mdn.dev/HTML/Element/input#value) | | type | `'button' \| 'submit' \| 'reset'` | Defines the button behavior when associated within an element. https://mdn.dev/HTML/Element/button#attr-type | | disabled | `boolean` | This Boolean attribute prevents the user from interacting with the element: it cannot receive press or focus events. [MDN](https://mdn.dev/ARIA/Attributes/aria-disabled) - `true` The element has a disabled state and does not accept interaction. - `false` The element has an enabled state and accepts interaction. | | selected | `boolean` | Indicates whether an element currently holds selection within a multi-option selection group. [MDN](https://mdn.dev/ARIA/Attributes/aria-selected) - `true` The element holds selection and represents the user's current choice within the group. - `false` The element does not hold selection and the user can choose it. | | current | `'page' \| 'step'` | Indicates the element that represents the user's current location or position within a set. [MDN](https://mdn.dev/ARIA/Attributes/aria-current) - `page` Marks the current page within a set of navigation links. - `step` Marks the current step within a multi-step process or workflow. | | popoverTargetElement | `HTMLElement \| null` | Establishing a relationship between a popover and its invoker button. https://mdn.dev/HTMLInputElement/popoverTargetElement | | popovertarget | `string` | The idref of the element that receives the popover. https://mdn.dev/HTML/Reference/Elements/button#popovertarget | | popoverTargetAction (popovertargetaction) | `'show' \| 'hide' \| 'toggle'` | The popover target action to perform on the popover target element. https://mdn.dev/HTMLInputElement/popoverTargetAction | | commandForElement | `HTMLElement \| null` | The element that receives the command. https://mdn.dev/Invoker_Commands_API | | commandfor | `string \| null` | The idref of the element that receives the command. https://mdn.dev/Invoker_Commands_API | | command | `string` | The command to execute on the element. https://mdn.dev/Invoker_Commands_API | | interestForElement | `HTMLElement \| null` | The element that receives the interest. https://mdn.dev/HTMLAnchorElement/interestForElement | | interestfor | `string \| null` | The idref of the element that receives the interest. https://mdn.dev/HTMLAnchorElement/interestForElement | ### CSS Properties | name | value | description | | ---- | ----- | ----------- | | --border-radius | `string` | [MDN](https://mdn.dev/CSS/border-radius) | | --padding | `string` | [MDN](https://mdn.dev/CSS/padding) | | --line-height | `string` | [MDN](https://mdn.dev/CSS/line-height) | | --gap | `string` | [MDN](https://mdn.dev/CSS/gap) | | --height | `string` | [MDN](https://mdn.dev/CSS/height) | | --width | `string` | [MDN](https://mdn.dev/CSS/width) | | --font-size | `string` | [MDN](https://mdn.dev/CSS/font-size) | | --color | `string` | [MDN](https://mdn.dev/CSS/color) | | --background | `string` | [MDN](https://mdn.dev/CSS/background) | | --border | `string` | [MDN](https://mdn.dev/CSS/border) | | --font-weight | `string` | [MDN](https://mdn.dev/CSS/font-weight) | | --text-decoration | `string` | [MDN](https://mdn.dev/CSS/text-decoration) | | --text-align | `string` | [MDN](https://mdn.dev/CSS/text-align) | | --cursor | `string` | [MDN](https://mdn.dev/CSS/cursor) | | --text-transform | `string` | [MDN](https://mdn.dev/CSS/text-transform) | | --min-width | `string` | [MDN](https://mdn.dev/CSS/min-width) | ## nve-input An input is a control that enables users to enter text. ### Example ```html message ``` ### Import ```javascript import '@nvidia-elements/core/input/define.js'; ``` ### Slots | name | value | description | | ---- | ----- | ----------- | | (default) | `string` | Control input element | | label | `string` | Label element | ### Properties / Attributes | property (attribute) | value | description | | -------------------- | ----- | ----------- | | container | `'flat' \| "default"` | Demonstrates different container styles to accommodate visual weight and context. - `flat` Element has white space bounds but reduced visual container. | | rounded | `boolean` | Sets the rounded visual style of the input. | | status | `'warning' \| 'error' \| 'success' \| 'disabled'` | Communicates the intent and semantic meaning of an element to help users understand the outcome of their actions. - `warning` Indicates cautionary actions that require careful consideration before proceeding. - `success` Represents positive outcomes, confirmations, or constructive actions. | | layout | `\| 'vertical' \| 'vertical-inline' \| 'horizontal' \| 'horizontal-inline'` | Controls the directional arrangement and spacing behavior of the element's content. - `vertical` Arranges content in a vertical stack with block-level spacing. - `vertical-inline` Arranges content vertically with compact inline spacing for dense layouts. - `horizontal` Arranges content in a horizontal row with block-level spacing. - `horizontal-inline` Arranges content horizontally with compact inline spacing. | | fitText (fit-text) | `boolean` | Sets the input to match the width of the active text content of the control value. Only applicable to vertical input box type controls (input, select) | | fitContent (fit-content) | `boolean` | Sets the input to match native default content block | | i18n | | Enables updating internal string values for internationalization. | | prominence | `'muted'` | Controls the visual prominence to establish hierarchy and guide user attention. - `muted` Reduces visual weight for supporting content that should remain subtle and unobtrusive. | | nveControl | `string` | | | reset | | Resets control value to initial attribute value and clears any active validation rules. | | showPicker | | | ### Events | name | value | description | | ---- | ----- | ----------- | | reset | `CustomEvent` | | ### CSS Properties | name | value | description | | ---- | ----- | ----------- | | --padding | `string` | [MDN](https://mdn.dev/CSS/padding) | | --font-size | `string` | [MDN](https://mdn.dev/CSS/font-size) | | --height | `string` | [MDN](https://mdn.dev/CSS/height) | | --background | `string` | [MDN](https://mdn.dev/CSS/background) | | --border-radius | `string` | [MDN](https://mdn.dev/CSS/border-radius) | | --border | `string` | [MDN](https://mdn.dev/CSS/border) | | --cursor | `string` | [MDN](https://mdn.dev/CSS/cursor) | | --color | `string` | [MDN](https://mdn.dev/CSS/color) | | --font-weight | `string` | [MDN](https://mdn.dev/CSS/font-weight) | | --width | `string` | [MDN](https://mdn.dev/CSS/width) | | --min-width | `string` | [MDN](https://mdn.dev/CSS/min-width) | | --max-width | `string` | [MDN](https://mdn.dev/CSS/max-width) | | --border-bottom | `string` | [MDN](https://mdn.dev/CSS/border-bottom) | | --box-shadow | `string` | [MDN](https://mdn.dev/CSS/box-shadow) | | --accent-color | `string` | [MDN](https://mdn.dev/CSS/accent-color) | | --label-color | `string` | [MDN](https://mdn.dev/CSS/color) | | --label-width | `string` | [MDN](https://mdn.dev/CSS/width) | | --label-font-weight | `string` | [MDN](https://mdn.dev/CSS/font-weight) | | --label-font-size | `string` | [MDN](https://mdn.dev/CSS/font-size) | | --control-width | `string` | [MDN](https://mdn.dev/CSS/width) | | --control-height | `string` | [MDN](https://mdn.dev/CSS/height) | ## nve-input-group Visually combines many related input controls into a unified composite field with shared styling. ### Example ```html .com host: 123456 ``` ### Import ```javascript import '@nvidia-elements/core/input/define.js'; ``` ### Slots | name | value | description | | ---- | ----- | ----------- | | (default) | `string` | Control input elements | ### Properties / Attributes | property (attribute) | value | description | | -------------------- | ----- | ----------- | | layout | `\| 'vertical' \| 'vertical-inline' \| 'horizontal' \| 'horizontal-inline'` | Controls the directional arrangement and spacing behavior of the element's content. - `vertical` Arranges content in a vertical stack with block-level spacing. - `vertical-inline` Arranges content vertically with compact inline spacing for dense layouts. - `horizontal` Arranges content in a horizontal row with block-level spacing. - `horizontal-inline` Arranges content horizontally with compact inline spacing. | | prominence | `'muted'` | Controls the visual prominence to establish hierarchy and guide user attention. - `muted` Reduces visual weight for supporting content that should remain subtle and unobtrusive. | ### CSS Properties | name | value | description | | ---- | ----- | ----------- | | --background | `string` | [MDN](https://mdn.dev/CSS/background) | | --color | `string` | [MDN](https://mdn.dev/CSS/color) | | --border-radius | `string` | [MDN](https://mdn.dev/CSS/border-radius) | | --gap | `string` | [MDN](https://mdn.dev/CSS/gap) | | --border | `string` | [MDN](https://mdn.dev/CSS/border) | | --padding | `string` | [MDN](https://mdn.dev/CSS/padding) | | --label-color | `string` | [MDN](https://mdn.dev/CSS/color) | | --label-text-transform | `string` | [MDN](https://mdn.dev/CSS/text-transform) | | --label-font-weight | `string` | [MDN](https://mdn.dev/CSS/font-weight) | | --label-font-size | `string` | [MDN](https://mdn.dev/CSS/font-size) | ## nve-logo A visual indicator for a brand or application. ### Example ```html NV ``` ### Import ```javascript import '@nvidia-elements/core/logo/define.js'; ``` ### Slots | name | value | description | | ---- | ----- | ----------- | | (default) | `string` | default slot for content | ### Properties / Attributes | property (attribute) | value | description | | -------------------- | ----- | ----------- | | color | `'red-cardinal' \| 'gray-slate' \| 'gray-denim' \| 'blue-indigo' \| 'blue-cobalt' \| 'blue-sky' \| 'teal-cyan' \| 'green-mint' \| 'teal-seafoam' \| 'green-grass' \| 'yellow-amber' \| 'orange-pumpkin' \| 'red-tomato' \| 'pink-magenta' \| 'purple-plum' \| 'purple-violet' \| 'purple-lavender' \| 'pink-rose' \| 'green-jade' \| 'lime-pear' \| 'yellow-nova' \| 'brand-green'` | Defines a base color from the theme color palette | | size | `'sm' \| 'md' \| 'lg' \| "default"` | Controls the visual scale of an element to match its importance and available space. - `sm` Compact size for dense layouts or secondary elements with less visual prominence. - `md` Standard size that works well in most contexts and provides balanced visibility. - `lg` Larger size for emphasizing important elements or improving touch targets in spacious layouts. | ### CSS Properties | name | value | description | | ---- | ----- | ----------- | | --background | `string` | [MDN](https://mdn.dev/CSS/background) | | --gap | `string` | [MDN](https://mdn.dev/CSS/gap) | | --color | `string` | [MDN](https://mdn.dev/CSS/color) | | --height | `string` | [MDN](https://mdn.dev/CSS/height) | | --width | `string` | [MDN](https://mdn.dev/CSS/width) | | --font-size | `string` | [MDN](https://mdn.dev/CSS/font-size) | | --border-radius | `string` | [MDN](https://mdn.dev/CSS/border-radius) | | --font-weight | `string` | [MDN](https://mdn.dev/CSS/font-weight) | ## nve-menu A menu offers a list of choices to the user, such as a set of actions or functions. Choosing an item in a menu typically opens a sub menu, or invokes a command. ### Example ```html item 1 item 2 item 3 item 4 ``` ### Import ```javascript import '@nvidia-elements/core/menu/define.js'; ``` ### Slots | name | value | description | | ---- | ----- | ----------- | | (default) | `string` | default slot for `nve-menu-item` | ### Properties / Attributes | property (attribute) | value | description | | -------------------- | ----- | ----------- | | items | `MenuItem[]` | | ### Events | name | value | description | | ---- | ----- | ----------- | | scroll | `CustomEvent` | Fires when the user scrolls the menu list. Throttled to one dispatch per animation frame. `detail: { scrollTop, scrollHeight, clientHeight }`. | ### CSS Properties | name | value | description | | ---- | ----- | ----------- | | --padding | `string` | [MDN](https://mdn.dev/CSS/padding) | | --gap | `string` | [MDN](https://mdn.dev/CSS/gap) | | --width | `string` | [MDN](https://mdn.dev/CSS/width) | | --max-width | `string` | [MDN](https://mdn.dev/CSS/max-width) | | --min-width | `string` | [MDN](https://mdn.dev/CSS/min-width) | | --max-height | `string` | [MDN](https://mdn.dev/CSS/max-height) | ## nve-menu-item Represents a selectable option within a menu, providing an interactive button for navigation or actions. ### Import ```javascript import '@nvidia-elements/core/menu/define.js'; ``` ### Slots | name | value | description | | ---- | ----- | ----------- | | (default) | `string` | default slot for content | | suffix | `string` | slot for suffix icon | ### Properties / Attributes | property (attribute) | value | description | | -------------------- | ----- | ----------- | | status | `'danger'` | Communicates the intent and semantic meaning of an element to help users understand the outcome of their actions. - `danger` Signals destructive or irreversible actions that need extra attention and confirmation. | | type | `'button' \| 'submit' \| 'reset'` | Defines the button behavior when associated within an element. https://mdn.dev/HTML/Element/button#attr-type | | pressed | `boolean` | Indicates the current state of a toggle button that switches on or off. [MDN](https://mdn.dev/ARIA/Attributes/aria-pressed) - `true` The button is in the pressed (on) state and the associated action or setting is active. - `false` The button is in the unpressed (off) state and the associated action or setting is inactive. | | expanded | `boolean` | Indicates whether collapsible content is currently visible or hidden from the user. [MDN](https://mdn.dev/ARIA/Attributes/aria-expanded) - `true` The associated content expands and becomes visible to the user. - `false` The associated content collapses and hides from the user. | | readOnly (readonly) | `boolean` | Indicates whether the user can change the element's value while it remains visible and focusable. [MDN](https://mdn.dev/HTML/Attributes/readonly) - `true` The element has a readonly state: the user cannot change its value, but can still focus and copy it. - `false` The element allows editing and the user can change its value through interaction. | | form | `HTMLFormElement \| null \| string` | Like input form, sets a button to submit a form outside its parent form. Returns a reference to the form element if available. https://mdn.dev/ElementInternals/form | | name | `string` | The name of the button, submitted as a pair with the button's value as part of the form data, when that button submits the form. https://mdn.dev/HTML/Element/button#attr-name | | value | `string` | Defines the value associated with the element's name when submitting the form data. The server receives this value in params when the form submits through this button. [MDN](https://mdn.dev/HTML/Element/input#value) | | disabled | `boolean` | This Boolean attribute prevents the user from interacting with the element: it cannot receive press or focus events. [MDN](https://mdn.dev/ARIA/Attributes/aria-disabled) - `true` The element has a disabled state and does not accept interaction. - `false` The element has an enabled state and accepts interaction. | | selected | `boolean` | Indicates whether an element currently holds selection within a multi-option selection group. [MDN](https://mdn.dev/ARIA/Attributes/aria-selected) - `true` The element holds selection and represents the user's current choice within the group. - `false` The element does not hold selection and the user can choose it. | | current | `'page' \| 'step'` | Indicates the element that represents the user's current location or position within a set. [MDN](https://mdn.dev/ARIA/Attributes/aria-current) - `page` Marks the current page within a set of navigation links. - `step` Marks the current step within a multi-step process or workflow. | | popoverTargetElement | `HTMLElement \| null` | Establishing a relationship between a popover and its invoker button. https://mdn.dev/HTMLInputElement/popoverTargetElement | | popovertarget | `string` | The idref of the element that receives the popover. https://mdn.dev/HTML/Reference/Elements/button#popovertarget | | popoverTargetAction (popovertargetaction) | `'show' \| 'hide' \| 'toggle'` | The popover target action to perform on the popover target element. https://mdn.dev/HTMLInputElement/popoverTargetAction | | commandForElement | `HTMLElement \| null` | The element that receives the command. https://mdn.dev/Invoker_Commands_API | | commandfor | `string \| null` | The idref of the element that receives the command. https://mdn.dev/Invoker_Commands_API | | command | `string` | The command to execute on the element. https://mdn.dev/Invoker_Commands_API | | interestForElement | `HTMLElement \| null` | The element that receives the interest. https://mdn.dev/HTMLAnchorElement/interestForElement | | interestfor | `string \| null` | The idref of the element that receives the interest. https://mdn.dev/HTMLAnchorElement/interestForElement | ### CSS Properties | name | value | description | | ---- | ----- | ----------- | | --background | `string` | [MDN](https://mdn.dev/CSS/background) | | --border-radius | `string` | [MDN](https://mdn.dev/CSS/border-radius) | | --border-background | `string` | | | --font-size | `string` | [MDN](https://mdn.dev/CSS/font-size) | | --font-weight | `string` | [MDN](https://mdn.dev/CSS/font-weight) | | --color | `string` | [MDN](https://mdn.dev/CSS/color) | | --padding | `string` | [MDN](https://mdn.dev/CSS/padding) | | --gap | `string` | [MDN](https://mdn.dev/CSS/gap) | | --width | `string` | [MDN](https://mdn.dev/CSS/width) | | --min-height | `string` | [MDN](https://mdn.dev/CSS/min-height) | | --line-height | `string` | [MDN](https://mdn.dev/CSS/line-height) | | --cursor | `string` | [MDN](https://mdn.dev/CSS/cursor) | | --opacity | `string` | [MDN](https://mdn.dev/CSS/opacity) | | --text-transform | `string` | [MDN](https://mdn.dev/CSS/text-transform) | ## nve-month A month picker is a control that enables users to choose a month value. ### Example ```html message ``` ### Import ```javascript import '@nvidia-elements/core/month/define.js'; ``` ### Slots | name | value | description | | ---- | ----- | ----------- | | (default) | `string` | Control input element | | label | `string` | Label element | ### Properties / Attributes | property (attribute) | value | description | | -------------------- | ----- | ----------- | | container | `'flat' \| "default"` | Demonstrates different container styles to accommodate visual weight and context. - `flat` Element has white space bounds but reduced visual container. | | status | `'warning' \| 'error' \| 'success' \| 'disabled'` | Communicates the intent and semantic meaning of an element to help users understand the outcome of their actions. - `warning` Indicates cautionary actions that require careful consideration before proceeding. - `success` Represents positive outcomes, confirmations, or constructive actions. | | layout | `\| 'vertical' \| 'vertical-inline' \| 'horizontal' \| 'horizontal-inline'` | Controls the directional arrangement and spacing behavior of the element's content. - `vertical` Arranges content in a vertical stack with block-level spacing. - `vertical-inline` Arranges content vertically with compact inline spacing for dense layouts. - `horizontal` Arranges content in a horizontal row with block-level spacing. - `horizontal-inline` Arranges content horizontally with compact inline spacing. | | fitText (fit-text) | `boolean` | Sets the input to match the width of the active text content of the control value. Only applicable to vertical input box type controls (input, select) | | fitContent (fit-content) | `boolean` | Sets the input to match native default content block | | i18n | | Enables updating internal string values for internationalization. | | prominence | `'muted'` | Controls the visual prominence to establish hierarchy and guide user attention. - `muted` Reduces visual weight for supporting content that should remain subtle and unobtrusive. | | nveControl | `string` | | | reset | | Resets control value to initial attribute value and clears any active validation rules. | | showPicker | | | ### Events | name | value | description | | ---- | ----- | ----------- | | reset | `CustomEvent` | | ### CSS Properties | name | value | description | | ---- | ----- | ----------- | | --padding | `string` | [MDN](https://mdn.dev/CSS/padding) | | --font-size | `string` | [MDN](https://mdn.dev/CSS/font-size) | | --height | `string` | [MDN](https://mdn.dev/CSS/height) | | --background | `string` | [MDN](https://mdn.dev/CSS/background) | | --border-radius | `string` | [MDN](https://mdn.dev/CSS/border-radius) | | --border | `string` | [MDN](https://mdn.dev/CSS/border) | | --cursor | `string` | [MDN](https://mdn.dev/CSS/cursor) | | --accent-color | `string` | [MDN](https://mdn.dev/CSS/accent-color) | | --color | `string` | [MDN](https://mdn.dev/CSS/color) | | --label-color | `string` | [MDN](https://mdn.dev/CSS/color) | | --label-width | `string` | [MDN](https://mdn.dev/CSS/width) | | --label-font-weight | `string` | [MDN](https://mdn.dev/CSS/font-weight) | | --label-font-size | `string` | [MDN](https://mdn.dev/CSS/font-size) | | --control-width | `string` | [MDN](https://mdn.dev/CSS/width) | | --control-height | `string` | [MDN](https://mdn.dev/CSS/height) | ## nve-notification Displays real time updates without interrupting the user's workflow to communicate an important message or status. [MDN Popover API](https://developer.mozilla.org/en-US/docs/Web/API/Popover_API) ### Example ```html

Notification

some text content in a notification

button ``` ### Import ```javascript import '@nvidia-elements/core/notification/define.js'; ``` ### Slots | name | value | description | | ---- | ----- | ----------- | | (default) | `string` | default content slot | | icon | `string` | content slot for the status icon | ### Properties / Attributes | property (attribute) | value | description | | -------------------- | ----- | ----------- | | anchor | `string \| HTMLElement` | Provides the element that the popover should position relative to. Anchor can accept a idref string within the same render root or a HTMLElement DOM reference. | | position | `'center' \| 'top' \| 'bottom' \| 'left' \| 'right'` | Determines the position of an element along both inline and block axis. [MDN](https://mdn.dev/CSS/CSS_grid_layout/Box_alignment_in_grid_layout#the_two_axes_of_a_grid_layout) - `center` Centers the popover directly over the anchor element. - `top` Positions the popover above the anchor element. - `bottom` Positions the popover below the anchor element. - `left` Positions the popover to the left side of the anchor element. - `right` Positions the popover to the right side of the anchor element. | | alignment | `'start' \| 'end' \| 'center'` | Determines the alignment of the popover relative to the provided anchor element. - `start` Aligns the popover to the beginning edge of the anchor for left or top alignment. - `end` Aligns the popover to the ending edge of the anchor for right or bottom alignment. - `center` Centers the popover along the anchor's edge for balanced positioning. | | closable | `boolean` | Indicates whether the user can dismiss or close the element. - `true` The element displays a close control and the user can dismiss it. - `false` The user cannot close the element and must dismiss it programmatically. | | closeTimeout (close-timeout) | `number` | Sets the automatic dismissal time in milliseconds before the element emits a `close` event. Allow ~200-250ms per word for comfortable reading. - `0` Warning or error messages requiring immediate acknowledgment. - `3000` Brief success or confirmation messages. - `7000` Standard informational messages. - `10000` Messages with actions or requiring user decision. | | status | `'accent' \| 'warning' \| 'success' \| 'danger'` | Communicates the intent and semantic meaning of an element to help users understand the outcome of their actions. - `accent` Highlights important actions or draws attention to primary interactive elements. - `warning` Indicates cautionary actions that require careful consideration before proceeding. - `success` Represents positive outcomes, confirmations, or constructive actions. - `danger` Signals destructive or irreversible actions that need extra attention and confirmation. | | container | `'flat' \| "default"` | Demonstrates different container styles to accommodate visual weight and context. - `flat` Element has white space bounds but reduced visual container. | | i18n | | Enables updating internal string values for internationalization. | | typeNativePopoverController | `TypeNativePopoverController` | | | hidePopover | | | ### Events | name | value | description | | ---- | ----- | ----------- | | close | `CustomEvent` | Dispatched when the notification closes. | | beforetoggle | `CustomEvent` | Dispatched on a popover just before showing or hiding. [MDN](https://mdn.dev/HTMLElement/beforetoggle_event) | | toggle | `CustomEvent` | Dispatched on a popover element just after showing or hiding. [MDN](https://mdn.dev/HTMLElement/toggle_event) | | open | `CustomEvent` | Dispatched when the notification opens. | ### CSS Properties | name | value | description | | ---- | ----- | ----------- | | --border-radius | `string` | [MDN](https://mdn.dev/CSS/border-radius) | | --background | `string` | [MDN](https://mdn.dev/CSS/background) | | --color | `string` | [MDN](https://mdn.dev/CSS/color) | | --padding | `string` | [MDN](https://mdn.dev/CSS/padding) | | --box-shadow | `string` | [MDN](https://mdn.dev/CSS/box-shadow) | | --min-width | `string` | [MDN](https://mdn.dev/CSS/min-width) | | --width | `string` | [MDN](https://mdn.dev/CSS/width) | | --max-width | `string` | [MDN](https://mdn.dev/CSS/max-width) | | --border | `string` | [MDN](https://mdn.dev/CSS/border) | | --status-border | `string` | | | --gap | `string` | [MDN](https://mdn.dev/CSS/gap) | | --status-color | `string` | | | --animation-duration | `string` | Duration of notification open/close animations [MDN](https://mdn.dev/CSS/animation-duration) | ## nve-notification-group Displays real time updates without interrupting the user's workflow to communicate an important message or status. ### Import ```javascript import '@nvidia-elements/core/notification/define.js'; ``` ### Slots | name | value | description | | ---- | ----- | ----------- | | (default) | `string` | default slot for `nve-notification` | ### Properties / Attributes | property (attribute) | value | description | | -------------------- | ----- | ----------- | | anchor | `string \| HTMLElement` | Provides the element that the popover should position relative to. Anchor can accept a idref string within the same render root or a HTMLElement DOM reference. | | position | `'center' \| 'top' \| 'bottom' \| 'left' \| 'right'` | Determines the position of an element along both inline and block axis. [MDN](https://mdn.dev/CSS/CSS_grid_layout/Box_alignment_in_grid_layout#the_two_axes_of_a_grid_layout) - `center` Centers the popover directly over the anchor element. - `top` Positions the popover above the anchor element. - `bottom` Positions the popover below the anchor element. - `left` Positions the popover to the left side of the anchor element. - `right` Positions the popover to the right side of the anchor element. | | alignment | `'start' \| 'end' \| 'center'` | Determines the alignment of the popover relative to the provided anchor element. - `start` Aligns the popover to the beginning edge of the anchor for left or top alignment. - `end` Aligns the popover to the ending edge of the anchor for right or bottom alignment. - `center` Centers the popover along the anchor's edge for balanced positioning. | | typeNativePopoverController | | | ### CSS Properties | name | value | description | | ---- | ----- | ----------- | | --box-shadow | `string` | [MDN](https://mdn.dev/CSS/box-shadow) | | --animation-duration | `string` | Duration of notification group open/close animations [MDN](https://mdn.dev/CSS/animation-duration) | ## nve-page Provide a consistent page structure across the applications, ensuring a seamless user experience. ### Example ```html NV

Infrastructure

Link 1 Link 2 EL
panel

main

page content

``` ### Import ```javascript import '@nvidia-elements/core/page/define.js'; ``` ### Slots | name | value | description | | ---- | ----- | ----------- | | (default) | `string` | The central content area of the page, where the primary focus of the user's attention should be. | | header | `string` | The topmost section of the page, typically containing navigation, branding, or other global elements. | | subheader | `string` | A secondary section below the header, often used for breadcrumbs, filters, or other contextual information. | | left-aside | `string` | A narrow section on the left side of the page, commonly used for navigation, filters, or other secondary content. | | left | `string` | The main content area on the left side of the page, typically containing primary navigation or features. | | bottom | `string` | A section for extra tooling outputs such as console outputs. | | right | `string` | The main content area on the right side of the page, typically containing secondary navigation or features. | | right-aside | `string` | A narrow section on the right side of the page, commonly used for navigation, filters, or other secondary content. | | subfooter | `string` | A secondary section below the main content area, often used for more information or calls to action. | | footer | `string` | The bottommost section of the page, typically containing global elements, such as copyright information. | ### Properties / Attributes | property (attribute) | value | description | | -------------------- | ----- | ----------- | | documentScroll (document-scroll) | `boolean` | Enables the page to use the document content scroll rather than its internal fixed scroll. | ### CSS Properties | name | value | description | | ---- | ----- | ----------- | | --padding | `string` | [MDN](https://mdn.dev/CSS/padding) | | --background | `string` | [MDN](https://mdn.dev/CSS/background) | | --color | `string` | [MDN](https://mdn.dev/CSS/color) | | --border | `string` | [MDN](https://mdn.dev/CSS/border) | | --border-radius | `string` | [MDN](https://mdn.dev/CSS/border-radius) | | --box-shadow | `string` | [MDN](https://mdn.dev/CSS/box-shadow) | | --min-height | `string` | [MDN](https://mdn.dev/CSS/min-height) | ## nve-page-header An element that appears across the top of all pages containing the application name and primary navigation. ### Example ```html NV

Infrastructure

Link 1 Link 2 EL
``` ### Import ```javascript import '@nvidia-elements/core/page-header/define.js'; ``` ### Slots | name | value | description | | ---- | ----- | ----------- | | (default) | `string` | The default content slot | | prefix | `string` | Content displayed at the start of the header | | suffix | `string` | Content displayed at the end of the header | ### CSS Properties | name | value | description | | ---- | ----- | ----------- | | --background | `string` | Background color of the header [MDN](https://mdn.dev/CSS/background) | | --padding | `string` | Padding inside the header [MDN](https://mdn.dev/CSS/padding) | | --border-bottom | `string` | Border below the header [MDN](https://mdn.dev/CSS/border-bottom) | | --gap | `string` | Gap between the prefix, default, and suffix slots [MDN](https://mdn.dev/CSS/gap) | | --margin-inline | `string` | left and right margin applied to the default content slot | ## nve-page-loader Page Loader is a full-screen version of the `progress-ring` component, for use when the page should remain unusable as the loader displays. ### Example ```html ``` ### Import ```javascript import '@nvidia-elements/core/page-loader/define.js'; ``` ### Slots | name | value | description | | ---- | ----- | ----------- | | (default) | `string` | default slot for content | ### CSS Properties | name | value | description | | ---- | ----- | ----------- | | --gap | `string` | [MDN](https://mdn.dev/CSS/gap) | | --animation-duration | `string` | Duration of page loader open/close animations [MDN](https://mdn.dev/CSS/animation-duration) | ## nve-page-panel Child panel for embedded panels within the page component. Typically used for left/right/bottom page slot positions. ### Import ```javascript import '@nvidia-elements/core/page/define.js'; ``` ### Slots | name | value | description | | ---- | ----- | ----------- | | (default) | `string` | default content slot | | actions | `string` | slot for action / dismiss buttons | ### Properties / Attributes | property (attribute) | value | description | | -------------------- | ----- | ----------- | | size | `'sm' \| 'md' \| 'lg' \| "default"` | Controls the visual scale of an element to match its importance and available space. - `sm` Compact size for dense layouts or secondary elements with less visual prominence. - `md` Standard size that works well in most contexts and provides balanced visibility. - `lg` Larger size for emphasizing important elements or improving touch targets in spacious layouts. | | i18n | | Enables updating internal string values for internationalization. | ### Events | name | value | description | | ---- | ----- | ----------- | | open | `CustomEvent` | | | close | `CustomEvent` | | ### Invoker Commands | name | value | description | | ---- | ----- | ----------- | | --open | `CommandEvent` | use to open the panel | | --close | `CommandEvent` | use to close the panel | | --toggle | `CommandEvent` | use to toggle the panel | ### CSS Properties | name | value | description | | ---- | ----- | ----------- | | --background | `string` | [MDN](https://mdn.dev/CSS/background) | | --border | `string` | [MDN](https://mdn.dev/CSS/border) | | --color | `string` | [MDN](https://mdn.dev/CSS/color) | | --gap | `string` | [MDN](https://mdn.dev/CSS/gap) | | --padding | `string` | [MDN](https://mdn.dev/CSS/padding) | | --height | `string` | [MDN](https://mdn.dev/CSS/height) | | --width | `string` | [MDN](https://mdn.dev/CSS/width) | | --max-width | `string` | [MDN](https://mdn.dev/CSS/max-width) | | --max-height | `string` | [MDN](https://mdn.dev/CSS/max-height) | | --animation-duration | `string` | Duration of panel open/close animations [MDN](https://mdn.dev/CSS/animation-duration) | ## nve-page-panel-content Contains the scrollable main body content within a page panel region. ### Import ```javascript import '@nvidia-elements/core/page/define.js'; ``` ### Slots | name | value | description | | ---- | ----- | ----------- | | (default) | `string` | default slot for the page-panel content | ### CSS Properties | name | value | description | | ---- | ----- | ----------- | | --padding | `string` | [MDN](https://mdn.dev/CSS/padding) | | --gap | `string` | [MDN](https://mdn.dev/CSS/gap) | | --width | `string` | [MDN](https://mdn.dev/CSS/width) | ## nve-page-panel-footer Provides a fixed action area at the bottom of a page panel for persistent controls or status information. ### Import ```javascript import '@nvidia-elements/core/page/define.js'; ``` ### Slots | name | value | description | | ---- | ----- | ----------- | | (default) | `string` | default slot for the page-panel footer | ### Properties / Attributes | property (attribute) | value | description | | -------------------- | ----- | ----------- | | slot | `string` | | ### CSS Properties | name | value | description | | ---- | ----- | ----------- | | --border-top | `string` | [MDN](https://mdn.dev/CSS/border-top) | | --padding | `string` | [MDN](https://mdn.dev/CSS/padding) | | --gap | `string` | [MDN](https://mdn.dev/CSS/gap) | | --min-height | `string` | [MDN](https://mdn.dev/CSS/min-height) | ## nve-page-panel-header Displays the title and contextual controls at the top of a page panel to identify its purpose. ### Import ```javascript import '@nvidia-elements/core/page/define.js'; ``` ### Slots | name | value | description | | ---- | ----- | ----------- | | (default) | `string` | default slot for the page panel header | ### Properties / Attributes | property (attribute) | value | description | | -------------------- | ----- | ----------- | | slot | `string` | | ### CSS Properties | name | value | description | | ---- | ----- | ----------- | | --border-bottom | `string` | [MDN](https://mdn.dev/CSS/border-bottom) | | --min-height | `string` | [MDN](https://mdn.dev/CSS/min-height) | | --padding | `string` | [MDN](https://mdn.dev/CSS/padding) | ## nve-pagination Pagination is a control that enables users to navigate through pages of content. ### Example ```html ``` ### Import ```javascript import '@nvidia-elements/core/pagination/define.js'; ``` ### Slots | name | value | description | | ---- | ----- | ----------- | | (default) | `string` | default slot for content | | suffix-label | `string` | slot for overriding the "n of total" label when total is an approximation | ### Properties / Attributes | property (attribute) | value | description | | -------------------- | ----- | ----------- | | step | `number` | The number of items per page. | | stepSizes | `array` | The array of custom step-size. | | items | `number` | The total number of items. | | skippable | `boolean` | Whether the pagination is skippable to start/end. | | disableStep (disable-step) | `boolean` | Whether the step selector has a disabled state. | | container | `'flat' \| 'inline' \| "default"` | Demonstrates different container styles to accommodate visual weight and context. - `flat` Element has white space bounds but reduced visual container. - `inline` Element container reduces to fit within inline content such as a block of text. | | i18n | | Enables updating internal string values for internationalization. | | value | `number` | Defines the value associated with the element's name when submitting the form data. The server receives this value in params when the form submits through this button. [MDN](https://mdn.dev/HTML/Element/input#value) | ### Events | name | value | description | | ---- | ----- | ----------- | | step-change | `CustomEvent` | | | last-page | `CustomEvent` | Dispatched when the last page is active | | first-page | `CustomEvent` | Dispatched when the first page is active | | input | `CustomEvent` | Dispatched when the value (page) has changed | | change | `CustomEvent` | Dispatched when the value (page) has changed | ### CSS Properties | name | value | description | | ---- | ----- | ----------- | | --background | `string` | [MDN](https://mdn.dev/CSS/background) | | --font-size | `string` | [MDN](https://mdn.dev/CSS/font-size) | | --width | `string` | [MDN](https://mdn.dev/CSS/width) | ## nve-panel Panel is inline container for content that couples to the content on the page (details, extra actions/options). Or [Drawer](./docs/elements/drawer/) is out of context of the rest of the page (notifications, navigations, settings). ### Example ```html
Title

RainbowBridge/08-18-2021AM/A2A

2021-08-18

Indexed

Kenjiro Ono

Kenichi Yoshii

Experiment 12345
``` ### Import ```javascript import '@nvidia-elements/core/panel/define.js'; ``` ### Slots | name | value | description | | ---- | ----- | ----------- | | (default) | `string` | This is a default/unnamed slot for panel content | | header | `string` | header element (Use `panel-header` or custom content) | | content | `string` | content element (Use `panel-content` or custom content) | | footer | `string` | footer element (Use `panel-footer` or custom content) | ### Properties / Attributes | property (attribute) | value | description | | -------------------- | ----- | ----------- | | expanded | `boolean` | Indicates whether collapsible content is currently visible or hidden from the user. [MDN](https://mdn.dev/ARIA/Attributes/aria-expanded) - `true` The associated content expands and becomes visible to the user. - `false` The associated content collapses and hides from the user. | | closable | `boolean` | Indicates whether the user can dismiss or close the element. - `true` The element displays a close control and the user can dismiss it. - `false` The user cannot close the element and must dismiss it programmatically. | | behaviorExpand (behavior-expand) | `boolean` | Determines whether the panel should handle auto-closing behavior vs. defaults to off. | | side | `'left' \| 'right'` | Sets the proper collapse icon and collapse animation, based on which side of the page the panel occupies. | | i18n | | Enables updating internal string values for internationalization. | ### Events | name | value | description | | ---- | ----- | ----------- | | open | `CustomEvent` | Dispatched when the panel opens. | | close | `CustomEvent` | Dispatched when the panel closes. | ### CSS Properties | name | value | description | | ---- | ----- | ----------- | | --background | `string` | [MDN](https://mdn.dev/CSS/background) | | --color | `string` | [MDN](https://mdn.dev/CSS/color) | | --box-shadow | `string` | [MDN](https://mdn.dev/CSS/box-shadow) | | --panel-button-border-radius | `string` | Border radius of the panel expand/collapse button | ## nve-panel-content Contains the main body content within a panel, providing a structured region for detailed information. ### Example ```html
Title

RainbowBridge/08-18-2021AM/A2A

2021-08-18

Indexed

Kenjiro Ono

Kenichi Yoshii

Experiment 12345
``` ### Import ```javascript import '@nvidia-elements/core/panel/define.js'; ``` ### Slots | name | value | description | | ---- | ----- | ----------- | | (default) | `string` | This is a default/unnamed slot for panel content | ### CSS Properties | name | value | description | | ---- | ----- | ----------- | | --padding | `string` | [MDN](https://mdn.dev/CSS/padding) | ## nve-panel-footer Provides a designated area at the bottom of a panel for actions or supplementary controls. ### Example ```html
Title

RainbowBridge/08-18-2021AM/A2A

2021-08-18

Indexed

Kenjiro Ono

Kenichi Yoshii

Experiment 12345
``` ### Import ```javascript import '@nvidia-elements/core/panel/define.js'; ``` ### Slots | name | value | description | | ---- | ----- | ----------- | | (default) | `string` | This is a default/unnamed slot for panel footer content | ### CSS Properties | name | value | description | | ---- | ----- | ----------- | | --padding | `string` | [MDN](https://mdn.dev/CSS/padding) | | --border-top | `string` | [MDN](https://mdn.dev/CSS/border-top) | | --gap | `string` | [MDN](https://mdn.dev/CSS/gap) | ## nve-password A password is a control that enables users to enter password text. ### Example ```html message ``` ### Import ```javascript import '@nvidia-elements/core/password/define.js'; ``` ### Slots | name | value | description | | ---- | ----- | ----------- | | (default) | `string` | Control input element | | label | `string` | Label element | ### Properties / Attributes | property (attribute) | value | description | | -------------------- | ----- | ----------- | | container | `'flat' \| "default"` | Demonstrates different container styles to accommodate visual weight and context. - `flat` Element has white space bounds but reduced visual container. | | status | `'warning' \| 'error' \| 'success' \| 'disabled'` | Communicates the intent and semantic meaning of an element to help users understand the outcome of their actions. - `warning` Indicates cautionary actions that require careful consideration before proceeding. - `success` Represents positive outcomes, confirmations, or constructive actions. | | layout | `\| 'vertical' \| 'vertical-inline' \| 'horizontal' \| 'horizontal-inline'` | Controls the directional arrangement and spacing behavior of the element's content. - `vertical` Arranges content in a vertical stack with block-level spacing. - `vertical-inline` Arranges content vertically with compact inline spacing for dense layouts. - `horizontal` Arranges content in a horizontal row with block-level spacing. - `horizontal-inline` Arranges content horizontally with compact inline spacing. | | fitText (fit-text) | `boolean` | Sets the input to match the width of the active text content of the control value. Only applicable to vertical input box type controls (input, select) | | fitContent (fit-content) | `boolean` | Sets the input to match native default content block | | i18n | | Enables updating internal string values for internationalization. | | prominence | `'muted'` | Controls the visual prominence to establish hierarchy and guide user attention. - `muted` Reduces visual weight for supporting content that should remain subtle and unobtrusive. | | nveControl | `string` | | | reset | | Resets control value to initial attribute value and clears any active validation rules. | | showPicker | | | ### Events | name | value | description | | ---- | ----- | ----------- | | reset | `CustomEvent` | | ### CSS Properties | name | value | description | | ---- | ----- | ----------- | | --padding | `string` | [MDN](https://mdn.dev/CSS/padding) | | --font-size | `string` | [MDN](https://mdn.dev/CSS/font-size) | | --height | `string` | [MDN](https://mdn.dev/CSS/height) | | --background | `string` | [MDN](https://mdn.dev/CSS/background) | | --border-radius | `string` | [MDN](https://mdn.dev/CSS/border-radius) | | --border | `string` | [MDN](https://mdn.dev/CSS/border) | | --cursor | `string` | [MDN](https://mdn.dev/CSS/cursor) | | --accent-color | `string` | [MDN](https://mdn.dev/CSS/accent-color) | | --color | `string` | [MDN](https://mdn.dev/CSS/color) | | --label-color | `string` | [MDN](https://mdn.dev/CSS/color) | | --label-width | `string` | [MDN](https://mdn.dev/CSS/width) | | --label-font-weight | `string` | [MDN](https://mdn.dev/CSS/font-weight) | | --label-font-size | `string` | [MDN](https://mdn.dev/CSS/font-size) | | --control-width | `string` | [MDN](https://mdn.dev/CSS/width) | | --control-height | `string` | [MDN](https://mdn.dev/CSS/height) | ## nve-preferences-input A preferences input is a widget for controlling apperance. Stylesheets register to the preferences input by including a css-property, see Standard for an example. ### Example ```html ``` ### Import ```javascript import '@nvidia-elements/core/preferences-input/define.js'; ``` ### Properties / Attributes | property (attribute) | value | description | | -------------------- | ----- | ----------- | | i18n | | Enables updating internal string values for internationalization. | | value | `object` | Defines the value associated with the element's name when submitting the form data. The server receives this value in params when the form submits through this button. [MDN](https://mdn.dev/HTML/Element/input#value) | ### Events | name | value | description | | ---- | ----- | ----------- | | input | `CustomEvent` | Dispatched when the value has changed | | change | `CustomEvent` | Dispatched when the value has changed | ### CSS Properties | name | value | description | | ---- | ----- | ----------- | | --color | `string` | [MDN](https://mdn.dev/CSS/color) | | --width | `string` | [MDN](https://mdn.dev/CSS/width) | ## nve-progress-bar A progress bar is a visual indicator of the status of a running task. Under the hood, the component uses the native HTML `progress` element to achieve proper a11y concerns. ### Example ```html ``` ### Import ```javascript import '@nvidia-elements/core/progress-bar/define.js'; ``` ### Properties / Attributes | property (attribute) | value | description | | -------------------- | ----- | ----------- | | value | `number \| "default"` | Defines the value associated with the element's name when submitting the form data. The server receives this value in params when the form submits through this button. [MDN](https://mdn.dev/HTML/Element/input#value) | | max | `number` | The `max` property sets the highest value that `value` scales to. | | status | `'accent' \| 'warning' \| 'success' \| 'danger'` | Communicates the intent and semantic meaning of an element to help users understand the outcome of their actions. - `accent` Highlights important actions or draws attention to primary interactive elements. - `warning` Indicates cautionary actions that require careful consideration before proceeding. - `success` Represents positive outcomes, confirmations, or constructive actions. - `danger` Signals destructive or irreversible actions that need extra attention and confirmation. | ### CSS Properties | name | value | description | | ---- | ----- | ----------- | | --height | `string` | [MDN](https://mdn.dev/CSS/height) | | --opacity | `string` | [MDN](https://mdn.dev/CSS/opacity) | | --background | `string` | [MDN](https://mdn.dev/CSS/background) | | --accent-color | `string` | [MDN](https://mdn.dev/CSS/accent-color) | | --indeterminate-gradient | `string` | Gradient used for indeterminate state animation | ## nve-progress-ring The `progress-ring` component shows the status of a pending task. It also serves the basis of the page loading element. ### Example ```html
``` ### Import ```javascript import '@nvidia-elements/core/progress-ring/define.js'; ``` ### Slots | name | value | description | | ---- | ----- | ----------- | | (default) | `string` | Content to display in the ring center. Defaults to a status icon. | ### Properties / Attributes | property (attribute) | value | description | | -------------------- | ----- | ----------- | | value | `number \| "default"` | Defines the value associated with the element's name when submitting the form data. The server receives this value in params when the form submits through this button. [MDN](https://mdn.dev/HTML/Element/input#value) | | max | `number` | The `max` value of the progress ring that the `value` is proportionally scaled to. | | status | `'accent' \| 'warning' \| 'success' \| 'danger' \| 'neutral' \| "default"` | Communicates the intent and semantic meaning of an element to help users understand the outcome of their actions. - `accent` Highlights important actions or draws attention to primary interactive elements. - `warning` Indicates cautionary actions that require careful consideration before proceeding. - `success` Represents positive outcomes, confirmations, or constructive actions. - `danger` Signals destructive or irreversible actions that need extra attention and confirmation. | | size | `'sm' \| 'md' \| 'lg' \| 'xxs' \| 'xs' \| 'xl' \| "default"` | Controls the visual scale of an element to match its importance and available space. - `sm` Compact size for dense layouts or secondary elements with less visual prominence. - `md` Standard size that works well in most contexts and provides balanced visibility. - `lg` Larger size for emphasizing important elements or improving touch targets in spacious layouts. | | i18n | | Enables updating internal string values for internationalization. | ### CSS Properties | name | value | description | | ---- | ----- | ----------- | | --background-color | `string` | | | --ring-color | `string` | | | --ring-background-opacity | `string` | | | --ring-width | `string` | | | --width | `string` | [MDN](https://mdn.dev/CSS/width) | | --height | `string` | [MDN](https://mdn.dev/CSS/height) | | --animation-duration | `string` | [MDN](https://mdn.dev/CSS/animation-duration) | | --color | `string` | [MDN](https://mdn.dev/CSS/color) | ## nve-progressive-filter-chip A filter chip is a control that enables users to select many options from a set of choices. ### Example ```html ``` ### Import ```javascript import '@nvidia-elements/core/progressive-filter-chip/define.js'; ``` ### Slots | name | value | description | | ---- | ----- | ----------- | | (default) | `string` | default slot for content | ### Properties / Attributes | property (attribute) | value | description | | -------------------- | ----- | ----------- | | closable | `boolean` | Indicates whether the user can dismiss or close the element. - `true` The element displays a close control and the user can dismiss it. - `false` The user cannot close the element and must dismiss it programmatically. | | i18n | | Enables updating internal string values for internationalization. | ### Events | name | value | description | | ---- | ----- | ----------- | | close | `CustomEvent` | Dispatched when the filter chip closes. | ### CSS Properties | name | value | description | | ---- | ----- | ----------- | | --gap | `string` | [MDN](https://mdn.dev/CSS/gap) | | --border-radius | `string` | [MDN](https://mdn.dev/CSS/border-radius) | | --border | `string` | [MDN](https://mdn.dev/CSS/border) | | --background | `string` | [MDN](https://mdn.dev/CSS/background) | | --font-weight | `string` | [MDN](https://mdn.dev/CSS/font-weight) | | --padding | `string` | [MDN](https://mdn.dev/CSS/padding) | | --width | `string` | [MDN](https://mdn.dev/CSS/width) | ## nve-pulse Pulse component signals attention for a particular area of a UI. This helps with tutorial/getting started guides for new users. ### Example ```html
``` ### Import ```javascript import '@nvidia-elements/core/pulse/define.js'; ``` ### Properties / Attributes | property (attribute) | value | description | | -------------------- | ----- | ----------- | | size | `'sm' \| 'md' \| 'lg' \| 'xs' \| "default"` | Controls the visual scale of an element to match its importance and available space. - `sm` Compact size for dense layouts or secondary elements with less visual prominence. - `md` Standard size that works well in most contexts and provides balanced visibility. - `lg` Larger size for emphasizing important elements or improving touch targets in spacious layouts. | | status | `'accent' \| 'warning' \| 'danger' \| "default"` | Communicates the intent and semantic meaning of an element to help users understand the outcome of their actions. - `accent` Highlights important actions or draws attention to primary interactive elements. - `warning` Indicates cautionary actions that require careful consideration before proceeding. - `danger` Signals destructive or irreversible actions that need extra attention and confirmation. | ### CSS Properties | name | value | description | | ---- | ----- | ----------- | | --background | `string` | [MDN](https://mdn.dev/CSS/background) | | --width | `string` | [MDN](https://mdn.dev/CSS/width) | | --height | `string` | [MDN](https://mdn.dev/CSS/height) | | --animation-duration | `string` | [MDN](https://mdn.dev/CSS/animation-duration) | ## nve-radio A radio button is a control that enables users to choose one option from a list of mutually exclusive options. ### Example ```html message ``` ### Import ```javascript import '@nvidia-elements/core/radio/define.js'; ``` ### Slots | name | value | description | | ---- | ----- | ----------- | | (default) | `string` | Control input element | | label | `string` | Label element | ### Properties / Attributes | property (attribute) | value | description | | -------------------- | ----- | ----------- | | nveControl | `string` | | | status | `'warning' \| 'error' \| 'success' \| 'disabled'` | Communicates the intent and semantic meaning of an element to help users understand the outcome of their actions. - `warning` Indicates cautionary actions that require careful consideration before proceeding. - `success` Represents positive outcomes, confirmations, or constructive actions. | | layout | `\| 'vertical' \| 'vertical-inline' \| 'horizontal' \| 'horizontal-inline'` | Controls the directional arrangement and spacing behavior of the element's content. - `vertical` Arranges content in a vertical stack with block-level spacing. - `vertical-inline` Arranges content vertically with compact inline spacing for dense layouts. - `horizontal` Arranges content in a horizontal row with block-level spacing. - `horizontal-inline` Arranges content horizontally with compact inline spacing. | | i18n | | Enables updating internal string values for internationalization. | | prominence | `'muted'` | Controls the visual prominence to establish hierarchy and guide user attention. - `muted` Reduces visual weight for supporting content that should remain subtle and unobtrusive. | | reset | | Resets control value to initial attribute value and clears any active validation rules. | | showPicker | | | ### Events | name | value | description | | ---- | ----- | ----------- | | reset | `CustomEvent` | | ### CSS Properties | name | value | description | | ---- | ----- | ----------- | | --cursor | `string` | [MDN](https://mdn.dev/CSS/cursor) | | --width | `string` | [MDN](https://mdn.dev/CSS/width) | | --height | `string` | [MDN](https://mdn.dev/CSS/height) | | --border-width | `string` | [MDN](https://mdn.dev/CSS/border-width) | | --border-radius | `string` | [MDN](https://mdn.dev/CSS/border-radius) | | --border-color | `string` | [MDN](https://mdn.dev/CSS/border-color) | | --radio-color | `string` | | | --background | `string` | [MDN](https://mdn.dev/CSS/background) | | --accent-color | `string` | [MDN](https://mdn.dev/CSS/accent-color) | | --color | `string` | [MDN](https://mdn.dev/CSS/color) | | --label-color | `string` | [MDN](https://mdn.dev/CSS/color) | | --label-width | `string` | [MDN](https://mdn.dev/CSS/width) | | --label-font-weight | `string` | [MDN](https://mdn.dev/CSS/font-weight) | | --label-font-size | `string` | [MDN](https://mdn.dev/CSS/font-size) | | --control-width | `string` | [MDN](https://mdn.dev/CSS/width) | | --control-height | `string` | [MDN](https://mdn.dev/CSS/height) | ## nve-radio-group Groups related radio buttons together with a shared label and validation messaging for single-select form inputs. ### Import ```javascript import '@nvidia-elements/core/radio/define.js'; ``` ### Slots | name | value | description | | ---- | ----- | ----------- | | (default) | `string` | Control input elements | ### Properties / Attributes | property (attribute) | value | description | | -------------------- | ----- | ----------- | | layout | `\| 'vertical' \| 'vertical-inline' \| 'horizontal' \| 'horizontal-inline'` | Controls the directional arrangement and spacing behavior of the element's content. - `vertical` Arranges content in a vertical stack with block-level spacing. - `vertical-inline` Arranges content vertically with compact inline spacing for dense layouts. - `horizontal` Arranges content in a horizontal row with block-level spacing. - `horizontal-inline` Arranges content horizontally with compact inline spacing. | | prominence | `'muted'` | Controls the visual prominence to establish hierarchy and guide user attention. - `muted` Reduces visual weight for supporting content that should remain subtle and unobtrusive. | ### CSS Properties | name | value | description | | ---- | ----- | ----------- | | --color | `string` | [MDN](https://mdn.dev/CSS/color) | | --label-color | `string` | [MDN](https://mdn.dev/CSS/color) | | --label-text-transform | `string` | [MDN](https://mdn.dev/CSS/text-transform) | | --label-font-weight | `string` | [MDN](https://mdn.dev/CSS/font-weight) | | --label-font-size | `string` | [MDN](https://mdn.dev/CSS/font-size) | ## nve-range A range slider is a control that enables users to choose a value from a continuous range of values. ### Example ```html message ``` ### Import ```javascript import '@nvidia-elements/core/range/define.js'; ``` ### Slots | name | value | description | | ---- | ----- | ----------- | | (default) | `string` | Control input element | | label | `string` | Label element | ### Properties / Attributes | property (attribute) | value | description | | -------------------- | ----- | ----------- | | orientation | `'vertical' \| 'horizontal'` | Controls the directional flow of the element's layout and interaction pattern. - `vertical` Element orients vertically with top-to-bottom flow. - `horizontal` Element orients horizontally with left-to-right flow. | | status | `'warning' \| 'error' \| 'success' \| 'disabled'` | Communicates the intent and semantic meaning of an element to help users understand the outcome of their actions. - `warning` Indicates cautionary actions that require careful consideration before proceeding. - `success` Represents positive outcomes, confirmations, or constructive actions. | | layout | `\| 'vertical' \| 'vertical-inline' \| 'horizontal' \| 'horizontal-inline'` | Controls the directional arrangement and spacing behavior of the element's content. - `vertical` Arranges content in a vertical stack with block-level spacing. - `vertical-inline` Arranges content vertically with compact inline spacing for dense layouts. - `horizontal` Arranges content in a horizontal row with block-level spacing. - `horizontal-inline` Arranges content horizontally with compact inline spacing. | | fitText (fit-text) | `boolean` | Sets the input to match the width of the active text content of the control value. Only applicable to vertical input box type controls (input, select) | | fitContent (fit-content) | `boolean` | Sets the input to match native default content block | | i18n | | Enables updating internal string values for internationalization. | | prominence | `'muted'` | Controls the visual prominence to establish hierarchy and guide user attention. - `muted` Reduces visual weight for supporting content that should remain subtle and unobtrusive. | | nveControl | `string` | | | reset | | Resets control value to initial attribute value and clears any active validation rules. | | showPicker | | | ### Events | name | value | description | | ---- | ----- | ----------- | | reset | `CustomEvent` | | ### CSS Properties | name | value | description | | ---- | ----- | ----------- | | --background | `string` | [MDN](https://mdn.dev/CSS/background) | | --control-height | `string` | [MDN](https://mdn.dev/CSS/height) | | --cursor | `string` | [MDN](https://mdn.dev/CSS/cursor) | | --track-width | `string` | [MDN](https://mdn.dev/CSS/width) | | --track-height | `string` | [MDN](https://mdn.dev/CSS/height) | | --track-border-radius | `string` | [MDN](https://mdn.dev/CSS/border-radius) | | --track-background | `string` | [MDN](https://mdn.dev/CSS/background) | | --thumb-width | `string` | [MDN](https://mdn.dev/CSS/width) | | --thumb-height | `string` | [MDN](https://mdn.dev/CSS/height) | | --thumb-background | `string` | [MDN](https://mdn.dev/CSS/background) | | --thumb-border | `string` | [MDN](https://mdn.dev/CSS/border) | | --accent-color | `string` | [MDN](https://mdn.dev/CSS/accent-color) | | --color | `string` | [MDN](https://mdn.dev/CSS/color) | | --label-color | `string` | [MDN](https://mdn.dev/CSS/color) | | --label-width | `string` | [MDN](https://mdn.dev/CSS/width) | | --label-font-weight | `string` | [MDN](https://mdn.dev/CSS/font-weight) | | --label-font-size | `string` | [MDN](https://mdn.dev/CSS/font-size) | | --control-width | `string` | [MDN](https://mdn.dev/CSS/width) | ## nve-resize-handle A resize-handle slider is a control that enables users to resize views or panels vertically or horizontally. ### Example ```html ``` ### Import ```javascript import '@nvidia-elements/core/resize-handle/define.js'; ``` ### Properties / Attributes | property (attribute) | value | description | | -------------------- | ----- | ----------- | | orientation | `'horizontal' \| 'vertical' \| "default"` | Controls the directional flow of the element's layout and interaction pattern. - `horizontal` Element orients horizontally with left-to-right flow. - `vertical` Element orients vertically with top-to-bottom flow. | | min | `number` | Determines the min resize value. | | max | `number` | Determines the max resize value. | | step | `number` | Determines the value step change. | | i18n | | Enables updating internal string values for internationalization. | | value | | Defines the value associated with the element's name when submitting the form data. The server receives this value in params when the form submits through this button. [MDN](https://mdn.dev/HTML/Element/input#value) | ### Events | name | value | description | | ---- | ----- | ----------- | | toggle | `CustomEvent` | Dispatched when the resize handle is double clicked. | ### CSS Properties | name | value | description | | ---- | ----- | ----------- | | --background | `string` | [MDN](https://mdn.dev/CSS/background) | | --line-width | `string` | | | --target-size | `string` | | | --cursor | `string` | [MDN](https://mdn.dev/CSS/cursor) | ## nve-search A search is a control that enables users to enter text to search. ### Example ```html message ``` ### Import ```javascript import '@nvidia-elements/core/search/define.js'; ``` ### Slots | name | value | description | | ---- | ----- | ----------- | | (default) | `string` | Control input element | | label | `string` | Label element | ### Properties / Attributes | property (attribute) | value | description | | -------------------- | ----- | ----------- | | container | `'flat' \| "default"` | Demonstrates different container styles to accommodate visual weight and context. - `flat` Element has white space bounds but reduced visual container. | | rounded | `boolean` | Sets the rounded visual style of the input. | | status | `'warning' \| 'error' \| 'success' \| 'disabled'` | Communicates the intent and semantic meaning of an element to help users understand the outcome of their actions. - `warning` Indicates cautionary actions that require careful consideration before proceeding. - `success` Represents positive outcomes, confirmations, or constructive actions. | | layout | `\| 'vertical' \| 'vertical-inline' \| 'horizontal' \| 'horizontal-inline'` | Controls the directional arrangement and spacing behavior of the element's content. - `vertical` Arranges content in a vertical stack with block-level spacing. - `vertical-inline` Arranges content vertically with compact inline spacing for dense layouts. - `horizontal` Arranges content in a horizontal row with block-level spacing. - `horizontal-inline` Arranges content horizontally with compact inline spacing. | | fitText (fit-text) | `boolean` | Sets the input to match the width of the active text content of the control value. Only applicable to vertical input box type controls (input, select) | | fitContent (fit-content) | `boolean` | Sets the input to match native default content block | | i18n | | Enables updating internal string values for internationalization. | | prominence | `'muted'` | Controls the visual prominence to establish hierarchy and guide user attention. - `muted` Reduces visual weight for supporting content that should remain subtle and unobtrusive. | | nveControl | `string` | | | reset | | Resets control value to initial attribute value and clears any active validation rules. | | showPicker | | | ### Events | name | value | description | | ---- | ----- | ----------- | | reset | `CustomEvent` | | ### CSS Properties | name | value | description | | ---- | ----- | ----------- | | --padding | `string` | [MDN](https://mdn.dev/CSS/padding) | | --font-size | `string` | [MDN](https://mdn.dev/CSS/font-size) | | --height | `string` | [MDN](https://mdn.dev/CSS/height) | | --background | `string` | [MDN](https://mdn.dev/CSS/background) | | --border-radius | `string` | [MDN](https://mdn.dev/CSS/border-radius) | | --border | `string` | [MDN](https://mdn.dev/CSS/border) | | --cursor | `string` | [MDN](https://mdn.dev/CSS/cursor) | | --accent-color | `string` | [MDN](https://mdn.dev/CSS/accent-color) | | --color | `string` | [MDN](https://mdn.dev/CSS/color) | | --label-color | `string` | [MDN](https://mdn.dev/CSS/color) | | --label-width | `string` | [MDN](https://mdn.dev/CSS/width) | | --label-font-weight | `string` | [MDN](https://mdn.dev/CSS/font-weight) | | --label-font-size | `string` | [MDN](https://mdn.dev/CSS/font-size) | | --control-width | `string` | [MDN](https://mdn.dev/CSS/width) | | --control-height | `string` | [MDN](https://mdn.dev/CSS/height) | ## nve-select A select is a control that enables users to select an option from a list of options. ### Example ```html message ``` ### Import ```javascript import '@nvidia-elements/core/select/define.js'; ``` ### Slots | name | value | description | | ---- | ----- | ----------- | | (default) | `string` | Select input element | | label | `string` | Label element | ### Properties / Attributes | property (attribute) | value | description | | -------------------- | ----- | ----------- | | container | `'flat' \| 'inline' \| "default"` | Demonstrates different container styles to accommodate visual weight and context. - `flat` Element has white space bounds but reduced visual container. - `inline` Element container reduces to fit within inline content such as a block of text. | | i18n | | Enables updating internal string values for internationalization. | | status | `'warning' \| 'error' \| 'success' \| 'disabled'` | Communicates the intent and semantic meaning of an element to help users understand the outcome of their actions. - `warning` Indicates cautionary actions that require careful consideration before proceeding. - `success` Represents positive outcomes, confirmations, or constructive actions. | | layout | `\| 'vertical' \| 'vertical-inline' \| 'horizontal' \| 'horizontal-inline'` | Controls the directional arrangement and spacing behavior of the element's content. - `vertical` Arranges content in a vertical stack with block-level spacing. - `vertical-inline` Arranges content vertically with compact inline spacing for dense layouts. - `horizontal` Arranges content in a horizontal row with block-level spacing. - `horizontal-inline` Arranges content horizontally with compact inline spacing. | | fitText (fit-text) | `boolean` | Sets the input to match the width of the active text content of the control value. Only applicable to vertical input box type controls (input, select) | | fitContent (fit-content) | `boolean` | Sets the input to match native default content block | | prominence | `'muted'` | Controls the visual prominence to establish hierarchy and guide user attention. - `muted` Reduces visual weight for supporting content that should remain subtle and unobtrusive. | | nveControl | `string` | | | reset | | Resets control value to initial attribute value and clears any active validation rules. | | showPicker | | | ### Events | name | value | description | | ---- | ----- | ----------- | | reset | `CustomEvent` | | ### CSS Properties | name | value | description | | ---- | ----- | ----------- | | --padding | `string` | [MDN](https://mdn.dev/CSS/padding) | | --font-size | `string` | [MDN](https://mdn.dev/CSS/font-size) | | --height | `string` | [MDN](https://mdn.dev/CSS/height) | | --background | `string` | [MDN](https://mdn.dev/CSS/background) | | --color | `string` | [MDN](https://mdn.dev/CSS/color) | | --border-radius | `string` | [MDN](https://mdn.dev/CSS/border-radius) | | --border | `string` | [MDN](https://mdn.dev/CSS/border) | | --border-bottom | `string` | [MDN](https://mdn.dev/CSS/border-bottom) | | --cursor | `string` | [MDN](https://mdn.dev/CSS/cursor) | | --font-weight | `string` | [MDN](https://mdn.dev/CSS/font-weight) | | --text-align | `string` | [MDN](https://mdn.dev/CSS/text-align) | | --scroll-height | `string` | | | --width | `string` | [MDN](https://mdn.dev/CSS/width) | | --control-width | `string` | [MDN](https://mdn.dev/CSS/width) | | --max-width | `string` | [MDN](https://mdn.dev/CSS/max-width) | | --min-width | `string` | [MDN](https://mdn.dev/CSS/min-width) | | --box-shadow | `string` | [MDN](https://mdn.dev/CSS/box-shadow) | | --max-height | `string` | [MDN](https://mdn.dev/CSS/max-height) | | --text-transform | `string` | [MDN](https://mdn.dev/CSS/text-transform) | | --accent-color | `string` | [MDN](https://mdn.dev/CSS/accent-color) | | --label-color | `string` | [MDN](https://mdn.dev/CSS/color) | | --label-width | `string` | [MDN](https://mdn.dev/CSS/width) | | --label-font-weight | `string` | [MDN](https://mdn.dev/CSS/font-weight) | | --label-font-size | `string` | [MDN](https://mdn.dev/CSS/font-size) | | --control-height | `string` | [MDN](https://mdn.dev/CSS/height) | ## nve-skeleton A loading placeholder component that displays animated placeholder shapes while content loads. ### Example ```html
``` ### Import ```javascript import '@nvidia-elements/core/skeleton/define.js'; ``` ### Slots | name | value | description | | ---- | ----- | ----------- | | (default) | `string` | default content slot | ### Properties / Attributes | property (attribute) | value | description | | -------------------- | ----- | ----------- | | effect | `'shimmer' \| 'pulse'` | Visual animation style shown while content loads. | | shape | `'round' \| 'pill'` | Geometry of the placeholder — rounded corners or a full pill outline. | | hidden | `boolean` | Whether the skeleton hides its content | ### CSS Properties | name | value | description | | ---- | ----- | ----------- | | --background | `string` | [MDN](https://mdn.dev/CSS/background) | | --border-radius | `string` | [MDN](https://mdn.dev/CSS/border-radius) | | --min-height | `string` | [MDN](https://mdn.dev/CSS/min-height) | ## nve-sort-button A sort button is a control that enables users to sort a list of items in ascending or descending order. ### Example ```html ``` ### Import ```javascript import '@nvidia-elements/core/sort-button/define.js'; ``` ### Properties / Attributes | property (attribute) | value | description | | -------------------- | ----- | ----------- | | sort | `'ascending' \| 'descending' \| 'none'` | The current sort value, can be ascending, descending, or none. | | i18n | | Enables updating internal string values for internationalization. | | type | `'button' \| 'submit' \| 'reset'` | Defines the button behavior when associated within an element. https://mdn.dev/HTML/Element/button#attr-type | | pressed | `boolean` | Indicates the current state of a toggle button that switches on or off. [MDN](https://mdn.dev/ARIA/Attributes/aria-pressed) - `true` The button is in the pressed (on) state and the associated action or setting is active. - `false` The button is in the unpressed (off) state and the associated action or setting is inactive. | | expanded | `boolean` | Indicates whether collapsible content is currently visible or hidden from the user. [MDN](https://mdn.dev/ARIA/Attributes/aria-expanded) - `true` The associated content expands and becomes visible to the user. - `false` The associated content collapses and hides from the user. | | readOnly (readonly) | `boolean` | Indicates whether the user can change the element's value while it remains visible and focusable. [MDN](https://mdn.dev/HTML/Attributes/readonly) - `true` The element has a readonly state: the user cannot change its value, but can still focus and copy it. - `false` The element allows editing and the user can change its value through interaction. | | form | `HTMLFormElement \| null \| string` | Like input form, sets a button to submit a form outside its parent form. Returns a reference to the form element if available. https://mdn.dev/ElementInternals/form | | name | `string` | The name of the button, submitted as a pair with the button's value as part of the form data, when that button submits the form. https://mdn.dev/HTML/Element/button#attr-name | | value | `string` | Defines the value associated with the element's name when submitting the form data. The server receives this value in params when the form submits through this button. [MDN](https://mdn.dev/HTML/Element/input#value) | | disabled | `boolean` | This Boolean attribute prevents the user from interacting with the element: it cannot receive press or focus events. [MDN](https://mdn.dev/ARIA/Attributes/aria-disabled) - `true` The element has a disabled state and does not accept interaction. - `false` The element has an enabled state and accepts interaction. | | selected | `boolean` | Indicates whether an element currently holds selection within a multi-option selection group. [MDN](https://mdn.dev/ARIA/Attributes/aria-selected) - `true` The element holds selection and represents the user's current choice within the group. - `false` The element does not hold selection and the user can choose it. | | current | `'page' \| 'step'` | Indicates the element that represents the user's current location or position within a set. [MDN](https://mdn.dev/ARIA/Attributes/aria-current) - `page` Marks the current page within a set of navigation links. - `step` Marks the current step within a multi-step process or workflow. | | popoverTargetElement | `HTMLElement \| null` | Establishing a relationship between a popover and its invoker button. https://mdn.dev/HTMLInputElement/popoverTargetElement | | popovertarget | `string` | The idref of the element that receives the popover. https://mdn.dev/HTML/Reference/Elements/button#popovertarget | | popoverTargetAction (popovertargetaction) | `'show' \| 'hide' \| 'toggle'` | The popover target action to perform on the popover target element. https://mdn.dev/HTMLInputElement/popoverTargetAction | | commandForElement | `HTMLElement \| null` | The element that receives the command. https://mdn.dev/Invoker_Commands_API | | commandfor | `string \| null` | The idref of the element that receives the command. https://mdn.dev/Invoker_Commands_API | | command | `string` | The command to execute on the element. https://mdn.dev/Invoker_Commands_API | | interestForElement | `HTMLElement \| null` | The element that receives the interest. https://mdn.dev/HTMLAnchorElement/interestForElement | | interestfor | `string \| null` | The idref of the element that receives the interest. https://mdn.dev/HTMLAnchorElement/interestForElement | ### Events | name | value | description | | ---- | ----- | ----------- | | sort | `CustomEvent` | Dispatched on sort button click, returns the current sort value and the next sort value. | ### CSS Properties | name | value | description | | ---- | ----- | ----------- | | --width | `string` | [MDN](https://mdn.dev/CSS/width) | | --height | `string` | [MDN](https://mdn.dev/CSS/height) | | --border-radius | `string` | [MDN](https://mdn.dev/CSS/border-radius) | | --color | `string` | [MDN](https://mdn.dev/CSS/color) | ## nve-sparkline A sparkline is a compact, word-sized chart with typographic scale, for data-dense layouts (text, tables, cards, dashboards). ### Example ```html ``` ### Import ```javascript import '@nvidia-elements/core/sparkline/define.js'; ``` ### Properties / Attributes | property (attribute) | value | description | | -------------------- | ----- | ----------- | | data | `number[]` | Numeric values representing a data series. | | mark | `'line' \| 'area' \| 'gradient' \| 'column' \| 'winloss'` | Controls the visual representation of data points. - `line` Renders data as a connected line to emphasize macro trend. - `area` Renders data as a filled area beneath a line to emphasize magnitude over time. - `gradient` Renders a line with gradient color treatment to communicate value intensity across the series. - `column` Renders data as vertical columns for easy comparison of discrete values. - `winloss` Renders outcomes as binary or ternary bars to highlight wins, losses, and optional ties. | | interpolation | `'linear' \| 'smooth' \| 'step'` | Controls how the chart connects intermediate values between points in a data series. Defaults to `linear`. - `linear` Connects points with straight line segments. - `smooth` Connects points with smooth bezier curves. - `step` Connects points with horizontal and vertical step segments. | | status | `'scheduled' \| 'queued' \| 'pending' \| 'starting' \| 'running' \| 'restarting' \| 'stopping' \| 'finished' \| 'failed' \| 'unknown' \| 'ignored' \| 'accent' \| 'warning' \| 'success' \| 'danger' \| "default"` | Communicates the intent and semantic meaning of an element to help users understand the outcome of their actions. - `accent` Highlights important actions or draws attention to primary interactive elements. - `warning` Indicates cautionary actions that require careful consideration before proceeding. - `success` Represents positive outcomes, confirmations, or constructive actions. - `danger` Signals destructive or irreversible actions that need extra attention and confirmation. - `scheduled` Task has a scheduled future execution at a specific time. - `queued` Task is waiting in line to begin after other tasks complete. - `pending` Task is awaiting approval, user input, or external conditions before proceeding. - `starting` Task is initializing and preparing to begin active execution. - `running` Task is actively executing and making progress. - `restarting` Task restarts after an interruption or reset. - `stopping` Task is gracefully shutting down and completing cleanup operations. - `finished` Task has completed successfully with the expected outcome. - `failed` Task encountered an error and did not complete as intended. - `unknown` Task status remains unknown or unavailable. - `ignored` Task was intentionally skipped or excluded from execution. | | size | `'xs' \| 'sm' \| 'md' \| 'lg' \| 'xl' \| "default"` | Controls the visual scale of an element to match its importance and available space. - `xs` Extra small size for minimal elements or highly dense layouts. - `sm` Compact size for dense layouts or secondary elements with less visual prominence. - `md` Standard size that works well in most contexts and provides balanced visibility. - `lg` Larger size for emphasizing important elements or improving touch targets in spacious layouts. - `xl` Extra large size for emphasizing elements or sparse layouts. | | denoteFirst (denote-first) | `boolean` | Denotes the first data point by rendering a symbol at its position. | | denoteLast (denote-last) | `boolean` | Denotes the last data point by rendering a symbol at its position. | | denoteMin (denote-min) | `boolean` | Denotes all minimum-value data points by rendering symbols at their positions. | | denoteMax (denote-max) | `boolean` | Denotes all maximum-value data points by rendering symbols at their positions. | | intervalLength (interval-length) | `number` | Controls spacing between points in a line, in em (1 = chart height). Defaults to `0.6`. | | min | `number \| "default"` | Lower bound for the y-axis domain. When undefined, derives the bound from data. | | max | `number \| "default"` | Upper bound for the y-axis domain. When undefined, derives the bound from data. | ### CSS Properties | name | value | description | | ---- | ----- | ----------- | | --height | `string` | Height (defaults to 1em and scales with parent font-size). [MDN](https://mdn.dev/CSS/height) | | --line-color | `string` | | | --line-width | `string` | | | --fill-color | `string` | Color used by area and column marks. | | --gradient-max-color | `string` | | | --gradient-min-color | `string` | | | --zero-line-color | `string` | | | --zero-line-width | `string` | | | --win-color | `string` | Color used to represent positive values (wins). | | --loss-color | `string` | Color used to represent negative values (losses). | | --draw-color | `string` | Color used to represent zero values (draws / neutral outcomes). | | --symbol-color | `string` | | | --symbol-border-color | `string` | | | --symbol-border-width | `string` | | | --symbol-radius | `string` | symbol circle radius in SVG units. | ## nve-star-rating A star rating component lets users rate something using stars, providing a quick visual representation of feedback ### Example ```html message ``` ### Import ```javascript import '@nvidia-elements/core/star-rating/define.js'; ``` ### Slots | name | value | description | | ---- | ----- | ----------- | | (default) | `string` | Control input element | | label | `string` | Label element | ### Properties / Attributes | property (attribute) | value | description | | -------------------- | ----- | ----------- | | status | `'warning' \| 'error' \| 'success' \| 'disabled'` | Communicates the intent and semantic meaning of an element to help users understand the outcome of their actions. - `warning` Indicates cautionary actions that require careful consideration before proceeding. - `success` Represents positive outcomes, confirmations, or constructive actions. | | layout | `\| 'vertical' \| 'vertical-inline' \| 'horizontal' \| 'horizontal-inline'` | Controls the directional arrangement and spacing behavior of the element's content. - `vertical` Arranges content in a vertical stack with block-level spacing. - `vertical-inline` Arranges content vertically with compact inline spacing for dense layouts. - `horizontal` Arranges content in a horizontal row with block-level spacing. - `horizontal-inline` Arranges content horizontally with compact inline spacing. | | fitText (fit-text) | `boolean` | Sets the input to match the width of the active text content of the control value. Only applicable to vertical input box type controls (input, select) | | fitContent (fit-content) | `boolean` | Sets the input to match native default content block | | i18n | | Enables updating internal string values for internationalization. | | prominence | `'muted'` | Controls the visual prominence to establish hierarchy and guide user attention. - `muted` Reduces visual weight for supporting content that should remain subtle and unobtrusive. | | nveControl | `string` | | | reset | | Resets control value to initial attribute value and clears any active validation rules. | | showPicker | | | ### Events | name | value | description | | ---- | ----- | ----------- | | reset | `CustomEvent` | | ### CSS Properties | name | value | description | | ---- | ----- | ----------- | | --star-size | `string` | | | --color | `string` | [MDN](https://mdn.dev/CSS/color) | | --stroke-color | `string` | | | --width | `string` | [MDN](https://mdn.dev/CSS/width) | | --height | `string` | [MDN](https://mdn.dev/CSS/height) | | --cursor | `string` | [MDN](https://mdn.dev/CSS/cursor) | | --accent-color | `string` | [MDN](https://mdn.dev/CSS/accent-color) | | --label-color | `string` | [MDN](https://mdn.dev/CSS/color) | | --label-width | `string` | [MDN](https://mdn.dev/CSS/width) | | --label-font-weight | `string` | [MDN](https://mdn.dev/CSS/font-weight) | | --label-font-size | `string` | [MDN](https://mdn.dev/CSS/font-size) | | --control-width | `string` | [MDN](https://mdn.dev/CSS/width) | | --control-height | `string` | [MDN](https://mdn.dev/CSS/height) | ## nve-steps Steps enables a multi-step workflow allowing a user to complete a goal in a specific sequence. ### Example ```html Step 1 Step 2 Step 3 Step 4 Disabled ``` ### Import ```javascript import '@nvidia-elements/core/steps/define.js'; ``` ### Slots | name | value | description | | ---- | ----- | ----------- | | (default) | `string` | default slot for steps-item | ### Properties / Attributes | property (attribute) | value | description | | -------------------- | ----- | ----------- | | vertical | `boolean` | Determines whether the steps should display in a vertical layout vs. defaulting to horizontal. | | container | `'condensed' \| "default"` | Demonstrates different container styles to accommodate visual weight and context. - `flat` Element has white space bounds but reduced visual container. - `inline` Element container reduces to fit within inline content such as a block of text. - `inset` Element container optimizes for embedding or inset placement inside another containing element. - `full` Element container optimizes for filling its container bounds. | | behaviorSelect (behavior-select) | `boolean` | Determines whether the steps should handle selection behavior vs. defaults to off. | ### CSS Properties | name | value | description | | ---- | ----- | ----------- | | --gap | `string` | [MDN](https://mdn.dev/CSS/gap) | ## nve-steps-item Represents an individual step within a multi-step workflow, displaying its status and enabling navigation within the parent steps component. ### Example ```html Step 1 Step 2 Step 3 Step 4 Disabled ``` ### Import ```javascript import '@nvidia-elements/core/steps/define.js'; ``` ### Slots | name | value | description | | ---- | ----- | ----------- | | (default) | `string` | default slot for step text | | status-icon | `string` | custom slotted step icon | ### Properties / Attributes | property (attribute) | value | description | | -------------------- | ----- | ----------- | | selected | `boolean` | Indicates whether an element currently holds selection within a multi-option selection group. [MDN](https://mdn.dev/ARIA/Attributes/aria-selected) - `true` The element holds selection and represents the user's current choice within the group. - `false` The element does not hold selection and the user can choose it. | | status | `'accent' \| 'danger' \| 'success' \| 'pending' \| "default"` | Communicates the intent and semantic meaning of an element to help users understand the outcome of their actions. - `accent` Highlights important actions or draws attention to primary interactive elements. - `danger` Signals destructive or irreversible actions that need extra attention and confirmation. - `success` Represents positive outcomes, confirmations, or constructive actions. | | container | `'condensed' \| "default"` | Demonstrates different container styles to accommodate visual weight and context. - `flat` Element has white space bounds but reduced visual container. - `inline` Element container reduces to fit within inline content such as a block of text. - `inset` Element container optimizes for embedding or inset placement inside another containing element. - `full` Element container optimizes for filling its container bounds. | | type | `'button' \| 'submit' \| 'reset'` | Defines the button behavior when associated within an element. https://mdn.dev/HTML/Element/button#attr-type | | pressed | `boolean` | Indicates the current state of a toggle button that switches on or off. [MDN](https://mdn.dev/ARIA/Attributes/aria-pressed) - `true` The button is in the pressed (on) state and the associated action or setting is active. - `false` The button is in the unpressed (off) state and the associated action or setting is inactive. | | expanded | `boolean` | Indicates whether collapsible content is currently visible or hidden from the user. [MDN](https://mdn.dev/ARIA/Attributes/aria-expanded) - `true` The associated content expands and becomes visible to the user. - `false` The associated content collapses and hides from the user. | | readOnly (readonly) | `boolean` | Indicates whether the user can change the element's value while it remains visible and focusable. [MDN](https://mdn.dev/HTML/Attributes/readonly) - `true` The element has a readonly state: the user cannot change its value, but can still focus and copy it. - `false` The element allows editing and the user can change its value through interaction. | | form | `HTMLFormElement \| null \| string` | Like input form, sets a button to submit a form outside its parent form. Returns a reference to the form element if available. https://mdn.dev/ElementInternals/form | | name | `string` | The name of the button, submitted as a pair with the button's value as part of the form data, when that button submits the form. https://mdn.dev/HTML/Element/button#attr-name | | value | `string` | Defines the value associated with the element's name when submitting the form data. The server receives this value in params when the form submits through this button. [MDN](https://mdn.dev/HTML/Element/input#value) | | disabled | `boolean` | This Boolean attribute prevents the user from interacting with the element: it cannot receive press or focus events. [MDN](https://mdn.dev/ARIA/Attributes/aria-disabled) - `true` The element has a disabled state and does not accept interaction. - `false` The element has an enabled state and accepts interaction. | | current | `'page' \| 'step'` | Indicates the element that represents the user's current location or position within a set. [MDN](https://mdn.dev/ARIA/Attributes/aria-current) - `page` Marks the current page within a set of navigation links. - `step` Marks the current step within a multi-step process or workflow. | | popoverTargetElement | `HTMLElement \| null` | Establishing a relationship between a popover and its invoker button. https://mdn.dev/HTMLInputElement/popoverTargetElement | | popovertarget | `string` | The idref of the element that receives the popover. https://mdn.dev/HTML/Reference/Elements/button#popovertarget | | popoverTargetAction (popovertargetaction) | `'show' \| 'hide' \| 'toggle'` | The popover target action to perform on the popover target element. https://mdn.dev/HTMLInputElement/popoverTargetAction | | commandForElement | `HTMLElement \| null` | The element that receives the command. https://mdn.dev/Invoker_Commands_API | | commandfor | `string \| null` | The idref of the element that receives the command. https://mdn.dev/Invoker_Commands_API | | command | `string` | The command to execute on the element. https://mdn.dev/Invoker_Commands_API | | interestForElement | `HTMLElement \| null` | The element that receives the interest. https://mdn.dev/HTMLAnchorElement/interestForElement | | interestfor | `string \| null` | The idref of the element that receives the interest. https://mdn.dev/HTMLAnchorElement/interestForElement | ### CSS Properties | name | value | description | | ---- | ----- | ----------- | | --font-size | `string` | [MDN](https://mdn.dev/CSS/font-size) | | --border-top | `string` | [MDN](https://mdn.dev/CSS/border-top) | | --width | `string` | [MDN](https://mdn.dev/CSS/width) | | --font-weight | `string` | [MDN](https://mdn.dev/CSS/font-weight) | | --border-radius | `string` | [MDN](https://mdn.dev/CSS/border-radius) | | --color | `string` | [MDN](https://mdn.dev/CSS/color) | | --text-transform | `string` | [MDN](https://mdn.dev/CSS/text-transform) | ## nve-switch A switch is a control that enables users to switch between two mutually exclusive options (on or off, checked or unchecked) through a single click or tap. ### Example ```html ``` ### Import ```javascript import '@nvidia-elements/core/switch/define.js'; ``` ### Slots | name | value | description | | ---- | ----- | ----------- | | (default) | `string` | Control input element | | label | `string` | Label element | ### Properties / Attributes | property (attribute) | value | description | | -------------------- | ----- | ----------- | | nveControl | `string` | | | status | `'warning' \| 'error' \| 'success' \| 'disabled'` | Communicates the intent and semantic meaning of an element to help users understand the outcome of their actions. - `warning` Indicates cautionary actions that require careful consideration before proceeding. - `success` Represents positive outcomes, confirmations, or constructive actions. | | layout | `\| 'vertical' \| 'vertical-inline' \| 'horizontal' \| 'horizontal-inline'` | Controls the directional arrangement and spacing behavior of the element's content. - `vertical` Arranges content in a vertical stack with block-level spacing. - `vertical-inline` Arranges content vertically with compact inline spacing for dense layouts. - `horizontal` Arranges content in a horizontal row with block-level spacing. - `horizontal-inline` Arranges content horizontally with compact inline spacing. | | fitText (fit-text) | `boolean` | Sets the input to match the width of the active text content of the control value. Only applicable to vertical input box type controls (input, select) | | fitContent (fit-content) | `boolean` | Sets the input to match native default content block | | i18n | | Enables updating internal string values for internationalization. | | prominence | `'muted'` | Controls the visual prominence to establish hierarchy and guide user attention. - `muted` Reduces visual weight for supporting content that should remain subtle and unobtrusive. | | reset | | Resets control value to initial attribute value and clears any active validation rules. | | showPicker | | | ### Events | name | value | description | | ---- | ----- | ----------- | | reset | `CustomEvent` | | ### CSS Properties | name | value | description | | ---- | ----- | ----------- | | --cursor | `string` | [MDN](https://mdn.dev/CSS/cursor) | | --border-radius | `string` | [MDN](https://mdn.dev/CSS/border-radius) | | --border-width | `string` | [MDN](https://mdn.dev/CSS/border-width) | | --border | `string` | [MDN](https://mdn.dev/CSS/border) | | --background | `string` | [MDN](https://mdn.dev/CSS/background) | | --width | `string` | [MDN](https://mdn.dev/CSS/width) | | --height | `string` | [MDN](https://mdn.dev/CSS/height) | | --anchor-width | `string` | [MDN](https://mdn.dev/CSS/width) | | --anchor-height | `string` | [MDN](https://mdn.dev/CSS/height) | | --anchor-border-radius | `string` | [MDN](https://mdn.dev/CSS/border-radius) | | --anchor-background | `string` | [MDN](https://mdn.dev/CSS/background) | | --padding | `string` | [MDN](https://mdn.dev/CSS/padding) | | --accent-color | `string` | [MDN](https://mdn.dev/CSS/accent-color) | | --color | `string` | [MDN](https://mdn.dev/CSS/color) | | --label-color | `string` | [MDN](https://mdn.dev/CSS/color) | | --label-width | `string` | [MDN](https://mdn.dev/CSS/width) | | --label-font-weight | `string` | [MDN](https://mdn.dev/CSS/font-weight) | | --label-font-size | `string` | [MDN](https://mdn.dev/CSS/font-size) | | --control-width | `string` | [MDN](https://mdn.dev/CSS/width) | | --control-height | `string` | [MDN](https://mdn.dev/CSS/height) | ## nve-switch-group A switch group is a container for a group of switches. ### Import ```javascript import '@nvidia-elements/core/switch/define.js'; ``` ### Slots | name | value | description | | ---- | ----- | ----------- | | (default) | `string` | Control input elements | ### Properties / Attributes | property (attribute) | value | description | | -------------------- | ----- | ----------- | | layout | `\| 'vertical' \| 'vertical-inline' \| 'horizontal' \| 'horizontal-inline'` | Controls the directional arrangement and spacing behavior of the element's content. - `vertical` Arranges content in a vertical stack with block-level spacing. - `vertical-inline` Arranges content vertically with compact inline spacing for dense layouts. - `horizontal` Arranges content in a horizontal row with block-level spacing. - `horizontal-inline` Arranges content horizontally with compact inline spacing. | | prominence | `'muted'` | Controls the visual prominence to establish hierarchy and guide user attention. - `muted` Reduces visual weight for supporting content that should remain subtle and unobtrusive. | ### CSS Properties | name | value | description | | ---- | ----- | ----------- | | --color | `string` | [MDN](https://mdn.dev/CSS/color) | | --label-color | `string` | [MDN](https://mdn.dev/CSS/color) | | --label-text-transform | `string` | [MDN](https://mdn.dev/CSS/text-transform) | | --label-font-weight | `string` | [MDN](https://mdn.dev/CSS/font-weight) | | --label-font-size | `string` | [MDN](https://mdn.dev/CSS/font-size) | ## nve-tabs Tabs provide a selection UX, typically used for swapping content shown on a page, or within a navigation context. ### Example ```html Overview Details Settings
overview content
details content
settings content
``` ### Import ```javascript import '@nvidia-elements/core/tabs/define.js'; ``` ### Slots | name | value | description | | ---- | ----- | ----------- | | (default) | `string` | default slot for tab-item | ### Properties / Attributes | property (attribute) | value | description | | -------------------- | ----- | ----------- | | vertical | `boolean` | Determines whether the tabs should display in a vertical layout vs. defaulting to horizontal. | | borderless | `boolean` | Determines whether the tabs should display a border on selected items vs. defaults to show border. | | behaviorSelect (behavior-select) | `boolean` | Determines whether the tabs should handle selection behavior vs. defaults to off. | ### CSS Properties | name | value | description | | ---- | ----- | ----------- | | --gap | `string` | [MDN](https://mdn.dev/CSS/gap) | | --indicator-background | `string` | | | --indicator-border-radius | `string` | | | --indicator-height | `string` | | | --border-inset | `string` | | ## nve-tabs-group Coordinates tabs with matching panel content using Invoker Commands and slot-matched panels. ### Import ```javascript import '@nvidia-elements/core/tabs/define.js'; ``` ### Slots | name | value | description | | ---- | ----- | ----------- | | (default) | `string` | Default slot for a single nve-tabs element. Do not use behavior-select on nve-tabs when using this group. | | {value} | `string` | Named panel content where the slot name matches a nve-tabs-item value. | ### Properties / Attributes | property (attribute) | value | description | | -------------------- | ----- | ----------- | | alignment | `'top' \| 'start' \| 'end'` | Determines the alignment of the popover relative to the provided anchor element. | ### Events | name | value | description | | ---- | ----- | ----------- | | select | `CustomEvent` | Dispatched when the selected tab value changes after an invoker `--toggle` updates selection | ### Invoker Commands | name | value | description | | ---- | ----- | ----------- | | --toggle | `CommandEvent` | Select the matching tab and reveal the panel whose slot matches the invoker value. | ### CSS Properties | name | value | description | | ---- | ----- | ----------- | | --padding | `string` | [MDN](https://mdn.dev/CSS/padding) | ## nve-tabs-item Represents an individual tab within a tablist, providing a selectable button for switching between content views. ### Example ```html Overview Details Settings
overview content
details content
settings content
``` ### Import ```javascript import '@nvidia-elements/core/tabs/define.js'; ``` ### Slots | name | value | description | | ---- | ----- | ----------- | | (default) | `string` | default slot for content | ### Properties / Attributes | property (attribute) | value | description | | -------------------- | ----- | ----------- | | selected | `boolean` | Indicates whether an element currently holds selection within a multi-option selection group. [MDN](https://mdn.dev/ARIA/Attributes/aria-selected) - `true` The element holds selection and represents the user's current choice within the group. - `false` The element does not hold selection and the user can choose it. | | type | `'button' \| 'submit' \| 'reset'` | Defines the button behavior when associated within an element. https://mdn.dev/HTML/Element/button#attr-type | | pressed | `boolean` | Indicates the current state of a toggle button that switches on or off. [MDN](https://mdn.dev/ARIA/Attributes/aria-pressed) - `true` The button is in the pressed (on) state and the associated action or setting is active. - `false` The button is in the unpressed (off) state and the associated action or setting is inactive. | | expanded | `boolean` | Indicates whether collapsible content is currently visible or hidden from the user. [MDN](https://mdn.dev/ARIA/Attributes/aria-expanded) - `true` The associated content expands and becomes visible to the user. - `false` The associated content collapses and hides from the user. | | readOnly (readonly) | `boolean` | Indicates whether the user can change the element's value while it remains visible and focusable. [MDN](https://mdn.dev/HTML/Attributes/readonly) - `true` The element has a readonly state: the user cannot change its value, but can still focus and copy it. - `false` The element allows editing and the user can change its value through interaction. | | form | `HTMLFormElement \| null \| string` | Like input form, sets a button to submit a form outside its parent form. Returns a reference to the form element if available. https://mdn.dev/ElementInternals/form | | name | `string` | The name of the button, submitted as a pair with the button's value as part of the form data, when that button submits the form. https://mdn.dev/HTML/Element/button#attr-name | | value | `string` | Defines the value associated with the element's name when submitting the form data. The server receives this value in params when the form submits through this button. [MDN](https://mdn.dev/HTML/Element/input#value) | | disabled | `boolean` | This Boolean attribute prevents the user from interacting with the element: it cannot receive press or focus events. [MDN](https://mdn.dev/ARIA/Attributes/aria-disabled) - `true` The element has a disabled state and does not accept interaction. - `false` The element has an enabled state and accepts interaction. | | current | `'page' \| 'step'` | Indicates the element that represents the user's current location or position within a set. [MDN](https://mdn.dev/ARIA/Attributes/aria-current) - `page` Marks the current page within a set of navigation links. - `step` Marks the current step within a multi-step process or workflow. | | popoverTargetElement | `HTMLElement \| null` | Establishing a relationship between a popover and its invoker button. https://mdn.dev/HTMLInputElement/popoverTargetElement | | popovertarget | `string` | The idref of the element that receives the popover. https://mdn.dev/HTML/Reference/Elements/button#popovertarget | | popoverTargetAction (popovertargetaction) | `'show' \| 'hide' \| 'toggle'` | The popover target action to perform on the popover target element. https://mdn.dev/HTMLInputElement/popoverTargetAction | | commandForElement | `HTMLElement \| null` | The element that receives the command. https://mdn.dev/Invoker_Commands_API | | commandfor | `string \| null` | The idref of the element that receives the command. https://mdn.dev/Invoker_Commands_API | | command | `string` | The command to execute on the element. https://mdn.dev/Invoker_Commands_API | | interestForElement | `HTMLElement \| null` | The element that receives the interest. https://mdn.dev/HTMLAnchorElement/interestForElement | | interestfor | `string \| null` | The idref of the element that receives the interest. https://mdn.dev/HTMLAnchorElement/interestForElement | ### CSS Properties | name | value | description | | ---- | ----- | ----------- | | --font-size | `string` | [MDN](https://mdn.dev/CSS/font-size) | | --border-width | `string` | [MDN](https://mdn.dev/CSS/border-width) | | --border-height | `string` | | | --border-top | `string` | [MDN](https://mdn.dev/CSS/border-top) | | --border-background | `string` | | | --width | `string` | [MDN](https://mdn.dev/CSS/width) | | --padding | `string` | [MDN](https://mdn.dev/CSS/padding) | | --font-size | `string` | [MDN](https://mdn.dev/CSS/font-size) | | --font-weight | `string` | [MDN](https://mdn.dev/CSS/font-weight) | | --border-radius | `string` | [MDN](https://mdn.dev/CSS/border-radius) | | --color | `string` | [MDN](https://mdn.dev/CSS/color) | | --height | `string` | [MDN](https://mdn.dev/CSS/height) | | --cursor | `string` | [MDN](https://mdn.dev/CSS/cursor) | | --text-transform | `string` | [MDN](https://mdn.dev/CSS/text-transform) | ## nve-tag A interactive element that represents a category or group of content. Typically used to filter or organize content for one to many relations. ### Example ```html topic-tag ``` ### Import ```javascript import '@nvidia-elements/core/tag/define.js'; ``` ### Slots | name | value | description | | ---- | ----- | ----------- | | (default) | `string` | default slot for content | ### Properties / Attributes | property (attribute) | value | description | | -------------------- | ----- | ----------- | | closable | `boolean` | Indicates whether the user can dismiss or close the element. - `true` The element displays a close control and the user can dismiss it. - `false` The user cannot close the element and must dismiss it programmatically. | | color | `'red-cardinal' \| 'gray-slate' \| 'gray-denim' \| 'blue-indigo' \| 'blue-cobalt' \| 'blue-sky' \| 'teal-cyan' \| 'green-mint' \| 'teal-seafoam' \| 'green-grass' \| 'yellow-amber' \| 'orange-pumpkin' \| 'red-tomato' \| 'pink-magenta' \| 'purple-plum' \| 'purple-violet' \| 'purple-lavender' \| 'pink-rose' \| 'green-jade' \| 'lime-pear' \| 'yellow-nova' \| 'brand-green'` | Defines a base color from the theme color palette | | prominence | `'emphasis' \| "default"` | Controls the visual prominence to establish hierarchy and guide user attention. - `emphasis` Increases visual weight to draw attention and highlight important elements. | | i18n | | Enables updating internal string values for internationalization. | | type | `'button' \| 'submit' \| 'reset'` | Defines the button behavior when associated within an element. https://mdn.dev/HTML/Element/button#attr-type | | pressed | `boolean` | Indicates the current state of a toggle button that switches on or off. [MDN](https://mdn.dev/ARIA/Attributes/aria-pressed) - `true` The button is in the pressed (on) state and the associated action or setting is active. - `false` The button is in the unpressed (off) state and the associated action or setting is inactive. | | expanded | `boolean` | Indicates whether collapsible content is currently visible or hidden from the user. [MDN](https://mdn.dev/ARIA/Attributes/aria-expanded) - `true` The associated content expands and becomes visible to the user. - `false` The associated content collapses and hides from the user. | | readOnly (readonly) | `boolean` | Indicates whether the user can change the element's value while it remains visible and focusable. [MDN](https://mdn.dev/HTML/Attributes/readonly) - `true` The element has a readonly state: the user cannot change its value, but can still focus and copy it. - `false` The element allows editing and the user can change its value through interaction. | | form | `HTMLFormElement \| null \| string` | Like input form, sets a button to submit a form outside its parent form. Returns a reference to the form element if available. https://mdn.dev/ElementInternals/form | | name | `string` | The name of the button, submitted as a pair with the button's value as part of the form data, when that button submits the form. https://mdn.dev/HTML/Element/button#attr-name | | value | `string` | Defines the value associated with the element's name when submitting the form data. The server receives this value in params when the form submits through this button. [MDN](https://mdn.dev/HTML/Element/input#value) | | disabled | `boolean` | This Boolean attribute prevents the user from interacting with the element: it cannot receive press or focus events. [MDN](https://mdn.dev/ARIA/Attributes/aria-disabled) - `true` The element has a disabled state and does not accept interaction. - `false` The element has an enabled state and accepts interaction. | | selected | `boolean` | Indicates whether an element currently holds selection within a multi-option selection group. [MDN](https://mdn.dev/ARIA/Attributes/aria-selected) - `true` The element holds selection and represents the user's current choice within the group. - `false` The element does not hold selection and the user can choose it. | | current | `'page' \| 'step'` | Indicates the element that represents the user's current location or position within a set. [MDN](https://mdn.dev/ARIA/Attributes/aria-current) - `page` Marks the current page within a set of navigation links. - `step` Marks the current step within a multi-step process or workflow. | | popoverTargetElement | `HTMLElement \| null` | Establishing a relationship between a popover and its invoker button. https://mdn.dev/HTMLInputElement/popoverTargetElement | | popovertarget | `string` | The idref of the element that receives the popover. https://mdn.dev/HTML/Reference/Elements/button#popovertarget | | popoverTargetAction (popovertargetaction) | `'show' \| 'hide' \| 'toggle'` | The popover target action to perform on the popover target element. https://mdn.dev/HTMLInputElement/popoverTargetAction | | commandForElement | `HTMLElement \| null` | The element that receives the command. https://mdn.dev/Invoker_Commands_API | | commandfor | `string \| null` | The idref of the element that receives the command. https://mdn.dev/Invoker_Commands_API | | command | `string` | The command to execute on the element. https://mdn.dev/Invoker_Commands_API | | interestForElement | `HTMLElement \| null` | The element that receives the interest. https://mdn.dev/HTMLAnchorElement/interestForElement | | interestfor | `string \| null` | The idref of the element that receives the interest. https://mdn.dev/HTMLAnchorElement/interestForElement | ### CSS Properties | name | value | description | | ---- | ----- | ----------- | | --background | `string` | [MDN](https://mdn.dev/CSS/background) | | --color | `string` | [MDN](https://mdn.dev/CSS/color) | | --gap | `string` | [MDN](https://mdn.dev/CSS/gap) | | --font-size | `string` | [MDN](https://mdn.dev/CSS/font-size) | | --padding | `string` | [MDN](https://mdn.dev/CSS/padding) | | --border | `string` | [MDN](https://mdn.dev/CSS/border) | | --border-radius | `string` | [MDN](https://mdn.dev/CSS/border-radius) | | --font-weight | `string` | [MDN](https://mdn.dev/CSS/font-weight) | | --cursor | `string` | [MDN](https://mdn.dev/CSS/cursor) | | --height | `string` | [MDN](https://mdn.dev/CSS/height) | | --width | `string` | [MDN](https://mdn.dev/CSS/width) | | --max-width | `string` | [MDN](https://mdn.dev/CSS/max-width) | | --text-decoration | `string` | [MDN](https://mdn.dev/CSS/text-decoration) | ## nve-textarea A textarea is a control that enables users to enter and edit text. ### Example ```html message ``` ### Import ```javascript import '@nvidia-elements/core/textarea/define.js'; ``` ### Slots | name | value | description | | ---- | ----- | ----------- | | (default) | `string` | Control input element | | label | `string` | Label element | ### Properties / Attributes | property (attribute) | value | description | | -------------------- | ----- | ----------- | | status | `'warning' \| 'error' \| 'success' \| 'disabled'` | Communicates the intent and semantic meaning of an element to help users understand the outcome of their actions. - `warning` Indicates cautionary actions that require careful consideration before proceeding. - `success` Represents positive outcomes, confirmations, or constructive actions. | | layout | `\| 'vertical' \| 'vertical-inline' \| 'horizontal' \| 'horizontal-inline'` | Controls the directional arrangement and spacing behavior of the element's content. - `vertical` Arranges content in a vertical stack with block-level spacing. - `vertical-inline` Arranges content vertically with compact inline spacing for dense layouts. - `horizontal` Arranges content in a horizontal row with block-level spacing. - `horizontal-inline` Arranges content horizontally with compact inline spacing. | | fitText (fit-text) | `boolean` | Sets the input to match the width of the active text content of the control value. Only applicable to vertical input box type controls (input, select) | | fitContent (fit-content) | `boolean` | Sets the input to match native default content block | | i18n | | Enables updating internal string values for internationalization. | | prominence | `'muted'` | Controls the visual prominence to establish hierarchy and guide user attention. - `muted` Reduces visual weight for supporting content that should remain subtle and unobtrusive. | | nveControl | `string` | | | reset | | Resets control value to initial attribute value and clears any active validation rules. | | showPicker | | | ### Events | name | value | description | | ---- | ----- | ----------- | | reset | `CustomEvent` | | ### CSS Properties | name | value | description | | ---- | ----- | ----------- | | --padding | `string` | [MDN](https://mdn.dev/CSS/padding) | | --font-size | `string` | [MDN](https://mdn.dev/CSS/font-size) | | --height | `string` | [MDN](https://mdn.dev/CSS/height) | | --width | `string` | [MDN](https://mdn.dev/CSS/width) | | --min-height | `string` | [MDN](https://mdn.dev/CSS/min-height) | | --background | `string` | [MDN](https://mdn.dev/CSS/background) | | --border-radius | `string` | [MDN](https://mdn.dev/CSS/border-radius) | | --cursor | `string` | [MDN](https://mdn.dev/CSS/cursor) | | --border | `string` | [MDN](https://mdn.dev/CSS/border) | | --color | `string` | [MDN](https://mdn.dev/CSS/color) | | --accent-color | `string` | [MDN](https://mdn.dev/CSS/accent-color) | | --label-color | `string` | [MDN](https://mdn.dev/CSS/color) | | --label-width | `string` | [MDN](https://mdn.dev/CSS/width) | | --label-font-weight | `string` | [MDN](https://mdn.dev/CSS/font-weight) | | --label-font-size | `string` | [MDN](https://mdn.dev/CSS/font-size) | | --control-width | `string` | [MDN](https://mdn.dev/CSS/width) | | --control-height | `string` | [MDN](https://mdn.dev/CSS/height) | ## nve-time A time picker is a control that enables users to choose a time value. ### Example ```html message ``` ### Import ```javascript import '@nvidia-elements/core/time/define.js'; ``` ### Slots | name | value | description | | ---- | ----- | ----------- | | (default) | `string` | Control input element | | label | `string` | Label element | ### Properties / Attributes | property (attribute) | value | description | | -------------------- | ----- | ----------- | | container | `'flat' \| "default"` | Demonstrates different container styles to accommodate visual weight and context. - `flat` Element has white space bounds but reduced visual container. | | status | `'warning' \| 'error' \| 'success' \| 'disabled'` | Communicates the intent and semantic meaning of an element to help users understand the outcome of their actions. - `warning` Indicates cautionary actions that require careful consideration before proceeding. - `success` Represents positive outcomes, confirmations, or constructive actions. | | layout | `\| 'vertical' \| 'vertical-inline' \| 'horizontal' \| 'horizontal-inline'` | Controls the directional arrangement and spacing behavior of the element's content. - `vertical` Arranges content in a vertical stack with block-level spacing. - `vertical-inline` Arranges content vertically with compact inline spacing for dense layouts. - `horizontal` Arranges content in a horizontal row with block-level spacing. - `horizontal-inline` Arranges content horizontally with compact inline spacing. | | fitText (fit-text) | `boolean` | Sets the input to match the width of the active text content of the control value. Only applicable to vertical input box type controls (input, select) | | fitContent (fit-content) | `boolean` | Sets the input to match native default content block | | i18n | | Enables updating internal string values for internationalization. | | prominence | `'muted'` | Controls the visual prominence to establish hierarchy and guide user attention. - `muted` Reduces visual weight for supporting content that should remain subtle and unobtrusive. | | nveControl | `string` | | | reset | | Resets control value to initial attribute value and clears any active validation rules. | | showPicker | | | ### Events | name | value | description | | ---- | ----- | ----------- | | reset | `CustomEvent` | | ### CSS Properties | name | value | description | | ---- | ----- | ----------- | | --padding | `string` | [MDN](https://mdn.dev/CSS/padding) | | --font-size | `string` | [MDN](https://mdn.dev/CSS/font-size) | | --height | `string` | [MDN](https://mdn.dev/CSS/height) | | --background | `string` | [MDN](https://mdn.dev/CSS/background) | | --border-radius | `string` | [MDN](https://mdn.dev/CSS/border-radius) | | --border | `string` | [MDN](https://mdn.dev/CSS/border) | | --cursor | `string` | [MDN](https://mdn.dev/CSS/cursor) | | --accent-color | `string` | [MDN](https://mdn.dev/CSS/accent-color) | | --color | `string` | [MDN](https://mdn.dev/CSS/color) | | --label-color | `string` | [MDN](https://mdn.dev/CSS/color) | | --label-width | `string` | [MDN](https://mdn.dev/CSS/width) | | --label-font-weight | `string` | [MDN](https://mdn.dev/CSS/font-weight) | | --label-font-size | `string` | [MDN](https://mdn.dev/CSS/font-size) | | --control-width | `string` | [MDN](https://mdn.dev/CSS/width) | | --control-height | `string` | [MDN](https://mdn.dev/CSS/height) | ## nve-toast A contextual popup that displays a status. Toasts are [triggered](https://w3c.github.io/aria/#tooltip) by clicking, focusing, or tapping an element and cannot have interactive elements within them. [MDN Popover API](https://developer.mozilla.org/en-US/docs/Web/API/Popover_API) ### Example ```html hello there button ``` ### Import ```javascript import '@nvidia-elements/core/toast/define.js'; ``` ### Slots | name | value | description | | ---- | ----- | ----------- | | (default) | `string` | default content slot | | prefix | `string` | custom status icon slot | ### Properties / Attributes | property (attribute) | value | description | | -------------------- | ----- | ----------- | | anchor | `string \| HTMLElement` | Provides the element that the popover should position relative to. Anchor can accept a idref string within the same render root or a HTMLElement DOM reference. | | position | `'center' \| 'top' \| 'bottom' \| 'left' \| 'right'` | Determines the position of an element along both inline and block axis. [MDN](https://mdn.dev/CSS/CSS_grid_layout/Box_alignment_in_grid_layout#the_two_axes_of_a_grid_layout) - `center` Centers the popover directly over the anchor element. - `top` Positions the popover above the anchor element. - `bottom` Positions the popover below the anchor element. - `left` Positions the popover to the left side of the anchor element. - `right` Positions the popover to the right side of the anchor element. | | alignment | `'start' \| 'end' \| 'center'` | Determines the alignment of the popover relative to the provided anchor element. - `start` Aligns the popover to the beginning edge of the anchor for left or top alignment. - `end` Aligns the popover to the ending edge of the anchor for right or bottom alignment. - `center` Centers the popover along the anchor's edge for balanced positioning. | | prominence | `'muted'` | Controls the visual prominence to establish hierarchy and guide user attention. - `muted` Reduces visual weight for supporting content that should remain subtle and unobtrusive. | | closable | `boolean` | Indicates whether the user can dismiss or close the element. - `true` The element displays a close control and the user can dismiss it. - `false` The user cannot close the element and must dismiss it programmatically. | | closeTimeout (close-timeout) | `number` | Sets the automatic dismissal time in milliseconds before the element emits a `close` event. Allow ~200-250ms per word for comfortable reading. - `0` Warning or error messages requiring immediate acknowledgment. - `3000` Brief success or confirmation messages. - `7000` Standard informational messages. - `10000` Messages with actions or requiring user decision. | | status | `'accent' \| 'warning' \| 'success' \| 'danger' \| 'muted'` | Communicates the intent and semantic meaning of an element to help users understand the outcome of their actions. - `accent` Highlights important actions or draws attention to primary interactive elements. - `warning` Indicates cautionary actions that require careful consideration before proceeding. - `success` Represents positive outcomes, confirmations, or constructive actions. - `danger` Signals destructive or irreversible actions that need extra attention and confirmation. | | i18n | | Enables updating internal string values for internationalization. | | typeNativePopoverController | | | ### Events | name | value | description | | ---- | ----- | ----------- | | beforetoggle | `CustomEvent` | Dispatched on a popover just before showing or hiding. [MDN](https://mdn.dev/HTMLElement/beforetoggle_event) | | toggle | `CustomEvent` | Dispatched on a popover element just after showing or hiding. [MDN](https://mdn.dev/HTMLElement/toggle_event) | | open | `CustomEvent` | Dispatched when the toast opens. | | close | `CustomEvent` | Dispatched when the toast closes. | ### CSS Properties | name | value | description | | ---- | ----- | ----------- | | --padding | `string` | [MDN](https://mdn.dev/CSS/padding) | | --justify-content | `string` | [MDN](https://mdn.dev/CSS/justify-content) | | --background | `string` | [MDN](https://mdn.dev/CSS/background) | | --border-radius | `string` | [MDN](https://mdn.dev/CSS/border-radius) | | --border | `string` | [MDN](https://mdn.dev/CSS/border) | | --color | `string` | [MDN](https://mdn.dev/CSS/color) | | --font-size | `string` | [MDN](https://mdn.dev/CSS/font-size) | | --font-weight | `string` | [MDN](https://mdn.dev/CSS/font-weight) | | --box-shadow | `string` | [MDN](https://mdn.dev/CSS/box-shadow) | | --gap | `string` | [MDN](https://mdn.dev/CSS/gap) | | --animation-duration | `string` | Duration of toast open/close animations [MDN](https://mdn.dev/CSS/animation-duration) | ## nve-toggletip Generic toggletip element for rendering a variety of different interactive content. [MDN Popover API](https://developer.mozilla.org/en-US/docs/Web/API/Popover_API) ### Example ```html hello there button ``` ### Import ```javascript import '@nvidia-elements/core/toggletip/define.js'; ``` ### Slots | name | value | description | | ---- | ----- | ----------- | | (default) | `string` | default slot for toggletip content | ### Properties / Attributes | property (attribute) | value | description | | -------------------- | ----- | ----------- | | anchor | `string \| HTMLElement` | Provides the element that the popover should position relative to. Anchor can accept a idref string within the same render root or a HTMLElement DOM reference. | | position | `'center' \| 'top' \| 'bottom' \| 'left' \| 'right'` | Determines the position of an element along both inline and block axis. [MDN](https://mdn.dev/CSS/CSS_grid_layout/Box_alignment_in_grid_layout#the_two_axes_of_a_grid_layout) - `center` Centers the popover directly over the anchor element. - `top` Positions the popover above the anchor element. - `bottom` Positions the popover below the anchor element. - `left` Positions the popover to the left side of the anchor element. - `right` Positions the popover to the right side of the anchor element. | | alignment | `'start' \| 'end' \| 'center'` | Determines the alignment of the popover relative to the provided anchor element. - `start` Aligns the popover to the beginning edge of the anchor for left or top alignment. - `end` Aligns the popover to the ending edge of the anchor for right or bottom alignment. - `center` Centers the popover along the anchor's edge for balanced positioning. | | closable | `boolean` | Indicates whether the user can dismiss or close the element. - `true` The element displays a close control and the user can dismiss it. - `false` The user cannot close the element and must dismiss it programmatically. | | arrow | `boolean` | Determines if the component renders an arrow. | | popoverArrow | `HTMLElement` | | | typeNativePopoverController | | | | i18n | | Enables updating internal string values for internationalization. | ### Events | name | value | description | | ---- | ----- | ----------- | | beforetoggle | `CustomEvent` | Dispatched on a popover just before showing or hiding. [MDN](https://mdn.dev/HTMLElement/beforetoggle_event) | | toggle | `CustomEvent` | Dispatched on a popover element just after showing or hiding. [MDN](https://mdn.dev/HTMLElement/toggle_event) | | open | `CustomEvent` | Dispatched when the toggletip opens. | | close | `CustomEvent` | Dispatched when the toggletip closes. | ### CSS Properties | name | value | description | | ---- | ----- | ----------- | | --arrow-transform | `string` | | | --border | `string` | [MDN](https://mdn.dev/CSS/border) | | --border-radius | `string` | [MDN](https://mdn.dev/CSS/border-radius) | | --background | `string` | [MDN](https://mdn.dev/CSS/background) | | --color | `string` | [MDN](https://mdn.dev/CSS/color) | | --padding | `string` | [MDN](https://mdn.dev/CSS/padding) | | --font-size | `string` | [MDN](https://mdn.dev/CSS/font-size) | | --font-weight | `string` | [MDN](https://mdn.dev/CSS/font-weight) | | --box-shadow | `string` | [MDN](https://mdn.dev/CSS/box-shadow) | | --width | `string` | [MDN](https://mdn.dev/CSS/width) | | --min-width | `string` | [MDN](https://mdn.dev/CSS/min-width) | | --gap | `string` | [MDN](https://mdn.dev/CSS/gap) | | --animation-duration | `string` | Duration of toggletip open/close animations [MDN](https://mdn.dev/CSS/animation-duration) | ## nve-toggletip-footer Provides a designated area at the bottom of a toggletip for actions or supplementary information. ### Import ```javascript import '@nvidia-elements/core/toggletip/define.js'; ``` ### Slots | name | value | description | | ---- | ----- | ----------- | | (default) | `string` | default slot for the toggletip footer | ### CSS Properties | name | value | description | | ---- | ----- | ----------- | | --border-top | `string` | [MDN](https://mdn.dev/CSS/border-top) | | --padding | `string` | [MDN](https://mdn.dev/CSS/padding) | | --gap | `string` | [MDN](https://mdn.dev/CSS/gap) | ## nve-toggletip-header Displays a title or contextual label at the top of a toggletip to categorize its contents. ### Import ```javascript import '@nvidia-elements/core/toggletip/define.js'; ``` ### Slots | name | value | description | | ---- | ----- | ----------- | | (default) | `string` | default slot for the toggletip header | ### CSS Properties | name | value | description | | ---- | ----- | ----------- | | --border-bottom | `string` | [MDN](https://mdn.dev/CSS/border-bottom) | | --padding | `string` | [MDN](https://mdn.dev/CSS/padding) | | --border-radius | `string` | [MDN](https://mdn.dev/CSS/border-radius) | ## nve-toolbar A toolbar is a container for grouping a set of controls, such as buttons, icon buttons and combobox search. ### Example ```html create delete ``` ### Import ```javascript import '@nvidia-elements/core/toolbar/define.js'; ``` ### Slots | name | value | description | | ---- | ----- | ----------- | | (default) | `string` | default slot for content | | prefix | `string` | slot for prefix content | | suffix | `string` | slot for suffix content | ### Properties / Attributes | property (attribute) | value | description | | -------------------- | ----- | ----------- | | container | `'flat' \| 'inset' \| 'full' \| "default"` | Demonstrates different container styles to accommodate visual weight and context. - `flat` Element has white space bounds but reduced visual container. - `inset` Element container optimizes for embedding or inset placement inside another containing element. - `full` Element container optimizes for filling its container bounds. | | content | `'scroll' \| 'wrap' \| "default"` | Determines the primary content overflow behavior. | | orientation | `'horizontal' \| 'vertical' \| "default"` | Controls the directional flow of the element's layout and interaction pattern. - `horizontal` Element orients horizontally with left-to-right flow. - `vertical` Element orients vertically with top-to-bottom flow. | | status | `'accent'` | Communicates the intent and semantic meaning of an element to help users understand the outcome of their actions. - `accent` Highlights important actions or draws attention to primary interactive elements. | ### CSS Properties | name | value | description | | ---- | ----- | ----------- | | --background | `string` | [MDN](https://mdn.dev/CSS/background) | | --color | `string` | [MDN](https://mdn.dev/CSS/color) | | --padding | `string` | [MDN](https://mdn.dev/CSS/padding) | | --min-height | `string` | [MDN](https://mdn.dev/CSS/min-height) | | --border-radius | `string` | [MDN](https://mdn.dev/CSS/border-radius) | | --gap | `string` | [MDN](https://mdn.dev/CSS/gap) | | --border-bottom | `string` | [MDN](https://mdn.dev/CSS/border-bottom) | | --box-shadow | `string` | [MDN](https://mdn.dev/CSS/box-shadow) | | --width | `string` | [MDN](https://mdn.dev/CSS/width) | ## nve-tooltip A contextual popup that displays a plaintext description. Tooltips are [triggered](https://w3c.github.io/aria/#tooltip) by hovering, focusing, or tapping an element and cannot have interactive elements within them. [MDN Popover API](https://developer.mozilla.org/en-US/docs/Web/API/Popover_API) ### Example ```html hello there button ``` ### Import ```javascript import '@nvidia-elements/core/tooltip/define.js'; ``` ### Slots | name | value | description | | ---- | ----- | ----------- | | (default) | `string` | default content slot | ### Properties / Attributes | property (attribute) | value | description | | -------------------- | ----- | ----------- | | anchor | `string \| HTMLElement` | Provides the element that the popover should position relative to. Anchor can accept a idref string within the same render root or a HTMLElement DOM reference. | | position | `'center' \| 'top' \| 'bottom' \| 'left' \| 'right'` | Determines the position of an element along both inline and block axis. [MDN](https://mdn.dev/CSS/CSS_grid_layout/Box_alignment_in_grid_layout#the_two_axes_of_a_grid_layout) - `center` Centers the popover directly over the anchor element. - `top` Positions the popover above the anchor element. - `bottom` Positions the popover below the anchor element. - `left` Positions the popover to the left side of the anchor element. - `right` Positions the popover to the right side of the anchor element. | | alignment | `'start' \| 'end' \| 'center'` | Determines the alignment of the popover relative to the provided anchor element. - `start` Aligns the popover to the beginning edge of the anchor for left or top alignment. - `end` Aligns the popover to the ending edge of the anchor for right or bottom alignment. - `center` Centers the popover along the anchor's edge for balanced positioning. | | status | `'muted'` | Communicates the intent and semantic meaning of an element to help users understand the outcome of their actions. - `accent` - Highlights important actions or draws attention to primary interactive elements. - `warning` - Indicates cautionary actions that require careful consideration before proceeding. - `success` - Represents positive outcomes, confirmations, or constructive actions. - `danger` - Signals destructive or irreversible actions that need extra attention and confirmation. | | popoverArrow | `HTMLElement` | | | typeNativePopoverController | | | ### Events | name | value | description | | ---- | ----- | ----------- | | beforetoggle | `CustomEvent` | Dispatched on a popover just before showing or hiding. [MDN](https://mdn.dev/HTMLElement/beforetoggle_event) | | toggle | `CustomEvent` | Dispatched on a popover element just after showing or hiding. [MDN](https://mdn.dev/HTMLElement/toggle_event) | | open | `CustomEvent` | Dispatched when the tooltip opens. | | close | `CustomEvent` | Dispatched when the tooltip closes. | ### CSS Properties | name | value | description | | ---- | ----- | ----------- | | --border-radius | `string` | [MDN](https://mdn.dev/CSS/border-radius) | | --background | `string` | [MDN](https://mdn.dev/CSS/background) | | --color | `string` | [MDN](https://mdn.dev/CSS/color) | | --padding | `string` | [MDN](https://mdn.dev/CSS/padding) | | --box-shadow | `string` | [MDN](https://mdn.dev/CSS/box-shadow) | | --font-size | `string` | [MDN](https://mdn.dev/CSS/font-size) | | --font-weight | `string` | [MDN](https://mdn.dev/CSS/font-weight) | | --arrow-transform | `string` | | | --width | `string` | [MDN](https://mdn.dev/CSS/width) | | --height | `string` | [MDN](https://mdn.dev/CSS/height) | | --border | `string` | [MDN](https://mdn.dev/CSS/border) | | --animation-duration | `string` | Duration of tooltip open/close animations [MDN](https://mdn.dev/CSS/animation-duration) | ## nve-tree A tree view widget presents a hierarchical list. Any item in the hierarchy may have child items, and items that have children can expand or collapse to show or hide the children. ### Example ```html node 1 node 1-1 node 1-2 node 1-3 node 1-3-1 node 1-3-2 node 1-3-3 node 2 node 2-1 node 2-2 node 2-3 node 3 node 3-1 node 3-2 node 3-3 node 3-3-1 node 3-3-2 node 3-3-3 ``` ### Import ```javascript import '@nvidia-elements/core/tree/define.js'; ``` ### Slots | name | value | description | | ---- | ----- | ----------- | | (default) | `string` | tree nodes | ### Properties / Attributes | property (attribute) | value | description | | -------------------- | ----- | ----------- | | selectable | `'single' \| 'multi'` | Determines whether all nodes can be in a selected state. Nodes can be in a single or multi select state. | | behaviorExpand (behavior-expand) | `boolean` | Determines whether the tree nodes should handle auto-expanding behavior. | | behaviorSelect (behavior-select) | `boolean` | Determines whether the tree nodes should handle auto-select behavior. | | border | `boolean` | Determines if the node depth border renders. | ### Events | name | value | description | | ---- | ----- | ----------- | | open | `CustomEvent` | Dispatched from a child nve-tree-node when opened. | | close | `CustomEvent` | Dispatched from a child nve-tree-node when closed. | | select | `CustomEvent` | Dispatched from a child nve-tree-node when its selection state changes. | ### CSS Properties | name | value | description | | ---- | ----- | ----------- | | --max-width | `string` | [MDN](https://mdn.dev/CSS/max-width) | | --node-border | `string` | Border style for tree node depth indicator | ## nve-tree-node A tree view widget presents a hierarchical list. Any item in the hierarchy may have child items, and items that have children can expand or collapse to show or hide the children. ### Import ```javascript import '@nvidia-elements/core/tree/define.js'; ``` ### Slots | name | value | description | | ---- | ----- | ----------- | | (default) | `string` | Use default slot for basic text content or nested elements. | | content | `string` | Use only for extended long form content containing interactive elements or form inputs. | ### Properties / Attributes | property (attribute) | value | description | | -------------------- | ----- | ----------- | | expanded | `boolean` | Indicates whether collapsible content is currently visible or hidden from the user. [MDN](https://mdn.dev/ARIA/Attributes/aria-expanded) - `true` The associated content expands and becomes visible to the user. - `false` The associated content collapses and hides from the user. | | selected | `boolean` | Indicates whether an element currently holds selection within a multi-option selection group. [MDN](https://mdn.dev/ARIA/Attributes/aria-selected) - `true` The element holds selection and represents the user's current choice within the group. - `false` The element does not hold selection and the user can choose it. | | expandable | `boolean` | Determines whether a node can be expandable. Expandable by default if slotted nodes exist. | | selectable | `'single' \| 'multi'` | Determines whether a node can be in a selected state. Nodes can be in a single or multi select state. | | highlighted | `boolean` | Determines the highlighted state of the element. Highlighted states serve non-interactive selections where nodes may relate to other selected portions of the UI. | | i18n | | Enables updating internal string values for internationalization. | | indeterminate | `boolean` | | | behaviorExpand | `boolean` | | | behaviorSelect | `boolean` | | | open | | opens and sets the expanded state automatically if behaviorExpand is true | | close | | closes and sets the expanded state automatically if behaviorExpand is true | ### Events | name | value | description | | ---- | ----- | ----------- | | open | `CustomEvent` | Dispatched when the node opens. | | close | `CustomEvent` | Dispatched when the node closes. | | select | `CustomEvent` | Dispatched when the node selection state changes. | ### Invoker Commands | name | value | description | | ---- | ----- | ----------- | | --select | `CommandEvent` | use to select the node | | --deselect | `CommandEvent` | use to deselect the node | | --toggle-select | `CommandEvent` | use to toggle the node selection state | | --open | `CommandEvent` | use to open the node | | --close | `CommandEvent` | use to close the node | | --toggle | `CommandEvent` | use to toggle open / closed state of the node | ### CSS Properties | name | value | description | | ---- | ----- | ----------- | | --color | `string` | [MDN](https://mdn.dev/CSS/color) | | --border-radius | `string` | [MDN](https://mdn.dev/CSS/border-radius) | | --font-size | `string` | [MDN](https://mdn.dev/CSS/font-size) | | --min-height | `string` | [MDN](https://mdn.dev/CSS/min-height) | | --text-wrap | `string` | [MDN](https://mdn.dev/CSS/text-wrap) | | --font-weight | `string` | [MDN](https://mdn.dev/CSS/font-weight) | | --width | `string` | [MDN](https://mdn.dev/CSS/width) | ## nve-week A week picker is a control that enables users to choose a week value. ### Example ```html message ``` ### Import ```javascript import '@nvidia-elements/core/week/define.js'; ``` ### Slots | name | value | description | | ---- | ----- | ----------- | | (default) | `string` | Control input element | | label | `string` | Label element | ### Properties / Attributes | property (attribute) | value | description | | -------------------- | ----- | ----------- | | container | `'flat' \| "default"` | Demonstrates different container styles to accommodate visual weight and context. - `flat` Element has white space bounds but reduced visual container. | | status | `'warning' \| 'error' \| 'success' \| 'disabled'` | Communicates the intent and semantic meaning of an element to help users understand the outcome of their actions. - `warning` Indicates cautionary actions that require careful consideration before proceeding. - `success` Represents positive outcomes, confirmations, or constructive actions. | | layout | `\| 'vertical' \| 'vertical-inline' \| 'horizontal' \| 'horizontal-inline'` | Controls the directional arrangement and spacing behavior of the element's content. - `vertical` Arranges content in a vertical stack with block-level spacing. - `vertical-inline` Arranges content vertically with compact inline spacing for dense layouts. - `horizontal` Arranges content in a horizontal row with block-level spacing. - `horizontal-inline` Arranges content horizontally with compact inline spacing. | | fitText (fit-text) | `boolean` | Sets the input to match the width of the active text content of the control value. Only applicable to vertical input box type controls (input, select) | | fitContent (fit-content) | `boolean` | Sets the input to match native default content block | | i18n | | Enables updating internal string values for internationalization. | | prominence | `'muted'` | Controls the visual prominence to establish hierarchy and guide user attention. - `muted` Reduces visual weight for supporting content that should remain subtle and unobtrusive. | | nveControl | `string` | | | reset | | Resets control value to initial attribute value and clears any active validation rules. | | showPicker | | | ### Events | name | value | description | | ---- | ----- | ----------- | | reset | `CustomEvent` | | ### CSS Properties | name | value | description | | ---- | ----- | ----------- | | --padding | `string` | [MDN](https://mdn.dev/CSS/padding) | | --font-size | `string` | [MDN](https://mdn.dev/CSS/font-size) | | --height | `string` | [MDN](https://mdn.dev/CSS/height) | | --background | `string` | [MDN](https://mdn.dev/CSS/background) | | --border-radius | `string` | [MDN](https://mdn.dev/CSS/border-radius) | | --border | `string` | [MDN](https://mdn.dev/CSS/border) | | --cursor | `string` | [MDN](https://mdn.dev/CSS/cursor) | | --accent-color | `string` | [MDN](https://mdn.dev/CSS/accent-color) | | --color | `string` | [MDN](https://mdn.dev/CSS/color) | | --label-color | `string` | [MDN](https://mdn.dev/CSS/color) | | --label-width | `string` | [MDN](https://mdn.dev/CSS/width) | | --label-font-weight | `string` | [MDN](https://mdn.dev/CSS/font-weight) | | --label-font-size | `string` | [MDN](https://mdn.dev/CSS/font-size) | | --control-width | `string` | [MDN](https://mdn.dev/CSS/width) | | --control-height | `string` | [MDN](https://mdn.dev/CSS/height) | ## nve-codeblock A container for content representing programming languages. ### Example ```html function getTime(): number { return new Date().getTime(); } ``` ### Import ```javascript import '@nvidia-elements/code/codeblock/define.js'; ``` ### Slots | name | value | description | | ---- | ----- | ----------- | | (default) | `string` | for declarative slotting of source code and not using the `code` property | | actions | `string` | slot for action bar | ### Properties / Attributes | property (attribute) | value | description | | -------------------- | ----- | ----------- | | container | `'flat' \| 'inline' \| "default"` | Determines the container styles of component. Flat enables nesting within other containers. | | language | `\| 'bash' \| 'css' \| 'go' \| 'html' \| 'javascript' \| 'json' \| 'markdown' \| 'python' \| 'shell' \| 'toml' \| 'typescript' \| 'xml' \| 'yaml'` | Programming language that processes the codeblock. | | code | `string \| "default"` | Text code to be process into a codeblock. | | lineNumbers (line-numbers) | `boolean \| "default"` | Adds styling to show the line numbers of the codeblock. | | highlight | `string \| "default"` | Adds styling to highlight the provided code lines. For many lines: use Comma seperated values, ex: (1,5,7). For range of lines, use hyphen seperated values, ex: (1-5). You can combine both such as: ex: (1,5,10-15,20). | ### CSS Properties | name | value | description | | ---- | ----- | ----------- | | --background | `string` | [MDN](https://mdn.dev/CSS/background) | | --padding | `string` | [MDN](https://mdn.dev/CSS/padding) | | --border-radius | `string` | [MDN](https://mdn.dev/CSS/border-radius) | | --border | `string` | [MDN](https://mdn.dev/CSS/border) | | --font-family | `string` | [MDN](https://mdn.dev/CSS/font-family) | | --white-space | `string` | [MDN](https://mdn.dev/CSS/white-space) | ## nve-markdown A Web Component that inputs markdown content and renders it as HTML formatted with Elements styles. ### Example ```html ``` ### Import ```javascript import '@nvidia-elements/markdown/markdown/define.js'; ``` ### Slots | name | value | description | | ---- | ----- | ----------- | | (default) | `string` | The slot can contain a template element with markdown content | ### Properties / Attributes | property (attribute) | value | description | | -------------------- | ----- | ----------- | | source | `string` | Markdown content source, settable programmatically | | getUpdateComplete | | | ### CSS Properties | name | value | description | | ---- | ----- | ----------- | | --padding | `string` | The padding of the component [MDN](https://mdn.dev/CSS/padding) | ## nve-monaco-diff-editor A low-level Monaco Editor wrapper that provides direct access to a diff editor instance and API. ### Example ```html ``` ### Import ```javascript import '@nvidia-elements/monaco/diff-editor/define.js'; ``` ### Events | name | value | description | | ---- | ----- | ----------- | | canceled | `CustomEvent` | Dispatched when the editor cancels initialization. | | ready | `CustomEvent` | Dispatched when the editor finishes initialization and becomes ready. | ### CSS Properties | name | value | description | | ---- | ----- | ----------- | | --background | `string` | [MDN](https://mdn.dev/CSS/background) | | --min-height | `string` | [MDN](https://mdn.dev/CSS/min-height) | ## nve-monaco-diff-input An input control for editing diffs for JSON, YAML and code with syntax highlighting and validation. ### Example ```html ``` ### Import ```javascript import '@nvidia-elements/monaco/diff-input/define.js'; ``` ### Properties / Attributes | property (attribute) | value | description | | -------------------- | ----- | ----------- | | disabled | `boolean` | Determines whether the input prevents editing. | | language | `'css' \| 'go' \| 'html' \| 'javascript' \| 'json' \| 'markdown' \| 'plaintext' \| 'python' \| 'shell' \| 'sql' \| 'typescript' \| 'yaml' \| string` | Defines the programming language for syntax highlighting and validation. | | original | `string` | Defines the original value of the diff. | | originalLanguage | `'css' \| 'go' \| 'html' \| 'javascript' \| 'json' \| 'markdown' \| 'plaintext' \| 'python' \| 'shell' \| 'sql' \| 'typescript' \| 'yaml' \| string` | Defines the programming language for syntax highlighting of the original value. Falls back to the language property if not set. | | readOnly | `boolean` | Determines whether the editor is in read-only mode. | | sideBySide (side-by-side) | `boolean` | Defines whether to render the diff in side-by-side mode (if enough width is available). | | updateOptions | | | | updateOriginalEditorOptions | | | | folding | `boolean` | Determines whether the editor supports code folding. | | insertSpaces (insert-spaces) | `boolean` | Determines whether to insert spaces instead of tabs when pressing the tab key. | | lineNumbers (line-numbers) | `LineNumbersType` | Controls the display of line numbers in the editor. | | minimap | `boolean` | Determines whether to show the minimap (code overview) on the right side of the editor. | | required | `boolean` | Determines whether the input requires a value. | | schema | `JSONSchema \| "default"` | JSON schema for validation when the language equals 'json'. https://json-schema.org/ | | tabSize (tab-size) | `number` | Determines the number of spaces to use for indentation. | | value | `string` | The current value/content of the editor. | | wordWrap (word-wrap) | `WordWrapOptions` | Controls how the editor wraps text. | | noValidate | `boolean` | Determines whether to disable validation of the input. | | focus | | | | updateEditorOptions | | | ### Events | name | value | description | | ---- | ----- | ----------- | | syntax-validation-changed | `CustomEvent` | Dispatched when syntax validation state changes. | | canceled | `CustomEvent` | Dispatched when the editor cancels initialization. | | ready | `CustomEvent` | Dispatched when the editor finishes initialization and becomes ready. | | input | `CustomEvent` | Dispatched when the element's value changes as a result of a user action. | | change | `CustomEvent` | Dispatched when the user modifies and commits the element's value. | | reset | `CustomEvent` | Dispatched when the control state is reset to its initial value. | | invalid | `CustomEvent` | Dispatched when the control is invalid. | ### CSS Properties | name | value | description | | ---- | ----- | ----------- | | --background | `string` | [MDN](https://mdn.dev/CSS/background) | | --border | `string` | [MDN](https://mdn.dev/CSS/border) | | --border-radius | `string` | [MDN](https://mdn.dev/CSS/border-radius) | | --min-height | `string` | [MDN](https://mdn.dev/CSS/min-height) | | --padding | `string` | [MDN](https://mdn.dev/CSS/padding) | ## nve-monaco-editor A low-level Monaco Editor wrapper that provides direct access to an editor instance and API. ### Example ```html ``` ### Import ```javascript import '@nvidia-elements/monaco/editor/define.js'; ``` ### Events | name | value | description | | ---- | ----- | ----------- | | canceled | `CustomEvent` | Dispatched when the editor cancels initialization. | | ready | `CustomEvent` | Dispatched when the editor finishes initialization and becomes ready. | ### CSS Properties | name | value | description | | ---- | ----- | ----------- | | --background | `string` | [MDN](https://mdn.dev/CSS/background) | | --min-height | `string` | [MDN](https://mdn.dev/CSS/min-height) | ## nve-monaco-input An input control for editing JSON, YAML and code with syntax highlighting and validation. ### Example ```html ``` ### Import ```javascript import '@nvidia-elements/monaco/input/define.js'; ``` ### Properties / Attributes | property (attribute) | value | description | | -------------------- | ----- | ----------- | | language | `'css' \| 'go' \| 'html' \| 'javascript' \| 'json' \| 'markdown' \| 'plaintext' \| 'python' \| 'shell' \| 'sql' \| 'typescript' \| 'yaml' \| string` | Defines the programming language for syntax highlighting and validation. | | disabled | `boolean` | Determines whether the input prevents editing. | | folding | `boolean` | Determines whether the editor supports code folding. | | insertSpaces (insert-spaces) | `boolean` | Determines whether to insert spaces instead of tabs when pressing the tab key. | | lineNumbers (line-numbers) | `LineNumbersType` | Controls the display of line numbers in the editor. | | minimap | `boolean` | Determines whether to show the minimap (code overview) on the right side of the editor. | | readOnly | `boolean` | Determines whether the editor is in read-only mode. | | required | `boolean` | Determines whether the input requires a value. | | schema | `JSONSchema \| "default"` | JSON schema for validation when the language equals 'json'. https://json-schema.org/ | | tabSize (tab-size) | `number` | Determines the number of spaces to use for indentation. | | value | `string` | The current value/content of the editor. | | wordWrap (word-wrap) | `WordWrapOptions` | Controls how the editor wraps text. | | noValidate | `boolean` | Determines whether to disable validation of the input. | | focus | | | | updateEditorOptions | | | ### Events | name | value | description | | ---- | ----- | ----------- | | syntax-validation-changed | `CustomEvent` | Dispatched when syntax validation state changes. | | canceled | `CustomEvent` | Dispatched when the editor cancels initialization. | | ready | `CustomEvent` | Dispatched when the editor finishes initialization and becomes ready. | | input | `CustomEvent` | Dispatched when the element's value changes as a result of a user action. | | change | `CustomEvent` | Dispatched when the user modifies and commits the element's value. | | reset | `CustomEvent` | Dispatched when the control state is reset to its initial value. | | invalid | `CustomEvent` | Dispatched when the control is invalid. | ### CSS Properties | name | value | description | | ---- | ----- | ----------- | | --background | `string` | [MDN](https://mdn.dev/CSS/background) | | --border | `string` | [MDN](https://mdn.dev/CSS/border) | | --border-radius | `string` | [MDN](https://mdn.dev/CSS/border-radius) | | --min-height | `string` | [MDN](https://mdn.dev/CSS/min-height) | | --padding | `string` | [MDN](https://mdn.dev/CSS/padding) | ## nve-monaco-problems A Monaco Editor based tree view for presenting problems (i.e. diagnostics markers). ### Example ```html ``` ### Import ```javascript import '@nvidia-elements/monaco/problems/define.js'; ``` ### Slots | name | value | description | | ---- | ----- | ----------- | | empty | `string` | Slot for displaying a message when empty. | ### Properties / Attributes | property (attribute) | value | description | | -------------------- | ----- | ----------- | | problems | `Problem[]` | | ### Events | name | value | description | | ---- | ----- | ----------- | | problem-selected | `CustomEvent` | Dispatched when the user selects a problem. | | problem-activated | `CustomEvent` | Dispatched when the user activates a problem. | | problem-context-menu | `CustomEvent` | Dispatched when the user requests a problem's context menu. | | canceled | `CustomEvent` | Dispatched when the editor cancels initialization. | | ready | `CustomEvent` | Dispatched when the editor finishes initialization and becomes ready. | ### CSS Properties | name | value | description | | ---- | ----- | ----------- | | --background | `string` | [MDN](https://mdn.dev/CSS/background) | | --min-height | `string` | [MDN](https://mdn.dev/CSS/min-height) | ## nve-layout Layout utility for native HTML elements ### Example ```html
columns 1-6
columns 7-12
``` ### Values | name | type | value | | ---- | ---- | ------ | | `nve-layout` | `string` |`column`, `row`, `full`, `grow`, `align:left`, `align:right`, `align:top`, `align:bottom`, `align:horizontal-center`, `align:vertical-center`, `align:horizontal-stretch`, `align:vertical-stretch`, `align:wrap`, `align:center`, `align:stretch`, `align:space-around`, `align:space-between`, `align:space-evenly`, `gap:xs`, `gap:sm`, `gap:lg`, `gap:xl`, `pad:xs`, `pad-top:xs`, `pad-left:xs`, `pad-right:xs`, `pad-bottom:xs`, `pad-x:xs`, `pad-y:xs`, `pad:sm`, `pad-top:sm`, `pad-left:sm`, `pad-right:sm`, `pad-bottom:sm`, `pad-x:sm`, `pad-y:sm`, `pad:lg`, `pad-top:lg`, `pad-left:lg`, `pad-right:lg`, `pad-bottom:lg`, `pad-x:lg`, `pad-y:lg`, `pad:xl`, `pad-top:xl`, `pad-left:xl`, `pad-right:xl`, `pad-bottom:xl`, `pad-x:xl`, `pad-y:xl`, `grid`, `span-items:1`, `span:1`, `span-items:2`, `span:2`, `span-items:3`, `span:3`, `span-items:4`, `span:4`, `span-items:5`, `span:5`, `span-items:6`, `span:6`, `span-items:7`, `span:7`, `span-items:8`, `span:8`, `span-items:9`, `span:9`, `span-items:10`, `span:10`, `span-items:11`, `span:11`, `span-items:12`, `span:12` | ## nve-text Typography style utility for native HTML elements ### Example ```html

heading

body

label

heading large

heading small

body content small

body content large

monospace

code

nowrap

muted

emphasis

start

center

end

``` ### Values | name | type | value | | ---- | ---- | ------ | | `nve-text` | `string` |`body`, `heading`, `label`, `list`, `code`, `link`, `truncate`, `xl`, `lg`, `sm`, `xs`, `unstyled`, `nav`, `disabled`, `visited`, `no-visit`, `no-underline`, `emphasis`, `hover`, `muted`, `inherit`, `bold`, `semibold`, `regular`, `medium`, `light`, `uppercase`, `lowercase`, `capitalize`, `start`, `center`, `end`, `nowrap`, `monospace` | ## Icons List of all available icon names for nve-icon and nve-icon-button. ## Available Icons (275) `placeholder`, `caret`, `person`, `menu`, `cancel`, `gear`, `chevron`, `logout`, `copy`, `more-actions`, `add`, `arrow`, `delete`, `download`, `search`, `split-vertical`, `sparkles`, `branch`, `refresh`, `double-chevron`, `academic-cap`, `add-asset`, `add-comment`, `add-grid`, `add-user`, `ancestors`, `archive`, `arrow-angle`, `arrow-both`, `arrow-cycle`, `arrow-path-rounded-square`, `arrow-stop`, `at-symbol`, `backspace`, `bar-pill-stack`, `bars-3`, `bars-3-bottom-left`, `bars-3-bottom-right`, `bars-3-center-left`, `bars-4`, `beaker`, `bell`, `bell-slash`, `bell-stroke`, `bold`, `book`, `bookmark`, `bookmark-stroke`, `bounding-box`, `briefcase`, `broadcast`, `browser`, `bug`, `calendar`, `camera`, `carets-closed-square`, `carousel`, `category-list`, `chart-bar`, `chat-bubble`, `chat-bubbles`, `check`, `check-badge`, `checklist`, `checkmark-circle`, `chip`, `circle`, `circle-angled-line`, `circle-dash`, `circle-dot`, `circle-dot-arrows`, `circle-half`, `circle-rule`, `circle-tick`, `clipboard`, `clock`, `clock-circle-arrow`, `cloud`, `cloud-download`, `cloud-upload`, `code`, `collapse-all`, `collapse-details`, `color-palette`, `columns`, `compare`, `computer`, `connect-node`, `connected-blocks`, `cross-hairs`, `cursor-rays`, `cursor-ripples`, `data-management`, `delete-node`, `doc-checkmark`, `dock-bottom`, `dock-none`, `dock-side`, `document`, `document-clipboard`, `dot`, `dot-stroke`, `drag`, `dropper`, `duplicate`, `edit`, `ellipses`, `envelope`, `exclamation-circle`, `exclamation-mark`, `exclamation-triangle`, `expand-all`, `expand-details`, `expression`, `eye`, `eye-hidden`, `face-frown`, `face-smile`, `fast-forward`, `fast-forward-10`, `film`, `filter`, `filter-stroke`, `flag`, `flag-stroke`, `fold`, `folder`, `fork`, `globe`, `globe-alt-stroke`, `group`, `group-boxes`, `hand`, `hash`, `heading`, `home`, `horizontal-rule`, `hourglass`, `hourglass-end`, `hourglass-mid`, `hourglass-start`, `identification`, `image`, `inbox`, `infinity`, `information-circle-stroke`, `inspect`, `italic`, `key`, `keyboard`, `laptop-phone`, `layers`, `lifebuoy`, `lightbulb`, `lightning-bolt`, `link`, `list-ordered`, `list-unordered`, `lock`, `login`, `looping`, `looping-off`, `map`, `map-drives`, `map-pin`, `markdown`, `maximize`, `megaphone`, `merge`, `meter`, `minimize`, `minus`, `minus-circle`, `moon`, `multiselect`, `music-note`, `newspaper`, `not-allowed`, `numbers`, `office-building`, `outline`, `paper-airplane`, `paper-clip`, `pause`, `pencil-square`, `person-2`, `person-3`, `person-circle`, `phone`, `picture-in-picture`, `pie-chart`, `pin`, `pizza-slice`, `play`, `plug`, `plus-circle`, `plus-minus`, `pointer`, `pointer-stroke`, `priority-high`, `priority-low`, `priority-medium`, `projector`, `pull-close`, `pull-draft`, `pull-open`, `pulse`, `puzzle-piece`, `question-mark-circle`, `question-mark-circle-stroke`, `rectangle-group`, `rectangle-stack-horizontal`, `rectangle-stack-vertical`, `redo`, `reply`, `rewind`, `rewind-10`, `rocketship`, `running`, `scale`, `scissors`, `sensor`, `server`, `server-stack`, `shapes`, `share`, `signal`, `signal-slash`, `signpost`, `sort-ascending`, `sort-descending`, `soundwave`, `split-horizontal`, `split-none`, `star`, `star-half`, `star-stroke`, `start`, `status-offline`, `status-online`, `stop`, `stop-sign`, `stopwatch`, `strikethrough`, `sun`, `swatch`, `switch`, `switch-apps`, `table`, `tag`, `task`, `telescope`, `template`, `terminal`, `thumb`, `thumb-stroke`, `traffic-cone`, `transparent-box`, `trend-down`, `trend-up`, `trophy`, `truck`, `typography`, `undo`, `unlock`, `upload`, `video-camera`, `view-as-grid`, `volume`, `volume-muted`, `wifi`, `wrench`, `x-circle`, `zoom-in`, `zoom-out` ## Tokens List of all available semantic CSS custom properties / design tokens for theming. ## CSS Variables Available semantic design tokens for theming. | name | value | Description | | -------- | ----- | ----------- | | --nve-ref-animation-easing-100 | ease-in-out | Use for smooth transitions | | --nve-ref-border-color | var(--nve-ref-color-neutral-800) | Use for default borders that match the standard color scheme | | --nve-ref-border-color-emphasis | var(--nve-ref-color-neutral-1000) | Use for borders that need high contrast and emphasis | | --nve-ref-border-color-inverse | var(--nve-ref-color-scheme-inverse) | Use for borders on inverse color scheme backgrounds | | --nve-ref-border-color-muted | var(--nve-ref-color-neutral-700) | Use for subtle borders that blend with backgrounds | | --nve-ref-border-radius-full | 999px | Use for fully rounded pill-shaped elements like buttons and badges | | --nve-ref-border-radius-lg | 14px | Use for generous corner rounding on large containers | | --nve-ref-border-radius-md | 8px | Use for standard corner rounding on cards and panels | | --nve-ref-border-radius-none | 0px | Use for square corners with no rounding | | --nve-ref-border-radius-sm | 6px | Use for slight corner rounding on form controls and small components | | --nve-ref-border-radius-xl | 24px | Use for very rounded corners on prominent containers | | --nve-ref-border-radius-xs | 4px | Use for subtle corner rounding on compact elements | | --nve-ref-border-width-lg | 3px | Use for prominent borders on emphasized containers | | --nve-ref-border-width-md | 2px | Use for standard borders on containers and panels | | --nve-ref-border-width-sm | 1px | Use for subtle borders on cards and dividers | | --nve-ref-border-width-xl | 4px | Use for very thick borders on highly emphasized elements | | --nve-ref-font-family | var(--nve-ref-font-family-inter) | Use for default body text and UI elements | | --nve-ref-font-size-100 | 12px | Use for small body text or compact labels | | --nve-ref-font-size-1000 | 40px | Use for default display text | | --nve-ref-font-size-1100 | 44px | Use for large display text | | --nve-ref-font-size-1200 | 50px | Use for extra large display text | | --nve-ref-font-size-200 | 14px | Use for default body text, labels, and small headings | | --nve-ref-font-size-300 | 16px | Use for large body text or small headings | | --nve-ref-font-size-400 | 18px | Use for default headings or extra large body text | | --nve-ref-font-size-50 | 10px | Use for very small labels or compact UI text | | --nve-ref-font-size-500 | 20px | Use for large headings | | --nve-ref-font-size-600 | 24px | Use for extra large headings | | --nve-ref-font-size-700 | 28px | Use for very large headings | | --nve-ref-font-size-800 | 32px | Use for prominent headings | | --nve-ref-font-size-900 | 36px | Use for small display text | | --nve-ref-font-weight-bold | 700 | Use for strong text emphasis | | --nve-ref-font-weight-extra-bold | 800 | Use for maximum text emphasis | | --nve-ref-font-weight-light | 200 | Use for subtle text emphasis | | --nve-ref-font-weight-medium | 500 | Use for labels and medium emphasis | | --nve-ref-font-weight-regular | 400 | Use for body text and default content | | --nve-ref-font-weight-semibold | 600 | Use for navigation and strong emphasis | | --nve-ref-shadow-100 | 0px 16px 32px 0px oklch(12.6% 0.022 276.4 / 0.02) | Use for subtle elevation on cards and floating elements | | --nve-ref-shadow-200 | 0px 16px 32px 0px oklch(12.6% 0.022 276.4 / 0.05) | Use for light elevation on raised panels and modals | | --nve-ref-shadow-300 | 0px 16px 32px 0px oklch(12.6% 0.022 276.4 / 0.08) | Use for moderate elevation on dialogs and overlays | | --nve-ref-shadow-400 | 0px 16px 32px 0px oklch(12.6% 0.022 276.4 / 0.12) | Use for prominent elevation on important floating content | | --nve-ref-shadow-500 | 0px 16px 32px 0px oklch(12.6% 0.022 276.4 / 0.17) | Use for maximum elevation on top-level modals and popovers | | --nve-ref-size-100 | 4px | Use for tight padding and margins within small elements | | --nve-ref-size-1000 | 40px | Use for maximum padding and margins within very large containers | | --nve-ref-size-150 | 6px | Use for compact padding and margins within elements | | --nve-ref-size-200 | 8px | Use for standard padding and margins within form controls and small components | | --nve-ref-size-250 | 10px | Use for comfortable padding and margins within medium elements | | --nve-ref-size-300 | 12px | Use for standard padding and margins within buttons and interactive elements | | --nve-ref-size-400 | 16px | Use for comfortable padding and margins within cards and panels | | --nve-ref-size-50 | 2px | Use for minimal padding and margins within compact elements | | --nve-ref-size-500 | 20px | Use for generous padding and margins within larger components | | --nve-ref-size-600 | 24px | Use for spacious padding and margins within containers | | --nve-ref-size-700 | 28px | Use for extra padding and margins within large components | | --nve-ref-size-800 | 32px | Use for standard height of form inputs and buttons | | --nve-ref-size-900 | 36px | Use for extra large padding and margins within oversized elements | | --nve-ref-space-lg | 24px | Use for generous gaps between major sections and content blocks | | --nve-ref-space-md | 16px | Use for comfortable gaps between sections and groups of elements | | --nve-ref-space-none | 0px | Use when no spacing is needed between elements | | --nve-ref-space-sm | 12px | Use for standard gaps between form fields and sibling elements in layouts | | --nve-ref-space-xl | 32px | Use for large gaps between distinct page sections | | --nve-ref-space-xs | 8px | Use for small gaps between form fields and related content | | --nve-sys-accent-primary-background | var(--nve-ref-color-brand-green-900) | Use for primary accent backgrounds and key visual elements | | --nve-sys-accent-secondary-background | var(--nve-ref-color-blue-cobalt-1000) | Use for secondary accent backgrounds and supporting visual elements | | --nve-sys-accent-tertiary-background | var(--nve-ref-color-scheme-inverse) | Use for tertiary accent backgrounds and subtle visual elements | | --nve-sys-interaction-background | var(--nve-ref-color-neutral-600) | Use for default interactive element backgrounds | | --nve-sys-interaction-background-100 | var(--nve-ref-color-neutral-600) | Use for subtle interactive element backgrounds | | --nve-sys-interaction-background-200 | var(--nve-ref-color-neutral-500) | Use for standard interactive element backgrounds | | --nve-sys-interaction-background-300 | var(--nve-ref-color-neutral-500) | Use for elevated interactive element backgrounds | | --nve-sys-interaction-color | var(--nve-ref-color-neutral-1200) | Use for default interactive element text color | | --nve-sys-interaction-destructive-background | var(--nve-ref-color-red-cardinal-1100) | Use for background color in destructive action buttons | | --nve-sys-interaction-destructive-color | var(--nve-sys-text-white-color) | Use for text color in destructive action buttons | | --nve-sys-interaction-disabled-background | var(--nve-ref-color-neutral-600) | Use for background color in disabled interactive elements | | --nve-sys-interaction-disabled-color | var(--nve-ref-color-neutral-800) | Use for text color in disabled interactive elements | | --nve-sys-interaction-emphasis-background | var(--nve-sys-accent-primary-background) | Use for background color in primary call-to-action buttons | | --nve-sys-interaction-emphasis-color | var(--nve-sys-text-black-color) | Use for text color in primary call-to-action buttons | | --nve-sys-interaction-field-background | var(--nve-sys-interaction-background) | Use for background color in form inputs and text fields | | --nve-sys-interaction-field-background-100 | var(--nve-sys-interaction-background-100) | Use for subtle form input backgrounds | | --nve-sys-interaction-field-background-200 | var(--nve-sys-interaction-background-200) | Use for standard form input backgrounds | | --nve-sys-interaction-field-background-300 | var(--nve-sys-interaction-background-300) | Use for elevated form input backgrounds | | --nve-sys-interaction-field-color | var(--nve-sys-interaction-color) | Use for text color in form inputs and text fields | | --nve-sys-interaction-field-height | var(--nve-ref-size-800) | Use for standard height of form inputs and buttons | | --nve-sys-interaction-highlighted-background | var(--nve-ref-color-blue-cobalt-500) | Use for background color in highlighted interactive elements | | --nve-sys-interaction-highlighted-color | var(--nve-sys-interaction-color) | Use for text color in highlighted interactive elements | | --nve-sys-interaction-highlighted-muted-background | var(--nve-ref-color-blue-cobalt-300) | Use for subtle highlighted element backgrounds | | --nve-sys-interaction-hover-background | var(--nve-sys-interaction-background) | Use for background color when hovering over interactive elements | | --nve-sys-interaction-hover-color | var(--nve-sys-text-emphasis-color) | Use for text color when hovering over interactive elements | | --nve-sys-interaction-selected-background | var(--nve-sys-interaction-background) | Use for background color in selected interactive elements | | --nve-sys-interaction-selected-color | var(--nve-sys-text-emphasis-color) | Use for text color in selected interactive elements | | --nve-sys-interaction-state-base | var(--nve-sys-interaction-background) | Use as the base color when computing dynamic interaction states | | --nve-sys-interaction-state-mix | var(--nve-ref-color-neutral-1200) | Use as the mix color when computing dynamic interaction states | | --nve-sys-layer-backdrop-background | var(--nve-ref-color-alpha-black-400) | Use for backdrop behind modals and overlays to dim the background | | --nve-sys-layer-canvas-accent-background | var(--nve-ref-color-neutral-400) | Use for subtle accent backgrounds on the page body | | --nve-sys-layer-canvas-background | var(--nve-ref-color-neutral-300) | Use for page body background, the base surface in the layer hierarchy | | --nve-sys-layer-canvas-color | var(--nve-sys-text-color) | Use for text color on the page body background | | --nve-sys-layer-container-accent-background | var(--nve-ref-color-neutral-100) | Use for subtle accent backgrounds within containers | | --nve-sys-layer-container-background | var(--nve-ref-color-white) | Use for card, panel, and tab container backgrounds | | --nve-sys-layer-container-color | var(--nve-sys-text-color) | Use for text color on container surfaces | | --nve-sys-layer-overlay-accent-background | var(--nve-ref-color-neutral-100) | Use for subtle accent backgrounds within overlays | | --nve-sys-layer-overlay-background | var(--nve-ref-color-white) | Use for modal, drawer, and dropdown menu backgrounds | | --nve-sys-layer-overlay-color | var(--nve-sys-text-color) | Use for text color on overlay surfaces | | --nve-sys-layer-popover-accent-background | var(--nve-ref-color-neutral-1100) | Use for subtle accent backgrounds within popovers | | --nve-sys-layer-popover-arrow-offset | var(--nve-ref-size-100) | Use for positioning popover arrow indicators | | --nve-sys-layer-popover-arrow-padding | var(--nve-ref-size-150) | Use for padding around popover arrow indicators | | --nve-sys-layer-popover-background | var(--nve-ref-color-neutral-1200) | Use for tooltip, toast, and notification backgrounds | | --nve-sys-layer-popover-color | var(--nve-sys-text-white-color) | Use for text color on popover surfaces | | --nve-sys-layer-popover-offset | var(--nve-ref-size-50) | Use for spacing between popover and its anchor element | | --nve-sys-layer-shell-accent-background | var(--nve-ref-color-neutral-100) | Use for subtle accent backgrounds on the application shell | | --nve-sys-layer-shell-background | var(--nve-ref-color-scheme-base) | Use for application shell or navigation bar backgrounds | | --nve-sys-layer-shell-color | var(--nve-sys-text-color) | Use for text color on the application shell | | --nve-sys-scrollbar-thumb-color | var(--nve-ref-border-color-muted) | Use for scrollbar thumb color in scrollable containers | | --nve-sys-scrollbar-track-color | var(--nve-ref-color-alpha-black-200) | Use for scrollbar track color in scrollable containers | | --nve-sys-scrollbar-width | thin | Use for scrollbar width in scrollable containers | | --nve-sys-status-color | var(--nve-ref-color-neutral-1000) | Use for default task status indicators | | --nve-sys-status-failed-color | var(--nve-ref-color-red-cardinal-1100) | Use for failed task status indicators | | --nve-sys-status-finished-color | var(--nve-ref-color-green-grass-1100) | Use for finished task status indicators | | --nve-sys-status-ignored-color | var(--nve-ref-color-neutral-1100) | Use for ignored task status indicators | | --nve-sys-status-pending-color | var(--nve-ref-color-neutral-1100) | Use for pending task status indicators | | --nve-sys-status-queued-color | var(--nve-ref-color-blue-indigo-1100) | Use for queued task status indicators | | --nve-sys-status-restarting-color | var(--nve-ref-color-yellow-amber-1100) | Use for restarting task status indicators | | --nve-sys-status-running-color | var(--nve-ref-color-blue-cobalt-1100) | Use for running task status indicators | | --nve-sys-status-scheduled-color | var(--nve-ref-color-purple-violet-1100) | Use for scheduled task status indicators | | --nve-sys-status-starting-color | var(--nve-ref-color-green-mint-1100) | Use for starting task status indicators | | --nve-sys-status-stopping-color | var(--nve-ref-color-pink-rose-1100) | Use for stopping task status indicators | | --nve-sys-status-unknown-color | var(--nve-sys-text-black-color) | Use for unknown task status indicators | | --nve-sys-support-accent-color | var(--nve-sys-accent-secondary-background) | Use for accent UI feedback text and icons | | --nve-sys-support-accent-emphasis-color | var(--nve-ref-color-blue-cobalt-1100) | Use for emphasized accent UI feedback text and icons | | --nve-sys-support-accent-muted-color | var(--nve-ref-color-blue-cobalt-400) | Use for subtle accent UI feedback text and icons | | --nve-sys-support-color | var(--nve-ref-color-neutral-1000) | Use for default UI feedback text and icons | | --nve-sys-support-danger-color | var(--nve-ref-color-red-cardinal-1100) | Use for error feedback text and icons in alerts and badges | | --nve-sys-support-danger-emphasis-color | var(--nve-ref-color-red-cardinal-1100) | Use for emphasized error feedback text and icons | | --nve-sys-support-danger-muted-color | var(--nve-ref-color-red-cardinal-400) | Use for subtle error feedback text and icons | | --nve-sys-support-emphasis-color | var(--nve-ref-color-neutral-1000) | Use for emphasized default UI feedback text and icons | | --nve-sys-support-muted-color | var(--nve-ref-color-neutral-600) | Use for subtle default UI feedback text and icons | | --nve-sys-support-success-color | var(--nve-ref-color-green-grass-1100) | Use for success feedback text and icons in alerts and badges | | --nve-sys-support-success-emphasis-color | var(--nve-ref-color-green-grass-1100) | Use for emphasized success feedback text and icons | | --nve-sys-support-success-muted-color | var(--nve-ref-color-green-grass-400) | Use for subtle success feedback text and icons | | --nve-sys-support-warning-color | var(--nve-ref-color-yellow-nova-800) | Use for warning feedback text and icons in alerts and badges | | --nve-sys-support-warning-emphasis-color | var(--nve-ref-color-yellow-nova-1000) | Use for emphasized warning feedback text and icons | | --nve-sys-support-warning-muted-color | var(--nve-ref-color-yellow-nova-300) | Use for subtle warning feedback text and icons | | --nve-sys-text-black-color | var(--nve-ref-color-black) | Use for text that must appear on light backgrounds | | --nve-sys-text-color | var(--nve-ref-color-neutral-1200) | Use for default body text and general content | | --nve-sys-text-emphasis-color | var(--nve-ref-color-neutral-1200) | Use for highlighted text, selected items, and high-priority content | | --nve-sys-text-link-color | var(--nve-ref-color-neutral-1200) | Use for default link text color | | --nve-sys-text-link-disabled-color | var(--nve-ref-color-neutral-400) | Use for disabled link text | | --nve-sys-text-link-emphasis-color | var(--nve-ref-color-blue-cobalt-1000) | Use for emphasized link text | | --nve-sys-text-link-hover-color | var(--nve-ref-color-blue-cobalt-1100) | Use for link text when hovered or focused | | --nve-sys-text-link-visited-color | var(--nve-ref-color-purple-lavender-1000) | Use for visited link text | | --nve-sys-text-muted-color | var(--nve-ref-color-neutral-1100) | Use for secondary text, labels, and less prominent content | | --nve-sys-text-placeholder-color | var(--nve-ref-color-neutral-900) | Use for placeholder text in input fields and form controls | | --nve-sys-text-white-color | var(--nve-ref-color-white) | Use for text that must appear on dark backgrounds | | --nve-sys-visualization-categorical-amber | var(--nve-ref-color-yellow-amber-1000) | Use for categorical data visualization when representing distinct groups | | --nve-sys-visualization-categorical-cyan | var(--nve-ref-color-teal-cyan-800) | Use for categorical data visualization when representing distinct groups | | --nve-sys-visualization-categorical-grass | var(--nve-ref-color-green-grass-1000) | Use for categorical data visualization when representing distinct groups | | --nve-sys-visualization-categorical-lavender | var(--nve-ref-color-purple-lavender-900) | Use for categorical data visualization when representing distinct groups | | --nve-sys-visualization-categorical-nova | var(--nve-ref-color-yellow-nova-800) | Use for categorical data visualization when representing distinct groups | | --nve-sys-visualization-categorical-pear | var(--nve-ref-color-lime-pear-900) | Use for categorical data visualization when representing distinct groups | | --nve-sys-visualization-categorical-pumpkin | var(--nve-ref-color-orange-pumpkin-900) | Use for categorical data visualization when representing distinct groups | | --nve-sys-visualization-categorical-red | var(--nve-ref-color-red-cardinal-1000) | Use for categorical data visualization when representing distinct groups | | --nve-sys-visualization-categorical-rose | var(--nve-ref-color-pink-rose-900) | Use for categorical data visualization when representing distinct groups | | --nve-sys-visualization-categorical-seafoam | var(--nve-ref-color-teal-seafoam-900) | Use for categorical data visualization when representing distinct groups | | --nve-sys-visualization-categorical-slate | var(--nve-ref-color-neutral-1000) | Use for categorical data visualization when representing distinct groups | | --nve-sys-visualization-categorical-violet | var(--nve-ref-color-purple-violet-1000) | Use for categorical data visualization when representing distinct groups | | --nve-sys-visualization-sequential-diverging-red-green-100 | oklch(49.9% 0.159 23.4) | Use for the most extreme negative values in a diverging red-green scale | | --nve-sys-visualization-sequential-diverging-red-green-200 | oklch(59.6% 0.195 23.8) | Use for strong negative values that deviate significantly from center | | --nve-sys-visualization-sequential-diverging-red-green-300 | oklch(68.4% 0.193 22) | Use for moderate negative values below the neutral midpoint | | --nve-sys-visualization-sequential-diverging-red-green-400 | oklch(83.3% 0.083 18.1) | Use for slight negative values just below the center point | | --nve-sys-visualization-sequential-diverging-red-green-500 | var(--nve-ref-color-neutral-400) | Use for neutral values at the center point of a diverging scale | | --nve-sys-visualization-sequential-diverging-red-green-600 | oklch(86.4% 0.117 148.8) | Use for slight positive values just above the center point | | --nve-sys-visualization-sequential-diverging-red-green-700 | oklch(72.5% 0.176 148.7) | Use for moderate positive values above the neutral midpoint | | --nve-sys-visualization-sequential-diverging-red-green-800 | oklch(62.7% 0.157 148.3) | Use for strong positive values that deviate significantly from center | | --nve-sys-visualization-sequential-diverging-red-green-900 | oklch(47.5% 0.109 150.4) | Use for the most extreme positive values in a diverging red-green scale | | --nve-sys-visualization-sequential-diverging-virdis-100 | oklch(91.8% 0.187 102.2) | Use for the highest values in a sequential viridis scale | | --nve-sys-visualization-sequential-diverging-virdis-1000 | oklch(49.1% 0.083 242.3) | Use for very low values in a sequential viridis scale | | --nve-sys-visualization-sequential-diverging-virdis-1100 | oklch(45.3% 0.094 261.6) | Use for near-minimum values in a sequential viridis scale | | --nve-sys-visualization-sequential-diverging-virdis-1200 | oklch(41.9% 0.108 278.7) | Use for very low values approaching the bottom of a viridis scale | | --nve-sys-visualization-sequential-diverging-virdis-1300 | oklch(37.1% 0.124 293.4) | Use for near-bottom values in a sequential viridis scale | | --nve-sys-visualization-sequential-diverging-virdis-1400 | oklch(33.3% 0.134 306.3) | Use for minimal values in a sequential viridis scale | | --nve-sys-visualization-sequential-diverging-virdis-1500 | oklch(27.6% 0.132 318.4) | Use for the lowest values in a sequential viridis scale | | --nve-sys-visualization-sequential-diverging-virdis-200 | oklch(85.9% 0.19 115) | Use for very high values in a sequential viridis scale | | --nve-sys-visualization-sequential-diverging-virdis-300 | oklch(82.1% 0.194 126.8) | Use for high values in a sequential viridis scale | | --nve-sys-visualization-sequential-diverging-virdis-400 | oklch(77.5% 0.187 137.2) | Use for moderately high values in a sequential viridis scale | | --nve-sys-visualization-sequential-diverging-virdis-500 | oklch(73.4% 0.164 147.5) | Use for upper-mid range values in a sequential viridis scale | | --nve-sys-visualization-sequential-diverging-virdis-600 | oklch(69.1% 0.145 157.3) | Use for mid-range values in a sequential viridis scale | | --nve-sys-visualization-sequential-diverging-virdis-700 | oklch(64.6% 0.12 169.6) | Use for lower-mid range values in a sequential viridis scale | | --nve-sys-visualization-sequential-diverging-virdis-800 | oklch(60.2% 0.1 184.4) | Use for moderately low values in a sequential viridis scale | | --nve-sys-visualization-sequential-diverging-virdis-900 | oklch(56.8% 0.087 200.1) | Use for low values in a sequential viridis scale | | --nve-sys-visualization-trend-negative-color | var(--nve-ref-color-red-cardinal-1000) | Use for negative trend indicators in data visualizations | | --nve-sys-visualization-trend-negative-emphasis-color | var(--nve-ref-color-red-cardinal-1100) | Use for emphasized negative trend indicators in data visualizations | | --nve-sys-visualization-trend-positive-color | var(--nve-ref-color-green-grass-1000) | Use for positive trend indicators in data visualizations | | --nve-sys-visualization-trend-positive-emphasis-color | var(--nve-ref-color-green-grass-1100) | Use for emphasized positive trend indicators in data visualizations | # Examples List of all available UI patterns and example templates. - [template-auth](https://nvidia.github.io/elements/context/examples/template-auth.md): Page-level starter for sign-in pages. Centered card with email, password, OAuth options, and signup link. - [template-chat](https://nvidia.github.io/elements/context/examples/template-chat.md): Page-level starter for chat experiences. Conversation list, message thread, and prompt composer. - [template-code-editor](https://nvidia.github.io/elements/context/examples/template-code-editor.md): Page-level starter for IDE-style editors. File tree, tabbed code editor, and console panel. - [template-dashboard](https://nvidia.github.io/elements/context/examples/template-dashboard.md): Page-level starter for analytics dashboards. KPI cards, sparkline trends, and an activity grid. - [template-detail-view](https://nvidia.github.io/elements/context/examples/template-detail-view.md): Page-level starter for object detail views. Breadcrumb, summary metadata, and grouped content sections. - [template-docs](https://nvidia.github.io/elements/context/examples/template-docs.md): Page-level starter for developer docs. Search header, hierarchical nav tree, and an article with prose and code samples. - [template-list-view](https://nvidia.github.io/elements/context/examples/template-list-view.md): Page-level starter for tabular list views. Search, view toggle, and a sortable data grid of records. - [template-media-detail-view](https://nvidia.github.io/elements/context/examples/template-media-detail-view.md): Page-level starter for object detail views with media playback. Player canvas with metadata panel and playback controls. - [template-split-view](https://nvidia.github.io/elements/context/examples/template-split-view.md): Page-level starter for master-detail split views. Data grid of records with a resizable detail panel for the selected row. - [template-wizard](https://nvidia.github.io/elements/context/examples/template-wizard.md): Page-level starter for multi-step wizards. Stepper, form sections, and footer navigation. - [pattern-authentication-login-form](https://nvidia.github.io/elements/context/examples/pattern-authentication-login-form.md): Login form with email and password fields with credential validation. Use for authentication entry points where real-time feedback guides users through sign-in requirements. - [pattern-authentication-login-page](https://nvidia.github.io/elements/context/examples/pattern-authentication-login-page.md): Full login page layout with centered card form using nve-page for responsive page structure. - [pattern-authentication-no-access](https://nvidia.github.io/elements/context/examples/pattern-authentication-no-access.md): Permission denied states informing users of access restrictions with a contact option. - [pattern-dashboard-project-board](https://nvidia.github.io/elements/context/examples/pattern-dashboard-project-board.md): Project board with workflow stage columns for tracking items through a workflow / process pipeline. Use for project management views where teams need to visualize work-in-progress across sequential stages like build, test, and merge workflows. - [pattern-dashboard-training-monitor](https://nvidia.github.io/elements/context/examples/pattern-dashboard-training-monitor.md): Dashboard masonry layout for monitoring workflows with KPI cards, sparkline trends, and a checkpoint evaluation grid. Use for real-time operational views where users need to scan progress and spot anomalies at a glance. - [pattern-editor-diff-view](https://nvidia.github.io/elements/context/examples/pattern-editor-diff-view.md): Side-by-side diff view for comparing configuration changes between releases. Essential for reviewing updates before deploying new AV sensor calibrations or robot parameters. - [pattern-editor-file-browser](https://nvidia.github.io/elements/context/examples/pattern-editor-file-browser.md): IDE-style layout with file tree navigation, code editor, and output panel. Ideal for browsing and editing AV sensor configuration files in a familiar development environment. - [pattern-editor-read-only](https://nvidia.github.io/elements/context/examples/pattern-editor-read-only.md): Reviewing deployed configurations or viewing session logs in a read-only code viewer. Prevents accidental edits while allowing full code navigation and search. - [pattern-empty-states-data-grid-retry](https://nvidia.github.io/elements/context/examples/pattern-empty-states-data-grid-retry.md): Data grid empty state with retry action. Use when requested data is not found and a retry action is available. - [pattern-empty-states-empty-data](https://nvidia.github.io/elements/context/examples/pattern-empty-states-empty-data.md): First-time or empty collection states with an illustration and call-to-action to guide users. - [pattern-empty-states-no-results](https://nvidia.github.io/elements/context/examples/pattern-empty-states-no-results.md): No search results match to suggest refining filters or clearing search criteria. - [pattern-empty-states-offline-mode](https://nvidia.github.io/elements/context/examples/pattern-empty-states-offline-mode.md): Use to show offline mode with information about limited functionality and last sync time. - [pattern-heatmap-occupancy-detection-heatmap](https://nvidia.github.io/elements/context/examples/pattern-heatmap-occupancy-detection-heatmap.md): Grid heatmap displaying occupancy probability for dynamic obstacle detection across a spatial coordinate grid. Ideal for robotics and AV perception teams visualizing sensor fusion output to identify high-occupancy zones and detection blind spots using viridis scale. - [pattern-heatmap-sensor-coverage-heatmap](https://nvidia.github.io/elements/context/examples/pattern-heatmap-sensor-coverage-heatmap.md): Grid heatmap showing sensor coverage for autonomous vehicle perception systems across distance ranges. Useful for AV engineers analyzing LiDAR, radar, and camera fusion performance to identify blind spots. - [pattern-keyboard-shortcuts-shortcut-filled](https://nvidia.github.io/elements/context/examples/pattern-keyboard-shortcuts-shortcut-filled.md): Keyboard shortcut badge with filled styling for displaying key combinations. Use in help dialogs, onboarding tooltips, or documentation to communicate available shortcuts to users. - [pattern-logging-event-timeline](https://nvidia.github.io/elements/context/examples/pattern-logging-event-timeline.md): Chronological event timeline with severity-coded entries for monitoring system events. Use for reviewing operational logs where temporal ordering and quick severity scanning are critical. - [pattern-media-audio-player-card](https://nvidia.github.io/elements/context/examples/pattern-media-audio-player-card.md): Compact audio player controls with playback controls, and timestamp display. Ideal for reviewing audio logs, voice commands, or alert sounds. - [pattern-media-page-layout-video](https://nvidia.github.io/elements/context/examples/pattern-media-page-layout-video.md): Full-page video player layout with metadata panel and playback controls. Use for reviewing recordings that requires detailed contextual information. - [pattern-media-playback-control](https://nvidia.github.io/elements/context/examples/pattern-media-playback-control.md): Playback transport controls with start, rewind, play, fast forward, and end buttons in a flat button group. Use as the core navigation component in media players, simulation reviewers, or timeline-based interfaces. - [pattern-media-playback-speed-control](https://nvidia.github.io/elements/context/examples/pattern-media-playback-speed-control.md): Playback speed control using a rounded button group with preset speed options for audio and video playback. Use when toolbar space allows discrete speed buttons and users need to see all options at once. - [pattern-media-playback-speed-menu-control](https://nvidia.github.io/elements/context/examples/pattern-media-playback-speed-menu-control.md): Compact playback speed control using a flat select dropdown for audio and video playback. Use when toolbar space is tight and a dropdown works better than a button group for speed selection. - [pattern-media-time-scrubber-control](https://nvidia.github.io/elements/context/examples/pattern-media-time-scrubber-control.md): Time scrubber with current position, range slider, and total duration for audio and video playback. Use in media players where users need to seek to a specific timestamp or scan through recorded content. - [pattern-media-video-player-card](https://nvidia.github.io/elements/context/examples/pattern-media-video-player-card.md): Standard video player with playback controls, timeline scrubber, and volume controls. Use for reviewing recorded sensor data, simulation playback, or training video content. - [pattern-media-volume-control](https://nvidia.github.io/elements/context/examples/pattern-media-volume-control.md): Volume control with mute toggle and range slider for audio playback. Use in media players, video reviewers, or any interface where users need fine-grained audio level control. - [pattern-media-zoom-control](https://nvidia.github.io/elements/context/examples/pattern-media-zoom-control.md): Zoom level control with zoom-out, range slider, and zoom-in buttons for video and canvas content. Use in media viewers, map interfaces, or image editors where users need precise zoom control. - [pattern-navigation-complex-tree-navigation](https://nvidia.github.io/elements/context/examples/pattern-navigation-complex-tree-navigation.md): Tree integrated in vertical navigation. Use for providing structured sidebar navigation for application layouts and content organization. - [pattern-navigation-drawer-navigation](https://nvidia.github.io/elements/context/examples/pattern-navigation-drawer-navigation.md): Drawer based navigation. Use for secondary or mobile navigation when available space gets tight. - [pattern-onboarding-multi-step-form-wizard](https://nvidia.github.io/elements/context/examples/pattern-onboarding-multi-step-form-wizard.md): Multi-step wizard layout. Use for complex multi-step forms with validation, progress, and save checkpoints. - [pattern-onboarding-user-onboarding-wizard](https://nvidia.github.io/elements/context/examples/pattern-onboarding-user-onboarding-wizard.md): Multi-step wizard layout with progress stepper for guided workflows. Use for onboarding flows, enrollment forms, or configuration processes where users complete sequential steps with clear progress tracking. - [pattern-panel-accordion](https://nvidia.github.io/elements/context/examples/pattern-panel-accordion.md): Organizing filterable, collapsible content groups in a panel with search input and expandable accordion sections. - [pattern-panel-key-value](https://nvidia.github.io/elements/context/examples/pattern-panel-key-value.md): Displaying metadata like release info, dates, status badges, and links in a side panel with labeled key-value pairs. - [pattern-panel-tabbed-header](https://nvidia.github.io/elements/context/examples/pattern-panel-tabbed-header.md): Switching between categorized detail views with tabbed navigation in the panel header. - [pattern-search-filter-toolbar](https://nvidia.github.io/elements/context/examples/pattern-search-filter-toolbar.md): Search toolbar with filter functionality including progressive filter chips and search combobox for data filtering scenarios. - [pattern-subheader-standard-header-main-page](https://nvidia.github.io/elements/context/examples/pattern-subheader-standard-header-main-page.md): Main page subheaders with breadcrumb, page title, and action buttons in a clean two-row layout. - [pattern-subheader-standard-header-viewer-page](https://nvidia.github.io/elements/context/examples/pattern-subheader-standard-header-viewer-page.md): Viewer page subheader with centered zoom/layout controls and grouped action buttons. Ideal for media viewers, document previews, and split-pane layouts. - [pattern-trend-badge](https://nvidia.github.io/elements/context/examples/pattern-trend-badge.md): Trend badges for displaying data changes and metrics. Perfect for dashboards, analytics, or financial data showing positive, negative, or neutral trends. - [pattern-trend-badge-detail](https://nvidia.github.io/elements/context/examples/pattern-trend-badge-detail.md): Displays a metric with a trend indicator. Ideal for dashboards and analytics where users need to quickly assess changes and understand the scale of change at a glance. - [pattern-trend-card](https://nvidia.github.io/elements/context/examples/pattern-trend-card.md): Trend card for displaying a metric with a trend indicator. Ideal for dashboards and analytics where users need to quickly assess changes and understand the scale of change at a glance. - [pattern-trend-grid](https://nvidia.github.io/elements/context/examples/pattern-trend-grid.md): Trend grid for displaying a list of metrics with a trend indicator. Ideal for dashboards and analytics where users need to quickly assess changes and understand the scale of change at a glance. - [page](https://nvidia.github.io/elements/context/examples/page.md): Nve-page layout with a header and main content. - [page-document-scroll](https://nvidia.github.io/elements/context/examples/page-document-scroll.md): Use document scroll for static content sites that do not require a fixed navigation. - [page-header](https://nvidia.github.io/elements/context/examples/page-header.md): Page header with logo, navigation links, and user actions in a standard layout structure. - [page-header-app-logo](https://nvidia.github.io/elements/context/examples/page-header-app-logo.md): Use the Logo element when representing an application that is part of a suite of applications in a given problem domain. - [page-header-center-navigation](https://nvidia.github.io/elements/context/examples/page-header-center-navigation.md): Page header with navigation centered in the available space for balanced visual hierarchy. - [page-header-dropdown-menu](https://nvidia.github.io/elements/context/examples/page-header-dropdown-menu.md): Use dropdowns and menus to allow progressive disclosure of extra navigation or global user actions. - [page-header-menu-button](https://nvidia.github.io/elements/context/examples/page-header-menu-button.md): Use a Icon Button to represent collapsible top-level navigation, optimal for mobile or constrained viewport sizes. - [page-header-prefix-navigation](https://nvidia.github.io/elements/context/examples/page-header-prefix-navigation.md): Page header with primary navigation positioned after the logo and branding area. - [page-header-search](https://nvidia.github.io/elements/context/examples/page-header-search.md): Page header with integrated search functionality for content discovery within the application. - [page-header-suffix-navigation](https://nvidia.github.io/elements/context/examples/page-header-suffix-navigation.md): Page header with all navigation positioned at the end for common and persistent user actions between page navigation. - [page-header-user-detail](https://nvidia.github.io/elements/context/examples/page-header-user-detail.md): Page header displaying user information and avatar for personalized application experiences. - [page-interaction-drawer](https://nvidia.github.io/elements/context/examples/page-interaction-drawer.md): Use Drawer to create navigation that is outside the context of the current view. - [page-interaction-panel-navigation](https://nvidia.github.io/elements/context/examples/page-interaction-panel-navigation.md): Use Page Panel with Toolbar to create complex navigation groups that are within the context of the current view. - [page-invoker-command](https://nvidia.github.io/elements/context/examples/page-invoker-command.md): Use Page Panel with Invoker Command API to dynamically open and close page panels. - [page-layout-editor](https://nvidia.github.io/elements/context/examples/page-layout-editor.md): IDE-style editor layout with file outline, main editor, and console panels. Use for code playgrounds, configuration editors, or development tools that need a split-pane workspace with toolbar controls. - [page-loader](https://nvidia.github.io/elements/context/examples/page-loader.md): Full-page loading indicator displaying centered spinner for initial page load states. - [page-loader-interactive](https://nvidia.github.io/elements/context/examples/page-loader-interactive.md): Interactive page loader that starts programmatically via button click. Use when user actions such as form submissions, data refreshes, or navigation events start loading states rather than on initial page load. - [page-panel-closable](https://nvidia.github.io/elements/context/examples/page-panel-closable.md): Closable page panels that fully remove from the layout when dismissed. Use when panels open on demand for temporary tasks like viewing item details or applying filters, and the user needs full main content space when done. - [page-panel-expandable](https://nvidia.github.io/elements/context/examples/page-panel-expandable.md): Expandable page panels that collapse to a slim strip and toggle open with chevron buttons. Use when panels contain supplementary content that users access intermittently, preserving main content space while keeping panels accessible. - [page-panel-headings](https://nvidia.github.io/elements/context/examples/page-panel-headings.md): Page panel with title and subtitle headings in the header for labeling panel content. Use to provide clear context about what the panel contains, such as a details pane or properties inspector. - [page-panel-tabs](https://nvidia.github.io/elements/context/examples/page-panel-tabs.md): Page panel with tabbed header for switching between categorized content views within a sidebar. Use when a panel contains related sections like outline, search, and settings that share the same screen region. - [page-resize](https://nvidia.github.io/elements/context/examples/page-resize.md): Resizable left panel with drag handle for adjustable sidebar width. Use when users need to control the balance between navigation or outline panels and main content area. - [page-resize-multi](https://nvidia.github.io/elements/context/examples/page-resize-multi.md): Multi-panel resizable layout with independent drag handles on left, right, and bottom panels. Use for complex workspaces like IDEs or dashboards where users need to customize the size of each content region independently. - [page-resize-snap](https://nvidia.github.io/elements/context/examples/page-resize-snap.md): Resize handle with snap-to-boundary behavior on double-click for quickly toggling a panel between collapsed and expanded states. Use for detail panels that users frequently show and hide. - [page-slot-subheader-large](https://nvidia.github.io/elements/context/examples/page-slot-subheader-large.md): Large subheader panel with back navigation, title, metadata, and action buttons. Use for detail pages that need prominent context like entity names, status badges, and key-value metadata above the main content. - [page-slots](https://nvidia.github.io/elements/context/examples/page-slots.md): Page layout slot reference showing all available panel positions including header, subheader, left, right, bottom, and aside regions. Use as a starting point for understanding how to compose complex application layouts. - [accordion](https://nvidia.github.io/elements/context/examples/accordion.md): Accordion component for collapsible content sections. Use accordions to progressively disclose information, helping users focus on relevant content while keeping the interface compact and scannable. - [accordion-with-actions](https://nvidia.github.io/elements/context/examples/accordion-with-actions.md): Accordion with action buttons in header for quick operations without expanding. Perfect for list items where users need both to view details and perform actions like edit, delete, or add, keeping common actions immediately accessible. - [alert](https://nvidia.github.io/elements/context/examples/alert.md): Alert for inline informational messages. Use alerts for persistent feedback that doesn't auto-dismiss, ideal for system status updates, or contextual information that users may need to reference while completing tasks. - [alert-invoker-command](https://nvidia.github.io/elements/context/examples/alert-invoker-command.md): Dismissible alerts using the Invoker Command API for declarative close behavior. Use `commandfor` and `command="--close"` on action buttons to dismiss individual alerts without custom JavaScript event handling. - [avatar](https://nvidia.github.io/elements/context/examples/avatar.md): Avatar component with text initials, providing a simple way to represent users when profile images are unavailable. - [badge](https://nvidia.github.io/elements/context/examples/badge.md): Badge component with default styling. Use for simple non-interactive labels or status indicators. - [breadcrumb](https://nvidia.github.io/elements/context/examples/breadcrumb.md): Breadcrumb navigation showing page hierarchy with linked items and current location indicator. - [breadcrumb-with-icon-button](https://nvidia.github.io/elements/context/examples/breadcrumb-with-icon-button.md): Breadcrumb with home icon button for quick navigation to the root page, offering a compact starting point. - [breadcrumb-with-menu](https://nvidia.github.io/elements/context/examples/breadcrumb-with-menu.md): Breadcrumb with overflow menu for collapsed navigation levels, ideal for deep hierarchies in limited space. - [button](https://nvidia.github.io/elements/context/examples/button.md): Button component with standard appearance and behavior for primary user actions. - [button-contrast-colored-backgrounds](https://nvidia.github.io/elements/context/examples/button-contrast-colored-backgrounds.md): Use standard interaction styling to keep buttons readable on contrasting backgrounds in light and dark themes. This pattern verifies the static button colors that deliver the intended contrast for each theme. - [button-form-control](https://nvidia.github.io/elements/context/examples/button-form-control.md): Use the form control option for buttons that open custom controls such as dropdowns, filter menus, or pickers within a form layout. This pattern keeps the UI cohesive and helps users recognize the button as part of the form. - [button-group-action-split](https://nvidia.github.io/elements/context/examples/button-group-action-split.md): Split button groups with different interaction styles for primary actions with dropdown alternatives. - [button-group-action-split-rounded](https://nvidia.github.io/elements/context/examples/button-group-action-split-rounded.md): Split button groups with rounded container styling for softer visual appearance and modern aesthetics. - [button-group-disabled](https://nvidia.github.io/elements/context/examples/button-group-disabled.md): Button group in disabled state for indicating unavailable actions or read-only contexts. - [button-invoker-command](https://nvidia.github.io/elements/context/examples/button-invoker-command.md): Use the `commandfor` and `command` attributes to trigger custom Invoker Commands, such as rotating an image. - [card](https://nvidia.github.io/elements/context/examples/card.md): Card component with header, content, and footer sections. Use this as a starting point for simple content containers. - [chat-message-prefix-suffix](https://nvidia.github.io/elements/context/examples/chat-message-prefix-suffix.md): Chat conversation with prefix and suffix avatars. Ideal for multi-user chat applications where you need to distinguish between different participants. - [checkbox](https://nvidia.github.io/elements/context/examples/checkbox.md): Checkbox component with label for binary selection and form input. - [color](https://nvidia.github.io/elements/context/examples/color.md): Color picker input with label and message for selecting hex color values. - [combobox](https://nvidia.github.io/elements/context/examples/combobox.md): Combobox with search input and datalist options for filtering and selection. - [combobox-create-options](https://nvidia.github.io/elements/context/examples/combobox-create-options.md): Combobox with create option behavior that allows users to add new options and tags on the fly. Use when the option list is not exhaustive and users need to enter values that don't yet exist. - [combobox-dynamic-typeahead-search](https://nvidia.github.io/elements/context/examples/combobox-dynamic-typeahead-search.md): Fetches options asynchronously as the user types, cancelling stale requests with AbortController. Use for server-backed search where the full option set is too large to load up front. - [combobox-footer](https://nvidia.github.io/elements/context/examples/combobox-footer.md): Multi-select with footer action button for extra operations on selected items. - [combobox-form](https://nvidia.github.io/elements/context/examples/combobox-form.md): Complete form integration showing combobox with form submission, reset, and programmatic value setting. - [combobox-infinite-scroll](https://nvidia.github.io/elements/context/examples/combobox-infinite-scroll.md): Infinite scroll combobox loading, using the scroll event to append options as the user nears the end of the list. Use for server-backed datasets where loading all options up front is impractical. - [combobox-reset](https://nvidia.github.io/elements/context/examples/combobox-reset.md): Multi-select with reset functionality via icon button and footer button to clear all selections. - [combobox-select-all](https://nvidia.github.io/elements/context/examples/combobox-select-all.md): Multi-select with bulk selection controls (Select All/Deselect All) in footer for efficient mass operations. - [date](https://nvidia.github.io/elements/context/examples/date.md): Date picker input with label and message for selecting calendar dates. - [date-range](https://nvidia.github.io/elements/context/examples/date-range.md): Date range input with start and end date pickers for selecting time periods and date intervals. - [date-types](https://nvidia.github.io/elements/context/examples/date-types.md): Collection of temporal input types including date, datetime, month, week, time, and date range pickers. - [datetime](https://nvidia.github.io/elements/context/examples/datetime.md): Datetime picker input with label and message for selecting both date and time values. - [dialog](https://nvidia.github.io/elements/context/examples/dialog.md): Modal dialog for focused user interactions. Use dialogs for confirmations, simple forms, or important information that requires user attention before continuing, creating a modal overlay that blocks interaction with the underlying page until dismissed. - [dialog-invoker-command](https://nvidia.github.io/elements/context/examples/dialog-invoker-command.md): Use the `commandfor` and `command` attributes to trigger custom Invoker Commands, such as toggling a dialog. - [divider](https://nvidia.github.io/elements/context/examples/divider.md): Horizontal divider for separating content sections with a subtle line. - [dot](https://nvidia.github.io/elements/context/examples/dot.md): Dot component with status indicator, providing a simple visual cue for process states and system status. - [drawer](https://nvidia.github.io/elements/context/examples/drawer.md): Modal drawer with header, content, and footer sections. Use for displaying detailed information, forms, or settings that need more space than a dialog, typically sliding in from the side of the screen. - [dropdown](https://nvidia.github.io/elements/context/examples/dropdown.md): Dropdown implementation using popovertarget attribute to connect trigger and dropdown. Useful for simple dropdown menus. - [dropdown-group](https://nvidia.github.io/elements/context/examples/dropdown-group.md): Cascading dropdown menu group with nested submenus for hierarchical navigation. - [dropdown-group-with-disabled-items](https://nvidia.github.io/elements/context/examples/dropdown-group-with-disabled-items.md): Cascading dropdown menu with disabled menu items in non-interactive states. - [dropdown-group-with-icons](https://nvidia.github.io/elements/context/examples/dropdown-group-with-icons.md): Cascading dropdown menu with leading icons for visual identification of menu item types. - [dropdown-group-with-more-icons](https://nvidia.github.io/elements/context/examples/dropdown-group-with-more-icons.md): Cascading dropdown menu showcasing extra icon varieties for diverse menu actions. - [dropdown-menu](https://nvidia.github.io/elements/context/examples/dropdown-menu.md): Dropdown with popover-positioned menu for trigger-based actions. Use for context menus, settings, and user actions where content appears on demand relative to a trigger button. - [dropzone](https://nvidia.github.io/elements/context/examples/dropzone.md): File dropzone with drag-and-drop area for file upload interactions. - [dropzone-form](https://nvidia.github.io/elements/context/examples/dropzone-form.md): Dropzone integrated with form validation showing file type and size constraint errors. - [file](https://nvidia.github.io/elements/context/examples/file.md): File input with label and validation message. Use for simple file upload fields in forms. - [forms-actions-label-action](https://nvidia.github.io/elements/context/examples/forms-actions-label-action.md): Label with an information button to provide contextual help or more details about the field. - [forms-actions-prefix-suffix](https://nvidia.github.io/elements/context/examples/forms-actions-prefix-suffix.md): Input with prefix and suffix buttons to show fixed text elements like URL protocols and domains. - [forms-actions-search-clear](https://nvidia.github.io/elements/context/examples/forms-actions-search-clear.md): Input with action buttons for search and clear, providing quick access to common operations. - [forms-horizontal](https://nvidia.github.io/elements/context/examples/forms-horizontal.md): Horizontal form layout with labels beside inputs, creating efficient use of horizontal space and familiar desktop form patterns. - [forms-horizontal-inline](https://nvidia.github.io/elements/context/examples/forms-horizontal-inline.md): Space-efficient horizontal layout with inline labels, ideal for dense forms with tight vertical space where quick scanning matters. - [forms-kitchen-sink](https://nvidia.github.io/elements/context/examples/forms-kitchen-sink.md): Comprehensive showcase of all form controls in a grid layout, including input types, states, and advanced patterns use for a complete form design reference. - [forms-prominence-muted](https://nvidia.github.io/elements/context/examples/forms-prominence-muted.md): Use the prominence muted state to lower visual weight of controls in forms. - [forms-validation-error-group](https://nvidia.github.io/elements/context/examples/forms-validation-error-group.md): Login form with grouped error display showing all validation issues together after submission attempt. - [forms-validation-login-form](https://nvidia.github.io/elements/context/examples/forms-validation-login-form.md): Use real-time validation with contextual error messages to disable submit until form is valid. - [forms-validation-reset-form](https://nvidia.github.io/elements/context/examples/forms-validation-reset-form.md): Form reset functionality allowing users to clear individual fields or reset the entire form. - [forms-validation-success-group](https://nvidia.github.io/elements/context/examples/forms-validation-success-group.md): Login form example of success feedback with positive confirmation messages for valid input and successful form submission. - [forms-vertical](https://nvidia.github.io/elements/context/examples/forms-vertical.md): Traditional vertical form layout with labels above inputs, providing clear visual hierarchy and optimal readability for complex forms. - [forms-vertical-inline](https://nvidia.github.io/elements/context/examples/forms-vertical-inline.md): Compact vertical layout with inline labels and controls, maximizing space efficiency while maintaining form clarity and accessibility. - [grid](https://nvidia.github.io/elements/context/examples/grid.md): Data grid for tabular data display with columns and rows. Use grids for presenting structured datasets where users need to scan, compare, and analyze information across many columns, such as dashboards, reports, or data management interfaces. - [grid-bulk-actions](https://nvidia.github.io/elements/context/examples/grid-bulk-actions.md): Use bulk actions for operations on many items. Display only when rows have a selection. Closing bulk actions deselects all selected rows. - [grid-card](https://nvidia.github.io/elements/context/examples/grid-card.md): Nest Grid in Cards for UI patterns such as card tab groups. Use the `container="flat"` attribute to enable proper styling of the grid when nested within a card. - [grid-column-action](https://nvidia.github.io/elements/context/examples/grid-column-action.md): Create column actions by using the `nve-icon-button` to trigger dropdowns or panels that reveal more actions to the user. - [grid-column-dynamic-fixed](https://nvidia.github.io/elements/context/examples/grid-column-dynamic-fixed.md): Dynamic column management with programmatic addition and positioning, for flexible grid configuration with evolving data requirements. - [grid-column-fixed](https://nvidia.github.io/elements/context/examples/grid-column-fixed.md): Fix columns to any given side, but keep fixed columns from spanning past the half way point of the grid. - [grid-column-multi-fixed](https://nvidia.github.io/elements/context/examples/grid-column-multi-fixed.md): Fix many columns to any given side, but keep fixed columns from spanning past the half way point of the grid. - [grid-column-stack-fixed](https://nvidia.github.io/elements/context/examples/grid-column-stack-fixed.md): Stack and fix many columns to any given side, but keep fixed columns from spanning past the half way point of the grid. - [grid-column-width](https://nvidia.github.io/elements/context/examples/grid-column-width.md): Column width control for responsive grid layouts, enabling flexible content sizing and optimal space usage across different screen sizes. - [grid-display-settings](https://nvidia.github.io/elements/context/examples/grid-display-settings.md): Users can customize their data view through a dropdown menu above the grid, allowing them to show/hide columns and restore default settings for a personalized experience. - [grid-flat](https://nvidia.github.io/elements/context/examples/grid-flat.md): Flat container styling for minimal visual weight, providing subtle grid presentation that integrates seamlessly with surrounding content. - [grid-footer](https://nvidia.github.io/elements/context/examples/grid-footer.md): The footer displays contextual information or extra user actions such as pagination. - [grid-full](https://nvidia.github.io/elements/context/examples/grid-full.md): Full-width grid container for max space use, providing edge-to-edge data display for comprehensive information presentation. - [grid-keynav](https://nvidia.github.io/elements/context/examples/grid-keynav.md): The datagrid follows the ARIA Authoring Practices Guide for standardized keyboard navigation. - [grid-multi-select](https://nvidia.github.io/elements/context/examples/grid-multi-select.md): Multi-select rows with checkboxes for bulk operations. Use multi-select when users need to perform actions on many items at once (like delete, export, or bulk edit), placing checkboxes as the first column and setting the selected attribute for proper accessibility. - [grid-pagination](https://nvidia.github.io/elements/context/examples/grid-pagination.md): Use the pagination pattern when working with large data sets that need incremental loading or filtering for performance or useability. - [grid-panel-detail](https://nvidia.github.io/elements/context/examples/grid-panel-detail.md): Use a nve-page-panel when displaying advanced filtering or display settings for the grid. Item detail panels should be open using a action button placed at the end of the grid row. - [grid-panel-grid](https://nvidia.github.io/elements/context/examples/grid-panel-grid.md): Panel Grid displays key value type data sets for details of a given item in a collection. - [grid-placeholder](https://nvidia.github.io/elements/context/examples/grid-placeholder.md): Loading placeholder state with progress indicator. Use grid placeholders during initial data fetching or while loading large datasets, providing visual feedback that content is coming and preventing layout shift when rows populate, improving perceived performance. - [grid-row-action](https://nvidia.github.io/elements/context/examples/grid-row-action.md): Row actions enable extra user actions specific to a given row. Place a `nve-icon-button` at the end of the grid row for actions. - [grid-row-groups](https://nvidia.github.io/elements/context/examples/grid-row-groups.md): Expandable row groups for hierarchical data organization. Use row groups when items have parent-child relationships or nested details (like sessions with uploads, orders with line items), allowing users to progressively disclose details and maintain compact views of large hierarchies. - [grid-row-sort](https://nvidia.github.io/elements/context/examples/grid-row-sort.md): Sortable columns with visual indicators for data organization. Use sort buttons on columns where sorting is meaningful (dates, numbers, names) to help users find patterns, identify outliers, or locate specific data points, supporting three states: none, ascending, and descending. - [grid-scroll-position](https://nvidia.github.io/elements/context/examples/grid-scroll-position.md): Programmatic scroll control using the grid `scrollTo` API. Use for scroll-to-top buttons, jump-to-row navigation, or restoring scroll position after data refreshes in large datasets. - [grid-single-select](https://nvidia.github.io/elements/context/examples/grid-single-select.md): A single select datagrid allows users to choose exactly one row from a data table by providing radio buttons in the first column, ensuring only one item has a selection at a time. To enable single select, place `nve-radio` input as the first grid cell of each row. Set `name` attribute on each radio to ensure to associate the same radio group. - [grid-sort-visibility](https://nvidia.github.io/elements/context/examples/grid-sort-visibility.md): Use the `nve-sort-button` to add grid row sort. The grid follows the ARIA sort spec and automatically sets the appropriate accessibility related attributes to convey the current sorting state. - [icon](https://nvidia.github.io/elements/context/examples/icon.md): Icon component with standard appearance and usage for visual communication and interface navigation. - [input](https://nvidia.github.io/elements/context/examples/input.md): Text input field with label and message for general text entry and form data collection. - [input-input-group](https://nvidia.github.io/elements/context/examples/input-input-group.md): Input group combining select, input, and button for composite controls like domain URL entry. - [input-input-group-filter-group-range](https://nvidia.github.io/elements/context/examples/input-input-group-filter-group-range.md): Input group with date range filters combining select and date inputs for filtering data by time periods. - [logo](https://nvidia.github.io/elements/context/examples/logo.md): NVIDIA logo with aria-label for accessibility. Use for brand identification in headers, footers, and loading states. - [menu](https://nvidia.github.io/elements/context/examples/menu.md): Menu with simple text items for the default menu structure and styling. - [menu-complex](https://nvidia.github.io/elements/context/examples/menu-complex.md): Use a dropdown menu with search and branded logos for application selection interfaces. - [menu-dropdown](https://nvidia.github.io/elements/context/examples/menu-dropdown.md): Menu with keyboard navigation and ARIA disclosure pattern inside a dropdown. Use when menu items need accessible focus management and arrow key navigation. - [menu-vertical-navigation-drawer](https://nvidia.github.io/elements/context/examples/menu-vertical-navigation-drawer.md): Use a navigation drawer to overlay page content for out-of-context navigation. - [menu-vertical-navigation-panel](https://nvidia.github.io/elements/context/examples/menu-vertical-navigation-panel.md): Use an inline navigation panel to push page content aside when navigation is contextual to the page. - [monaco-diff-input-json-schema-validation](https://nvidia.github.io/elements/context/examples/monaco-diff-input-json-schema-validation.md): JSON diff input with schema validation in a form context, blocking submission on errors - [monaco-diff-input-type-script-validation](https://nvidia.github.io/elements/context/examples/monaco-diff-input-type-script-validation.md): TypeScript diff input with real-time type checking that blocks form submission on errors - [monaco-input-json-schema-validation](https://nvidia.github.io/elements/context/examples/monaco-input-json-schema-validation.md): JSON input with schema validation that blocks form submission on validation errors - [monaco-input-type-script-validation](https://nvidia.github.io/elements/context/examples/monaco-input-type-script-validation.md): TypeScript input with real-time type checking that blocks form submission on type errors - [month](https://nvidia.github.io/elements/context/examples/month.md): Month picker with label and validation message. Use for selecting a month and year in forms, such as expiry dates or report periods. - [notification](https://nvidia.github.io/elements/context/examples/notification.md): Notification with auto-dismiss timeout for temporary feedback messages. Use notifications for system-generated alerts, confirmations, or status updates that don't require immediate user action, automatically dismissing after a set duration. - [pagination](https://nvidia.github.io/elements/context/examples/pagination.md): Pagination component with default styling and behavior. - [pagination-custom-select-pattern](https://nvidia.github.io/elements/context/examples/pagination-custom-select-pattern.md): Custom pagination with select dropdown for page size and navigation arrows. - [pagination-forms](https://nvidia.github.io/elements/context/examples/pagination-forms.md): Pagination as a form associated component that participates in form submission and emits change, input, and step-change events. Use when page selection needs to integrate with form data collection or server-side form handling. - [pagination-page-list-pattern](https://nvidia.github.io/elements/context/examples/pagination-page-list-pattern.md): Custom pagination pattern using toolbar with numbered page buttons and navigation arrows. - [pagination-skip-pattern](https://nvidia.github.io/elements/context/examples/pagination-skip-pattern.md): Enhanced pagination pattern with first/last page buttons and numbered page navigation. - [panel](https://nvidia.github.io/elements/context/examples/panel.md): Panel layout with header showing session details and metadata in a collapsible side panel. - [password](https://nvidia.github.io/elements/context/examples/password.md): Password input with toggle visibility for secure credential entry and authentication forms. - [preferences-input-dropdown](https://nvidia.github.io/elements/context/examples/preferences-input-dropdown.md): Preferences input embedded in a dropdown menu triggered from a page header settings button. - [preferences-input-forms](https://nvidia.github.io/elements/context/examples/preferences-input-forms.md): Preferences input integrated with form submission, displaying live JSON value updates. - [progress-bar-labeled](https://nvidia.github.io/elements/context/examples/progress-bar-labeled.md): Use a labeled progress bar with percentage display to communicate upload or task status. - [progressive-filter-chip-custom](https://nvidia.github.io/elements/context/examples/progressive-filter-chip-custom.md): Progressive filter chip with custom button trigger opening a map coordinate picker dropdown. - [progressive-filter-chip-date-range](https://nvidia.github.io/elements/context/examples/progressive-filter-chip-date-range.md): Progressive filter chip with date picker inputs for filtering by date range criteria. - [progressive-filter-chip-text-input](https://nvidia.github.io/elements/context/examples/progressive-filter-chip-text-input.md): Progressive filter chip with numeric text input for threshold-based filtering (greater than, less than). - [progressive-filter-chip-validation](https://nvidia.github.io/elements/context/examples/progressive-filter-chip-validation.md): Progressive filter chip with input validation states showing required field and error styling. - [pulse](https://nvidia.github.io/elements/context/examples/pulse.md): Animated pulse indicator with aria-label for accessibility. Use to draw attention to live updates, active connections, or real-time status. - [radio](https://nvidia.github.io/elements/context/examples/radio.md): Radio button group for mutually exclusive single-choice selection from many options. - [range](https://nvidia.github.io/elements/context/examples/range.md): Range component for numeric value selection, providing a simple slider interface for adjusting values within a defined range. - [search](https://nvidia.github.io/elements/context/examples/search.md): Search input with label and message for query entry and filtering data. - [select](https://nvidia.github.io/elements/context/examples/select.md): Select component with label, options, and message. - [skeleton](https://nvidia.github.io/elements/context/examples/skeleton.md): Skeleton component for text content. Placeholder lines appear while content loads. - [sparkline](https://nvidia.github.io/elements/context/examples/sparkline.md): Sparkline from numeric array values. Use as a compact trend indicator. - [sparkline-data-grid](https://nvidia.github.io/elements/context/examples/sparkline-data-grid.md): Embed sparklines in grid cells to add compact trend context to tabular data. - [sparkline-default-size](https://nvidia.github.io/elements/context/examples/sparkline-default-size.md): Without a size attribute, height scales with the parent text size for typographic alignment. - [steps](https://nvidia.github.io/elements/context/examples/steps.md): Interactive step indicator with status colors for multi-step workflows. Use for wizards, onboarding flows, or process tracking where users can navigate between steps. - [styles-layout-spacing](https://nvidia.github.io/elements/context/examples/styles-layout-spacing.md): - [styles-typography-transforms](https://nvidia.github.io/elements/context/examples/styles-typography-transforms.md): Text transformation utilities for case changes and truncation to handle overflow gracefully. - [switch](https://nvidia.github.io/elements/context/examples/switch.md): Toggle switch for binary on/off controls and feature activation. - [tabs](https://nvidia.github.io/elements/context/examples/tabs.md): Tabs group component for organizing content into selectable sections with disabled state support. - [tabs-external-controls](https://nvidia.github.io/elements/context/examples/tabs-external-controls.md): Drive the same tabs group from external buttons when layouts need tabs and secondary actions to stay in sync with structured panel content. - [tag](https://nvidia.github.io/elements/context/examples/tag.md): Tag component for interactive labeling and categorizing of content, providing clear visual organization and metadata display. - [textarea](https://nvidia.github.io/elements/context/examples/textarea.md): Multi-line text input for longer content entry like comments, descriptions, or messages. - [time](https://nvidia.github.io/elements/context/examples/time.md): Time input with label, min/max time constraints, and help message - [toast](https://nvidia.github.io/elements/context/examples/toast.md): Toast with auto-dismiss for brief, non-critical feedback messages. Use toasts for lightweight confirmations like "Saved", "Copied", or "Action complete" that inform users without requiring interaction or disrupting workflow. - [toggletip](https://nvidia.github.io/elements/context/examples/toggletip.md): Toggletip requiring click to open and close. Unlike tooltips that appear on hover, use toggletips for interactive content, extra details, or when users need time to read or interact with the popover content. - [toolbar](https://nvidia.github.io/elements/context/examples/toolbar.md): Toolbar with action buttons and a settings icon in the suffix slot. - [toolbar-container-flat](https://nvidia.github.io/elements/context/examples/toolbar-container-flat.md): Toolbar with flat container styling for a more subtle appearance. - [toolbar-container-full](https://nvidia.github.io/elements/context/examples/toolbar-container-full.md): Toolbar with full container styling that spans the entire width. - [toolbar-container-inset](https://nvidia.github.io/elements/context/examples/toolbar-container-inset.md): Toolbar with inset container styling and constrained width for contained layouts. - [toolbar-groups](https://nvidia.github.io/elements/context/examples/toolbar-groups.md): Complex toolbar with grouped controls including select dropdowns, button groups, and dividers for text editing scenarios. - [toolbar-status](https://nvidia.github.io/elements/context/examples/toolbar-status.md): Toolbar with status styling showing selection state with accent status and default status variants for bulk actions. - [toolbar-vertical](https://nvidia.github.io/elements/context/examples/toolbar-vertical.md): Vertical toolbar orientation with button groups and dividers for sidebar layouts. - [tooltip](https://nvidia.github.io/elements/context/examples/tooltip.md): Tooltip triggered by popovertarget attribute. Use for providing brief, contextual information on hover or focus without cluttering the interface. - [tree](https://nvidia.github.io/elements/context/examples/tree.md): Tree component with expandable nodes, providing hierarchical data display and navigation for structured content organization. - [tree-node-content](https://nvidia.github.io/elements/context/examples/tree-node-content.md): Tree with rich node content including forms, controls, and interactive elements, enabling complex data management within hierarchical structures. - [week](https://nvidia.github.io/elements/context/examples/week.md): Week picker input for selecting specific weeks in a year for scheduling and planning. ## Auth (template-auth) Page-level starter for sign-in pages. Centered card with email, password, OAuth options, and signup link. ```html NV

Developer Portal

Documentation Support

Sign In

required enter a valid email required minimum length is 6 characters
Forgot password?
Sign in
Or continue with
SSO Provider

Not a member? Sign Up

``` ## Chat (template-chat) Page-level starter for chat experiences. Conversation list, message thread, and prompt composer. ```html NV

Assistant

Documentation Support EL
Conversations Deployment review Schema migration Sensor calibration
AI Hello, how can I help you with your deployment review today? Summarize the failing checks on PR 2381. EL AI Two checks failed on PR 2381: the visual regression suite reported diffs in the dashboard pattern, and the lighthouse budget regressed by 4 points on the editor pattern.
Send
``` ## Code Editor (template-code-editor) Page-level starter for IDE-style editors. File tree, tabbed code editor, and console panel. ```html AV

Config Editor

Sensors Vehicle Perception AV
av-prototype/ sensors/ lidar_config.py camera_config.py radar_config.py perception/ detection.py tracking.py planning/ route_planner.py
lidar_config.py
Problems Output Terminal

No problems detected in workspace

main Ln 1, Col 1 Python
``` ## Dashboard (template-dashboard) Page-level starter for analytics dashboards. KPI cards, sparkline trends, and an activity grid. ```html NV

Infrastructure

Documentation Support EL

Workloads

Training jobs Checkpoints Datasets
Training Epoch 14 / 20 ETA: 4h 23m
24h 7d 30d Export

Model 120B Fine-tune

Training Loss

0.0234

-42%
Per epoch

Validation Loss

0.0312

+2%
Per epoch

Learning Rate

2.4e-5

GPU Memory

76.2 GB

/ 80 GB

Throughput

1,842

tokens/s

Checkpoint Evaluations

Checkpoint Epoch Train Loss ckpt-014 14 0.0234 ckpt-010 10 0.0298 ckpt-005 5 0.0512
``` ## Detail View (template-detail-view) Page-level starter for object detail views. Breadcrumb, summary metadata, and grouped content sections. ```html AV

Drive Library

Drives Vehicles AV
Drives Highway 101 Annotate Download Share

Highway 101

Recording

Summary

Vehicle av-prototype-042
Route San Jose to San Francisco
Duration 4h 18m

Vehicle speed

68 km/h avg

GPU utilization

82% peak

Annotations

01:14:22 Disengage Operator override at construction reroute on US-101 NB.
02:46:08 Note Lane keep accuracy degraded under heavy rain conditions.
03:51:44 Resolved Perception confidence recovered after sensor self-calibration.
``` ## Docs (template-docs) Page-level starter for developer docs. Search header, hierarchical nav tree, and an article with prose and code samples. ```html NV

Robotics SDK

Documentation Tutorials API RB
Getting started Installation Hello robot Simulation setup Perception Camera streams LiDAR fusion Object detection Manipulation Grasp policy Trajectory planner

Object Detection

Real-time perception pipeline for detecting and classifying objects from camera streams on robots and edge devices.

Installation

The pipeline ships as part of the perception package. Install it alongside the runtime to get the GPU-accelerated kernels and the pretrained model registry.

pip install perception==2.4.0

Usage

Instantiate a DetectionPipeline with a pretrained model and a camera source, then iterate over detections in your control loop. The pipeline manages preprocessing, batched inference, and non-maximum suppression so your control code stays focused on policy decisions.

from isaac.perception import DetectionPipeline, CameraSource pipeline = DetectionPipeline( model="yolov8-nano", confidence=0.6, device="cuda:0", ) camera = CameraSource(topic="/front_cam/image_raw") for frame in camera.stream(): detections = pipeline.run(frame) for det in detections: print(det.label, det.bbox, det.score) Inference latency above 30 ms can break real-time control loops on mobile robots; profile end-to-end before deploying.

API reference

See the API tab for the full DetectionPipeline class signature, supported models, and event hooks. Related primitives: CameraSource, Tracker, DepthEstimator.

``` ## List View (template-list-view) Page-level starter for tabular list views. Search, view toggle, and a sortable data grid of records. ```html AV

Drive Library

Drives Vehicles AV
Drive logs Sensor recordings Scenarios
Filter Export
Drive Route Vehicle av-2841 Highway 101 av-prototype-042 av-2840 Urban downtown loop av-prototype-039 av-2839 Sunnyvale residential av-prototype-042
``` ## Media Detail View (template-media-detail-view) Page-level starter for object detail views with media playback. Player canvas with metadata panel and playback controls. ```html AV

Event Recorder

Documentation Support EL

event-recording.mp4

Recorded
Intervention 00:37:12
Trigger Reason Zone not detected
Device: AV-042 Route: Santa Clara
``` ## Split View (template-split-view) Page-level starter for master-detail split views. Data grid of records with a resizable detail panel for the selected row. ```html AV

Drive Library

Drives Vehicles AV
Drive Route Vehicle av-2841 Highway 101 av-prototype-042 av-2840 Urban downtown loop av-prototype-039 av-2839 Sunnyvale residential av-prototype-042

Highway 101

Recording
Drive av-2841
Vehicle av-prototype-042
Route San Jose to SF
Vehicle speed 68 km/h avg
GPU utilization 82% peak
Annotate Download Share
``` ## Wizard (template-wizard) Page-level starter for multi-step wizards. Stepper, form sections, and footer navigation. ```html NV

Infrastructure

Documentation Support EL
Robot Profile Perception Sensors Navigation Stack

Deployment Setup

Previous
Stage 1 of 5 Continue
``` ## Login Form (pattern-authentication-login-form) Login form with email and password fields with credential validation. Use for authentication entry points where real-time feedback guides users through sign-in requirements. ```html
required invalid NVIDIA email required minimum length is 6 characters login to account
``` ## Login Page (pattern-authentication-login-page) Full login page layout with centered card form using nve-page for responsive page structure. ```html AV

Developer Portal

Documentation APIs Support

Login

required invalid NVIDIA email required minimum length is 6 characters
login to account
``` ## No Access (pattern-authentication-no-access) Permission denied states informing users of access restrictions with a contact option. ```html

Access Restricted

You don't have permission to view this configuration. Contact your administrator to request access.

Request Access
``` ## Project Board (pattern-dashboard-project-board) Project board with workflow stage columns for tracking items through a workflow / process pipeline. Use for project management views where teams need to visualize work-in-progress across sequential stages like build, test, and merge workflows. ```html NV

Infrastructure

EL

Project Board

Board List Display Settings

Backlog

2

LiDAR Calibration

High

Recalibrate 3D LiDAR sensor array after firmware update on the warehouse fleet.

MK JL +3 View Issue

Sim-to-Real Transfer

Medium

Validate domain randomization parameters for Isaac Sim grasping policy transfer.

RN TS +1 View Issue

In Progress

2

Perception Pipeline v2

High

Migrate object detection from YOLOv8 to a transformer-based model for improved occlusion handling.

AP SG +4 View Issue

Arm Trajectory Planner

Medium

Optimize inverse kinematics solver for 7-DOF manipulator to reduce planning latency below 50 ms.

KW DM +2 View Issue

Merged

1

Map Persistence

Low

Add map serialization so autonomous mobile robots resume navigation after power cycles.

LZ MK +1 View Issue
``` ## Training Monitor (pattern-dashboard-training-monitor) Dashboard masonry layout for monitoring workflows with KPI cards, sparkline trends, and a checkpoint evaluation grid. Use for real-time operational views where users need to scan progress and spot anomalies at a glance. ```html NV

Infrastructure

Documentation Support EL
Training Epoch 14 / 20 ETA: 4h 23m
24h 7d 30d Export

Model 120B Fine-tune

Training Loss

0.0234

-42%
Per epoch

Validation Loss

0.0312

+2%
Per epoch

Learning Rate

2.4e-5

GPU Memory

76.2 GB

/ 80 GB

Throughput

1,842

tokens/s

Checkpoint Evaluations

Checkpoint Epoch Train Loss ckpt-014 14 0.0234 ckpt-010 10 0.0298 ckpt-005 5 0.0512
``` ## Diff View (pattern-editor-diff-view) Side-by-side diff view for comparing configuration changes between releases. Essential for reviewing updates before deploying new AV sensor calibrations or robot parameters. ```html AV

Sensor Calibration

AV

sensor_params.yaml

+12 / -4 Approve Changes Merge
release/v2.3.0
feature/lidar-calibration
Comparing release/v2.3.0 to feature/lidar-calibration 12 additions, 4 modifications
``` ## File Browser (pattern-editor-file-browser) IDE-style layout with file tree navigation, code editor, and output panel. Ideal for browsing and editing AV sensor configuration files in a familiar development environment. ```html AV

Config Editor

Sensors Vehicle Perception AV
av-prototype-042/ sensors/ lidar_config.py camera_config.py radar_config.py perception/ detection.py tracking.py planning/ route_planner.py
lidar_config.py
Problems Output Terminal

No problems detected in workspace

main Ln 1, Col 1 Python
``` ## Read Only (pattern-editor-read-only) Reviewing deployed configurations or viewing session logs in a read-only code viewer. Prevents accidental edits while allowing full code navigation and search. ```html AV

Session Viewer

RB

Test Session #2847

completed
View Raw Export Report
Robot isaac-manipulator-07
Duration 4h 23m
Started Jan 8, 2026 09:15
session-2847/ robot_config.yaml logs/ motion_log.txt sensor_log.txt errors.txt results/ metrics.json
robot_config.yaml Read-only
Deployed config snapshot, editing disabled
``` ## Data Grid Retry (pattern-empty-states-data-grid-retry) Data grid empty state with retry action. Use when requested data is not found and a retry action is available. ```html

No Results Found

Try adjusting filter settings or try again later.

Clear Filters Retry Query
``` ## Empty Data (pattern-empty-states-empty-data) First-time or empty collection states with an illustration and call-to-action to guide users. ```html

No Devices Found

Your fleet is empty. Add your first autonomous robot or vehicle to start monitoring and managing operations.

Add Device
``` ## No Results (pattern-empty-states-no-results) No search results match to suggest refining filters or clearing search criteria. ```html

No Results Found

Try adjusting filter settings or try again later.

Clear Filters Retry Query
``` ## Offline Mode (pattern-empty-states-offline-mode) Use to show offline mode with information about limited functionality and last sync time. ```html

You're Offline

You're viewing cached data. Some features are unavailable until connection is restored.

Reconnect
``` ## Occupancy Detection Heatmap (pattern-heatmap-occupancy-detection-heatmap) Grid heatmap displaying occupancy probability for dynamic obstacle detection across a spatial coordinate grid. Ideal for robotics and AV perception teams visualizing sensor fusion output to identify high-occupancy zones and detection blind spots using viridis scale. ```html Y (m) -4 -3 -3 12 15 -2 15 20 -1 18 25 ``` ## Sensor Coverage Heatmap (pattern-heatmap-sensor-coverage-heatmap) Grid heatmap showing sensor coverage for autonomous vehicle perception systems across distance ranges. Useful for AV engineers analyzing LiDAR, radar, and camera fusion performance to identify blind spots. ```html Sensor 0-10m 10-30m LiDAR Front 92.3% 86.2% LiDAR Rear 98.5% 88.8% Radar Front 83.5% 73.2% ``` ## Shortcut Filled (pattern-keyboard-shortcuts-shortcut-filled) Keyboard shortcut badge with filled styling for displaying key combinations. Use in help dialogs, onboarding tooltips, or documentation to communicate available shortcuts to users. ```html CMD + C ``` ## Event Timeline (pattern-logging-event-timeline) Chronological event timeline with severity-coded entries for monitoring system events. Use for reviewing operational logs where temporal ordering and quick severity scanning are critical. ```html
09:17:45 Network Connection Lost

NetworkManager failed to connect to vehicle command server (NET_1001)

NetworkManager AV-001-Alpha
09:16:12 Sensor Calibration Warning

LiDAR sensor temperature approaching threshold (51°C)

LiDARManager AV-001-Alpha
09:15:28 GPS Lock Acquired

GPS module successfully acquired satellite lock with 12 satellites

GPSManager AV-001-Alpha
``` ## Audio Player Card (pattern-media-audio-player-card) Compact audio player controls with playback controls, and timestamp display. Ideal for reviewing audio logs, voice commands, or alert sounds. ```html
event-recording-042.mp4
Download Audio
0.5x 1x 2x
``` ## Page Layout Video (pattern-media-page-layout-video) Full-page video player layout with metadata panel and playback controls. Use for reviewing recordings that requires detailed contextual information. ```html AV

Infrastructure

Link 1 Link 2 EL

event-recording-042.mp4

Recorded
Intervention 00:37:12
Trigger Reason Zone not detected
Device: AV-042 Route: Santa Clara
``` ## Playback Control (pattern-media-playback-control) Playback transport controls with start, rewind, play, fast forward, and end buttons in a flat button group. Use as the core navigation component in media players, simulation reviewers, or timeline-based interfaces. ```html ``` ## Playback Speed Control (pattern-media-playback-speed-control) Playback speed control using a rounded button group with preset speed options for audio and video playback. Use when toolbar space allows discrete speed buttons and users need to see all options at once. ```html 0.5x 1x 2x ``` ## Playback Speed Menu Control (pattern-media-playback-speed-menu-control) Compact playback speed control using a flat select dropdown for audio and video playback. Use when toolbar space is tight and a dropdown works better than a button group for speed selection. ```html ``` ## Time Scrubber Control (pattern-media-time-scrubber-control) Time scrubber with current position, range slider, and total duration for audio and video playback. Use in media players where users need to seek to a specific timestamp or scan through recorded content. ```html
``` ## Video Player Card (pattern-media-video-player-card) Standard video player with playback controls, timeline scrubber, and volume controls. Use for reviewing recorded sensor data, simulation playback, or training video content. ```html
``` ## Volume Control (pattern-media-volume-control) Volume control with mute toggle and range slider for audio playback. Use in media players, video reviewers, or any interface where users need fine-grained audio level control. ```html
``` ## Zoom Control (pattern-media-zoom-control) Zoom level control with zoom-out, range slider, and zoom-in buttons for video and canvas content. Use in media viewers, map interfaces, or image editors where users need precise zoom control. ```html
``` ## Complex Tree Navigation (pattern-navigation-complex-tree-navigation) Tree integrated in vertical navigation. Use for providing structured sidebar navigation for application layouts and content organization. ```html NV

Infrastructure

Link 1 Link 2 EL
Overview Dashboard Alerts Activity Feed Compute Clusters Instances Schedulers Storage Volumes Backups Snapshots

Infrastructure

Select a placeholder link in the sidebar tree to model deep, category-based navigation.

``` ## Drawer Navigation (pattern-navigation-drawer-navigation) Drawer based navigation. Use for secondary or mobile navigation when available space gets tight. ```html NV

Infrastructure

main

page content

Navigation

Documentation Support Elements Alert Badge Dialog
``` ## Multi Step Form Wizard (pattern-onboarding-multi-step-form-wizard) Multi-step wizard layout. Use for complex multi-step forms with validation, progress, and save checkpoints. ```html NV

Infrastructure

EL
Robot Profile Perception Sensors Navigation Stack

Deployment Setup

Previous
Stage 1 of 5 Continue
``` ## User Onboarding Wizard (pattern-onboarding-user-onboarding-wizard) Multi-step wizard layout with progress stepper for guided workflows. Use for onboarding flows, enrollment forms, or configuration processes where users complete sequential steps with clear progress tracking. ```html NV

Robotics Ops

EL
Vehicle Info Sensor Suite Software Stack

Vehicle Information

Back
Step 1 of 5 Next
``` ## Accordion (pattern-panel-accordion) Organizing filterable, collapsible content groups in a panel with search input and expandable accordion sections. ```html

Details

Heading 1

Adjust workspace preferences and project configurations to customize your experience.

Heading 2

Adjust workspace preferences and project configurations to customize your experience.

Heading 3

Adjust workspace preferences and project configurations to customize your experience.

Main Content

``` ## Key Value (pattern-panel-key-value) Displaying metadata like release info, dates, status badges, and links in a side panel with labeled key-value pairs. ```html

Details

RainbowBridge/08-18-2021AM/A2A

2021-08-18

Indexed

Main Content

``` ## Tabbed Header (pattern-panel-tabbed-header) Switching between categorized detail views with tabbed navigation in the panel header. ```html Tab 1 Tab 2 Tab 3

RainbowBridge/08-18-2021AM/A2A

2021-08-18

Indexed

Main Content

Select the panel to view details.

``` ## Filter Toolbar (pattern-search-filter-toolbar) Search toolbar with filter functionality including progressive filter chips and search combobox for data filtering scenarios. ```html Save Filters ``` ## Standard Header Main Page (pattern-subheader-standard-header-main-page) Main page subheaders with breadcrumb, page title, and action buttons in a clean two-row layout. ```html NV

Application

Link 1 Link 2 EL
Item 1 You Are Here

Page Title

Default Emphasis

Page content area

``` ## Standard Header Viewer Page (pattern-subheader-standard-header-viewer-page) Viewer page subheader with centered zoom/layout controls and grouped action buttons. Ideal for media viewers, document previews, and split-pane layouts. ```html NV

Application

Link 1 Link 2 EL

Page Title

Viewer content area

``` ## Badge (pattern-trend-badge) Trend badges for displaying data changes and metrics. Perfect for dashboards, analytics, or financial data showing positive, negative, or neutral trends. ```html
0% -15% +15%
``` ## Badge Detail (pattern-trend-badge-detail) Displays a metric with a trend indicator. Ideal for dashboards and analytics where users need to quickly assess changes and understand the scale of change at a glance. ```html

198,298

+15%
``` ## Card (pattern-trend-card) Trend card for displaying a metric with a trend indicator. Ideal for dashboards and analytics where users need to quickly assess changes and understand the scale of change at a glance. ```html

Training Loss

-42%

0.0234

Per epoch

Job Throughput

+12%

342 / hr

Last 24 hours
``` ## Grid (pattern-trend-grid) Trend grid for displaying a list of metrics with a trend indicator. Ideal for dashboards and analytics where users need to quickly assess changes and understand the scale of change at a glance. ```html Checkpoint Epoch Train Loss ckpt-014 14 0.0234 ckpt-010 10 0.0298 ckpt-005 5 0.0512 ``` ## Default (page) Nve-page layout with a header and main content. ```html NV

Infrastructure

Link 1 Link 2 EL
panel

main

page content

``` ## Document Scroll (page-document-scroll) Use document scroll for static content sites that do not require a fixed navigation. ```html NV

Infrastructure

Link 1 Link 2 EL

main

page content

docmentation logging contact
``` ## Default (page-header) Page header with logo, navigation links, and user actions in a standard layout structure. ```html NV

Infrastructure

Link 1 Link 2
``` ## App Logo (page-header-app-logo) Use the Logo element when representing an application that is part of a suite of applications in a given problem domain. ```html AV

Infrastructure

Link 1 Link 2
``` ## Center Navigation (page-header-center-navigation) Page header with navigation centered in the available space for balanced visual hierarchy. ```html NV

Infrastructure

Login Start Building
``` ## Dropdown Menu (page-header-dropdown-menu) Use dropdowns and menus to allow progressive disclosure of extra navigation or global user actions. ```html NV

Infrastructure

Link 1 Link 2 EL
Menu Item Menu Item Menu Item Menu Item ``` ## Menu Button (page-header-menu-button) Use a Icon Button to represent collapsible top-level navigation, optimal for mobile or constrained viewport sizes. ```html NV

Infrastructure

Link 1 Link 2
``` ## Prefix Navigation (page-header-prefix-navigation) Page header with primary navigation positioned after the logo and branding area. ```html NV

Infrastructure

Features Guide Docs
``` ## Search (page-header-search) Page header with integrated search functionality for content discovery within the application. ```html NV

Infrastructure

Link 1 Link 2 Login
``` ## Suffix Navigation (page-header-suffix-navigation) Page header with all navigation positioned at the end for common and persistent user actions between page navigation. ```html NV

Infrastructure

Features Guide Docs
``` ## User Detail (page-header-user-detail) Page header displaying user information and avatar for personalized application experiences. ```html NV

Infrastructure

Link 1 Link 2 GH

Grace Hopper

infra-0087ef65-19e80

``` ## Interaction Drawer (page-interaction-drawer) Use Drawer to create navigation that is outside the context of the current view. ```html NV

Infrastructure

Link 1 Link 2 EL

main

page content

Drawer Header

drawer content

drawer footer

``` ## Interaction Panel Navigation (page-interaction-panel-navigation) Use Page Panel with Toolbar to create complex navigation groups that are within the context of the current view. ```html NV

Infrastructure

Link 1 Link 2 EL

main

page content

``` ## Invoker Command (page-invoker-command) Use Page Panel with Invoker Command API to dynamically open and close page panels. ```html NV

Infrastructure

main

page content

``` ## Layout Editor (page-layout-editor) IDE-style editor layout with file outline, main editor, and console panels. Use for code playgrounds, configuration editors, or development tools that need a split-pane workspace with toolbar controls. ```html NV

Playground

Browse Editor Elements EL

Project

Save Project
Outline html head link link link body nve-badge

main

page content

console output last updated 12 mins ago
``` ## Default (page-loader) Full-page loading indicator displaying centered spinner for initial page load states. ```html ``` ## Interactive (page-loader-interactive) Interactive page loader that starts programmatically via button click. Use when user actions such as form submissions, data refreshes, or navigation events start loading states rather than on initial page load. ```html trigger loader ``` ## Panel Closable (page-panel-closable) Closable page panels that fully remove from the layout when dismissed. Use when panels open on demand for temporary tasks like viewing item details or applying filters, and the user needs full main content space when done. ```html NV

Infrastructure

Link 1 Link 2 EL
left

main

Toggle Left Panel Toggle Right Panel Toggle Bottom Panel
right bottom
``` ## Panel Expandable (page-panel-expandable) Expandable page panels that collapse to a slim strip and toggle open with chevron buttons. Use when panels contain supplementary content that users access intermittently, preserving main content space while keeping panels accessible. ```html NV

Infrastructure

Link 1 Link 2 EL
left

main

Toggle Left Panel Toggle Right Panel Toggle Bottom Panel
right bottom
``` ## Panel Headings (page-panel-headings) Page panel with title and subtitle headings in the header for labeling panel content. Use to provide clear context about what the panel contains, such as a details pane or properties inspector. ```html NV

Infrastructure

Link 1 Link 2 EL

Header

Sub Header

Panel Content
``` ## Panel Tabs (page-panel-tabs) Page panel with tabbed header for switching between categorized content views within a sidebar. Use when a panel contains related sections like outline, search, and settings that share the same screen region. ```html NV

Infrastructure

Link 1 Link 2 EL
Tab 1 Tab 2 Tab 3 Panel Content
``` ## Resize (page-resize) Resizable left panel with drag handle for adjustable sidebar width. Use when users need to control the balance between navigation or outline panels and main content area. ```html NV

Infrastructure

Link 1 Link 2 EL
left
``` ## Resize Multi (page-resize-multi) Multi-panel resizable layout with independent drag handles on left, right, and bottom panels. Use for complex workspaces like IDEs or dashboards where users need to customize the size of each content region independently. ```html NV

Infrastructure

Link 1 Link 2 EL
left bottom right
``` ## Resize Snap (page-resize-snap) Resize handle with snap-to-boundary behavior on double-click for quickly toggling a panel between collapsed and expanded states. Use for detail panels that users frequently show and hide. ```html NV

Infrastructure

Link 1 Link 2 EL

Double click the resize handle to snap to the min or max.

left
``` ## Slot Subheader Large (page-slot-subheader-large) Large subheader panel with back navigation, title, metadata, and action buttons. Use for detail pages that need prominent context like entity names, status badges, and key-value metadata above the main content. ```html NV

Infrastructure

Link 1 Link 2 EL

Subheader Large

Default
Driver Jane Doe
Route Santa Clara
Status complete

main

page content

``` ## Slots (page-slots) Page layout slot reference showing all available panel positions including header, subheader, left, right, bottom, and aside regions. Use as a starting point for understanding how to compose complex application layouts. ```html

header

subheader left-aside left

main content

bottom right right-aside
``` ## Default (accordion) Accordion component for collapsible content sections. Use accordions to progressively disclose information, helping users focus on relevant content while keeping the interface compact and scannable. ```html

Workspace Settings

Adjust workspace preferences and project configurations to customize your experience.
``` ## With Actions (accordion-with-actions) Accordion with action buttons in header for quick operations without expanding. Perfect for list items where users need both to view details and perform actions like edit, delete, or add, keeping common actions immediately accessible. ```html

Pipeline Configuration

Last updated 2 hours ago view history

Adjust workspace preferences and project configurations to customize your experience.
``` ## Default (alert) Alert for inline informational messages. Use alerts for persistent feedback that doesn't auto-dismiss, ideal for system status updates, or contextual information that users may need to reference while completing tasks. ```html alert message ``` ## Invoker Command (alert-invoker-command) Dismissible alerts using the Invoker Command API for declarative close behavior. Use `commandfor` and `command="--close"` on action buttons to dismiss individual alerts without custom JavaScript event handling. ```html Alert Notification Message 1 Alert Notification Message 2 ``` ## Default (avatar) Avatar component with text initials, providing a simple way to represent users when profile images are unavailable. ```html AV ``` ## Default (badge) Badge component with default styling. Use for simple non-interactive labels or status indicators. ```html badge ``` ## Default (breadcrumb) Breadcrumb navigation showing page hierarchy with linked items and current location indicator. ```html Item 1 Item 2 Item 3 You Are Here ``` ## With Icon Button (breadcrumb-with-icon-button) Breadcrumb with home icon button for quick navigation to the root page, offering a compact starting point. ```html Item 1 Item 2 You Are Here ``` ## With Menu (breadcrumb-with-menu) Breadcrumb with overflow menu for collapsed navigation levels, ideal for deep hierarchies in limited space. ```html Item 4 Item 5 You Are Here Item 1 Item 2 Item 3 ``` ## Default (button) Button component with standard appearance and behavior for primary user actions. ```html standard ``` ## Contrast Colored Backgrounds (button-contrast-colored-backgrounds) Use standard interaction styling to keep buttons readable on contrasting backgrounds in light and dark themes. This pattern verifies the static button colors that deliver the intended contrast for each theme. ```html
10 Selected
Edit
Error Detected Review
Cancel action
``` ## Form Control (button-form-control) Use the form control option for buttons that open custom controls such as dropdowns, filter menus, or pickers within a form layout. This pattern keeps the UI cohesive and helps users recognize the button as part of the form. ```html
filter option
``` ## Action Split (button-group-action-split) Split button groups with different interaction styles for primary actions with dropdown alternatives. ```html
button button button
``` ## Action Split Rounded (button-group-action-split-rounded) Split button groups with rounded container styling for softer visual appearance and modern aesthetics. ```html
button button button
``` ## Disabled (button-group-disabled) Button group in disabled state for indicating unavailable actions or read-only contexts. ```html button ``` ## Invoker Command (button-invoker-command) Use the `commandfor` and `command` attributes to trigger custom Invoker Commands, such as rotating an image. ```html
Rotate left Rotate right toggle-popover
popover ``` ## Default (card) Card component with header, content, and footer sections. Use this as a starting point for simple content containers. ```html

Heading

card content

card footer

``` ## Prefix Suffix (chat-message-prefix-suffix) Chat conversation with prefix and suffix avatars. Ideal for multi-user chat applications where you need to distinguish between different participants. ```html
AI Hello, how may I assist you today? How do I use the chat message component? NV AI

To use the nve-chat-message first import the element.

import '@nvidia-elements/code/codeblock/define.js';
``` ## Default (checkbox) Checkbox component with label for binary selection and form input. ```html ``` ## Default (color) Color picker input with label and message for selecting hex color values. ```html message ``` ## Default (combobox) Combobox with search input and datalist options for filtering and selection. ```html message ``` ## Create Options (combobox-create-options) Combobox with create option behavior that allows users to add new options and tags on the fly. Use when the option list is not exhaustive and users need to enter values that don't yet exist. ```html Press Enter to create a tag that doesn't exist yet ``` ## Dynamic Typeahead Search (combobox-dynamic-typeahead-search) Fetches options asynchronously as the user types, cancelling stale requests with AbortController. Use for server-backed search where the full option set is too large to load up front. ```html ``` ## Footer (combobox-footer) Multi-select with footer action button for extra operations on selected items. ```html action message ``` ## Form (combobox-form) Complete form integration showing combobox with form submission, reset, and programmatic value setting. ```html
message
set reset submit
``` ## Infinite Scroll (combobox-infinite-scroll) Infinite scroll combobox loading, using the scroll event to append options as the user nears the end of the list. Use for server-backed datasets where loading all options up front is impractical. ```html ``` ## Reset (combobox-reset) Multi-select with reset functionality via icon button and footer button to clear all selections. ```html reset message ``` ## Select All (combobox-select-all) Multi-select with bulk selection controls (Select All/Deselect All) in footer for efficient mass operations. ```html
Select All Deselect All
message
``` ## Default (date) Date picker input with label and message for selecting calendar dates. ```html message ``` ## Range (date-range) Date range input with start and end date pickers for selecting time periods and date intervals. ```html message ``` ## Types (date-types) Collection of temporal input types including date, datetime, month, week, time, and date range pickers. ```html
message message message message message message
``` ## Default (datetime) Datetime picker input with label and message for selecting both date and time values. ```html message ``` ## Default (dialog) Modal dialog for focused user interactions. Use dialogs for confirmations, simple forms, or important information that requires user attention before continuing, creating a modal overlay that blocks interaction with the underlying page until dismissed. ```html button

title

some text content in a closable dialog

``` ## Invoker Command (dialog-invoker-command) Use the `commandfor` and `command` attributes to trigger custom Invoker Commands, such as toggling a dialog. ```html toggle popover

title

some text content in a closable dialog

``` ## Default (divider) Horizontal divider for separating content sections with a subtle line. ```html ``` ## Default (dot) Dot component with status indicator, providing a simple visual cue for process states and system status. ```html ``` ## Default (drawer) Modal drawer with header, content, and footer sections. Use for displaying detailed information, forms, or settings that need more space than a dialog, typically sliding in from the side of the screen. ```html

Drawer Header

drawer content

drawer footer

button ``` ## Default (dropdown) Dropdown implementation using popovertarget attribute to connect trigger and dropdown. Useful for simple dropdown menus. ```html button dropdown content ``` ## Default (dropdown-group) Cascading dropdown menu group with nested submenus for hierarchical navigation. ```html menu item 1-1 item 1-2 item 1-3 item 2-1 item 2-2 item 2-3 item 3-1 item 3-2 item 3-3 ``` ## With Disabled Items (dropdown-group-with-disabled-items) Cascading dropdown menu with disabled menu items in non-interactive states. ```html Disabled Items item 1-1 item 1-2 item 1-3 item 2-1 item 2-2 item 2-3 item 3-1 item 3-2 item 3-3 ``` ## With Icons (dropdown-group-with-icons) Cascading dropdown menu with leading icons for visual identification of menu item types. ```html Icons Menu item 1-1 item 1-2 item 1-3 item 2-1 item 2-2 item 2-3 item 3-1 item 3-2 item 3-3 ``` ## With More Icons (dropdown-group-with-more-icons) Cascading dropdown menu showcasing extra icon varieties for diverse menu actions. ```html More Icons item 1-1 item 1-2 item 1-3 item 2-1 item 2-2 item 2-3 item 3-1 item 3-2 item 3-3 ``` ## Menu (dropdown-menu) Dropdown with popover-positioned menu for trigger-based actions. Use for context menus, settings, and user actions where content appears on demand relative to a trigger button. ```html dropdown profile settings favorites logout ``` ## Default (dropzone) File dropzone with drag-and-drop area for file upload interactions. ```html ``` ## Form (dropzone-form) Dropzone integrated with form validation showing file type and size constraint errors. ```html
Unsupported file type — this upload only accepts images File too big - maximum 1.00 MB allowed
submit
``` ## Default (file) File input with label and validation message. Use for simple file upload fields in forms. ```html message ``` ## Label Action (forms-actions-label-action) Label with an information button to provide contextual help or more details about the field. ```html message ``` ## Prefix Suffix (forms-actions-prefix-suffix) Input with prefix and suffix buttons to show fixed text elements like URL protocols and domains. ```html https:// .com message ``` ## Search Clear (forms-actions-search-clear) Input with action buttons for search and clear, providing quick access to common operations. ```html message ``` ## Horizontal (forms-horizontal) Horizontal form layout with labels beside inputs, creating efficient use of horizontal space and familiar desktop form patterns. ```html
message message message message message message message message message message
``` ## Horizontal Inline (forms-horizontal-inline) Space-efficient horizontal layout with inline labels, ideal for dense forms with tight vertical space where quick scanning matters. ```html
message message message message message message message message message message
``` ## Kitchen Sink (forms-kitchen-sink) Comprehensive showcase of all form controls in a grid layout, including input types, states, and advanced patterns use for a complete form design reference. ```html
message message message message message message message message message message https:// .com message message message .com Host ID: 123456 message message message message message message message message message message
``` ## Prominence Muted (forms-prominence-muted) Use the prominence muted state to lower visual weight of controls in forms. ```html
``` ## Error Group (forms-validation-error-group) Login form with grouped error display showing all validation issues together after submission attempt. ```html
invalid email minimum length is 6 characters login to account invalid email password required
``` ## Login Form (forms-validation-login-form) Use real-time validation with contextual error messages to disable submit until form is valid. ```html
required invalid NVIDIA email required minimum length is 6 characters login to account
``` ## Reset Form (forms-validation-reset-form) Form reset functionality allowing users to clear individual fields or reset the entire form. ```html
required invalid NVIDIA email required reset form
``` ## Success Group (forms-validation-success-group) Login form example of success feedback with positive confirmation messages for valid input and successful form submission. ```html
username available login to account account created
``` ## Vertical (forms-vertical) Traditional vertical form layout with labels above inputs, providing clear visual hierarchy and optimal readability for complex forms. ```html
message message message message message message message message message message
``` ## Vertical Inline (forms-vertical-inline) Compact vertical layout with inline labels and controls, maximizing space efficiency while maintaining form clarity and accessibility. ```html
message message message message message message message message message message
``` ## Default (grid) Data grid for tabular data display with columns and rows. Use grids for presenting structured datasets where users need to scan, compare, and analyze information across many columns, such as dashboards, reports, or data management interfaces. ```html column 0column 1column 2column 3column 4 cell 0-0cell 0-1cell 0-2cell 0-3cell 0-4 cell 1-0cell 1-1cell 1-2cell 1-3cell 1-4 cell 2-0cell 2-1cell 2-2cell 2-3cell 2-4 ``` ## Bulk Actions (grid-bulk-actions) Use bulk actions for operations on many items. Display only when rows have a selection. Closing bulk actions deselects all selected rows. ```html column 0 column 1 column 2 column 3 cell 0-0 cell 0-1 cell 0-2 cell 0-3 cell 1-0 cell 1-1 cell 1-2 cell 1-3 cell 2-0 cell 2-1 cell 2-2 cell 2-3

1 selected

delete
``` ## Card (grid-card) Nest Grid in Cards for UI patterns such as card tab groups. Use the `container="flat"` attribute to enable proper styling of the grid when nested within a card. ```html

Data Grid

Card Example

column 0column 1column 2column 3column 4 cell 0-0cell 0-1cell 0-2cell 0-3cell 0-4 cell 1-0cell 1-1cell 1-2cell 1-3cell 1-4 cell 2-0cell 2-1cell 2-2cell 2-3cell 2-4
``` ## Column Action (grid-column-action) Create column actions by using the `nve-icon-button` to trigger dropdowns or panels that reveal more actions to the user. ```html column 0 column 1 column 2 cell 0-0 cell 0-1 cell 0-2 cell 0-3 cell 0-4 cell 1-0 cell 1-1 cell 1-2 cell 1-3 cell 1-4 cell 2-0 cell 2-1 cell 2-2 cell 2-3 cell 2-4 settings favorites ``` ## Column Dynamic Fixed (grid-column-dynamic-fixed) Dynamic column management with programmatic addition and positioning, for flexible grid configuration with evolving data requirements. ```html column 0column 1column 2column 3column 4 cell 0-0cell 0-1cell 0-2cell 0-3cell 0-4 cell 1-0cell 1-1cell 1-2cell 1-3cell 1-4 cell 2-0cell 2-1cell 2-2cell 2-3cell 2-4 add column ``` ## Column Fixed (grid-column-fixed) Fix columns to any given side, but keep fixed columns from spanning past the half way point of the grid. ```html column 0 column 1 column 2 cell 0-0 cell 0-1 cell 0-2 cell 0-3 cell 0-4 cell 1-0 cell 1-1 cell 1-2 cell 1-3 cell 1-4 cell 2-0 cell 2-1 cell 2-2 cell 2-3 cell 2-4 ``` ## Column Multi Fixed (grid-column-multi-fixed) Fix many columns to any given side, but keep fixed columns from spanning past the half way point of the grid. ```html column 0column 1column 2column 3column 4 cell 0-0cell 0-1cell 0-2cell 0-3cell 0-4 cell 1-0cell 1-1cell 1-2cell 1-3cell 1-4 cell 2-0cell 2-1cell 2-2cell 2-3cell 2-4 ``` ## Column Stack Fixed (grid-column-stack-fixed) Stack and fix many columns to any given side, but keep fixed columns from spanning past the half way point of the grid. ```html Column 1 Column 2 Column 3 cell 0-0 cell 0-1 cell 0-2 cell 0-3 cell 0-4 cell 0-5 cell 1-0 cell 1-1 cell 1-2 cell 1-3 cell 1-4 cell 1-5 cell 2-0 cell 2-1 cell 2-2 cell 2-3 cell 2-4 cell 2-5 ``` ## Column Width (grid-column-width) Column width control for responsive grid layouts, enabling flexible content sizing and optimal space usage across different screen sizes. ```html column 0 column 1 column 2 column 3 column 4 cell 0-0 cell 0-1 cell 0-2 cell 0-3 cell 0-4 cell 1-0 cell 1-1 cell 1-2 cell 1-3 cell 1-4 cell 2-0 cell 2-1 cell 2-2 cell 2-3 cell 2-4 footer content ``` ## Display Settings (grid-display-settings) Users can customize their data view through a dropdown menu above the grid, allowing them to show/hide columns and restore default settings for a personalized experience. ```html
restore settings

1,145 results found

Display Settings
column 0 column 1 column 2 column 3 cell 0-0 cell 0-1 cell 0-2 cell 0-3 cell 1-0 cell 1-1 cell 1-2 cell 1-3 cell 2-0 cell 2-1 cell 2-2 cell 2-3
``` ## Flat (grid-flat) Flat container styling for minimal visual weight, providing subtle grid presentation that integrates seamlessly with surrounding content. ```html column 0column 1column 2column 3column 4 cell 0-0cell 0-1cell 0-2cell 0-3cell 0-4 cell 1-0cell 1-1cell 1-2cell 1-3cell 1-4 cell 2-0cell 2-1cell 2-2cell 2-3cell 2-4 ``` ## Footer (grid-footer) The footer displays contextual information or extra user actions such as pagination. ```html column 0 column 1 column 2 column 3 column 4 cell 0-0 cell 0-1 cell 0-2 cell 0-3 cell 0-4 cell 1-0 cell 1-1 cell 1-2 cell 1-3 cell 1-4 cell 2-0 cell 2-1 cell 2-2 cell 2-3 cell 2-4

footer content

``` ## Full (grid-full) Full-width grid container for max space use, providing edge-to-edge data display for comprehensive information presentation. ```html column 0column 1column 2column 3column 4 cell 0-0cell 0-1cell 0-2cell 0-3cell 0-4 cell 1-0cell 1-1cell 1-2cell 1-3cell 1-4 cell 2-0cell 2-1cell 2-2cell 2-3cell 2-4 ``` ## Keynav (grid-keynav) The datagrid follows the ARIA Authoring Practices Guide for standardized keyboard navigation. ```html Key Function Right Arrow
  • Moves focus one cell to the right.
  • If focus is on the right-most cell in the row, focus does not move.
Left Arrow
  • Moves focus one cell to the left.
  • If focus is on the left-most cell in the row, focus does not move.
Down Arrow
  • Moves focus one cell down.
  • If focus is on the bottom cell in the column, focus does not move.
``` ## Multi Select (grid-multi-select) Multi-select rows with checkboxes for bulk operations. Use multi-select when users need to perform actions on many items at once (like delete, export, or bulk edit), placing checkboxes as the first column and setting the selected attribute for proper accessibility. ```html column 0 column 1 column 2 column 3 cell 0-0 cell 0-1 cell 0-2 cell 0-3 cell 1-0 cell 1-1 cell 1-2 cell 1-3 cell 2-0 cell 2-1 cell 2-2 cell 2-3 ``` ## Pagination (grid-pagination) Use the pagination pattern when working with large data sets that need incremental loading or filtering for performance or useability. ```html column 0 column 1 column 2 column 3 column 4 cell 0-0 cell 0-1 cell 0-2 cell 0-3 cell 0-4 cell 1-0 cell 1-1 cell 1-2 cell 1-3 cell 1-4 cell 2-0 cell 2-1 cell 2-2 cell 2-3 cell 2-4 ``` ## Panel Detail (grid-panel-detail) Use a nve-page-panel when displaying advanced filtering or display settings for the grid. Item detail panels should be open using a action button placed at the end of the grid row. ```html NV

Infrastructure

column 0 column 1 column 2 cell 0-0 cell 0-1 cell 0-2 cell 1-0 cell 1-1 cell 1-2 cell 2-0 cell 2-1 cell 2-2

Row 2 Details

Workflow

Complete
P1
``` ## Panel Grid (grid-panel-grid) Panel Grid displays key value type data sets for details of a given item in a collection. ```html NV

Infrastructure

page content

Recording

Key Value

Session ID

123456

Record Date

2023-09-04 11:00

Tag

Production
``` ## Placeholder (grid-placeholder) Loading placeholder state with progress indicator. Use grid placeholders during initial data fetching or while loading large datasets, providing visual feedback that content is coming and preventing layout shift when rows populate, improving perceived performance. ```html ``` ## Row Action (grid-row-action) Row actions enable extra user actions specific to a given row. Place a `nve-icon-button` at the end of the grid row for actions. ```html action 1 action 2 action 3 column 0 column 1 column 2 column 3 column 4 cell 0-0 cell 0-1 cell 0-2 cell 0-3 cell 0-4 cell 1-0 cell 1-1 cell 1-2 cell 1-3 cell 1-4 cell 2-0 cell 2-1 cell 2-2 cell 2-3 cell 2-4 ``` ## Row Groups (grid-row-groups) Expandable row groups for hierarchical data organization. Use row groups when items have parent-child relationships or nested details (like sessions with uploads, orders with line items), allowing users to progressively disclose details and maintain compact views of large hierarchies. ```html column 0 column 1 column 2 column 3 Session: 2yuecae upload Session: mvwgh3t upload SSD: mvwgh3t validating ``` ## Row Sort (grid-row-sort) Sortable columns with visual indicators for data organization. Use sort buttons on columns where sorting is meaningful (dates, numbers, names) to help users find patterns, identify outliers, or locate specific data points, supporting three states: none, ascending, and descending. ```html None Ascending Descending cell 0-0cell 0-1cell 0-2cell 0-3cell 0-4 cell 1-0cell 1-1cell 1-2cell 1-3cell 1-4 cell 2-0cell 2-1cell 2-2cell 2-3cell 2-4 ``` ## Scroll Position (grid-scroll-position) Programmatic scroll control using the grid `scrollTo` API. Use for scroll-to-top buttons, jump-to-row navigation, or restoring scroll position after data refreshes in large datasets. ```html column 0 column 1 column 2 column 3 column 4 cell 0-0 cell 0-1 cell 0-2 cell 0-3 cell 0-4 cell 1-0 cell 1-1 cell 1-2 cell 1-3 cell 1-4 cell 2-0 cell 2-1 cell 2-2 cell 2-3 cell 2-4 scroll top ``` ## Single Select (grid-single-select) A single select datagrid allows users to choose exactly one row from a data table by providing radio buttons in the first column, ensuring only one item has a selection at a time. To enable single select, place `nve-radio` input as the first grid cell of each row. Set `name` attribute on each radio to ensure to associate the same radio group. ```html column 0 column 1 column 2 column 3 cell 0-0 cell 0-1 cell 0-2 cell 0-3 cell 1-0 cell 1-1 cell 1-2 cell 1-3 cell 2-0 cell 2-1 cell 2-2 cell 2-3 ``` ## Sort Visibility (grid-sort-visibility) Use the `nve-sort-button` to add grid row sort. The grid follows the ARIA sort spec and automatically sets the appropriate accessibility related attributes to convey the current sorting state. ```html Column 1 Column 2 Column 3 cell 1-1 cell 1-2 cell 1-3 ``` ## Default (icon) Icon component with standard appearance and usage for visual communication and interface navigation. ```html ``` ## Default (input) Text input field with label and message for general text entry and form data collection. ```html message ``` ## Default (input-input-group) Input group combining select, input, and button for composite controls like domain URL entry. ```html .com host: 123456 ``` ## Filter Group Range (input-input-group-filter-group-range) Input group with date range filters combining select and date inputs for filtering data by time periods. ```html
start end
``` ## Default (logo) NVIDIA logo with aria-label for accessibility. Use for brand identification in headers, footers, and loading states. ```html NV ``` ## Default (menu) Menu with simple text items for the default menu structure and styling. ```html item 1 item 2 item 3 ``` ## Complex (menu-complex) Use a dropdown menu with search and branded logos for application selection interfaces. ```html dropdown Db Debugger TM Task Manager CI CI Services NV All Apps ``` ## Dropdown (menu-dropdown) Menu with keyboard navigation and ARIA disclosure pattern inside a dropdown. Use when menu items need accessible focus management and arrow key navigation. ```html dropdown profile settings favorites logout ``` ## Vertical Navigation Drawer (menu-vertical-navigation-drawer) Use a navigation drawer to overlay page content for out-of-context navigation. ```html NV

NVIDIA

toggle drawer

Drawer

item 1 item 2 item 3
``` ## Vertical Navigation Panel (menu-vertical-navigation-panel) Use an inline navigation panel to push page content aside when navigation is contextual to the page. ```html NV

NVIDIA

Drawer

item 1 item 2 item 3

Content

``` ## J S O N Schema Validation (monaco-diff-input-json-schema-validation) JSON diff input with schema validation in a form context, blocking submission on errors ```html
JSON schema validation errors will prevent form submission Submit
``` ## Type Script Validation (monaco-diff-input-type-script-validation) TypeScript diff input with real-time type checking that blocks form submission on errors ```html
TypeScript validation errors will prevent form submission Submit
``` ## J S O N Schema Validation (monaco-input-json-schema-validation) JSON input with schema validation that blocks form submission on validation errors ```html
JSON schema validation errors will prevent form submission Submit
``` ## Type Script Validation (monaco-input-type-script-validation) TypeScript input with real-time type checking that blocks form submission on type errors ```html
TypeScript validation errors will prevent form submission Submit
``` ## Default (month) Month picker with label and validation message. Use for selecting a month and year in forms, such as expiry dates or report periods. ```html message ``` ## Default (notification) Notification with auto-dismiss timeout for temporary feedback messages. Use notifications for system-generated alerts, confirmations, or status updates that don't require immediate user action, automatically dismissing after a set duration. ```html

Notification

some text content in a notification

button ``` ## Default (pagination) Pagination component with default styling and behavior. ```html ``` ## Custom Select Pattern (pagination-custom-select-pattern) Custom pagination with select dropdown for page size and navigation arrows. ```html ``` ## Forms (pagination-forms) Pagination as a form associated component that participates in form submission and emits change, input, and step-change events. Use when page selection needs to integrate with form data collection or server-side form handling. ```html
submit page 10

``` ## Page List Pattern (pagination-page-list-pattern) Custom pagination pattern using toolbar with numbered page buttons and navigation arrows. ```html previous 1 2 3 ``` ## Skip Pattern (pagination-skip-pattern) Enhanced pagination pattern with first/last page buttons and numbered page navigation. ```html 1 2 3 ``` ## Default (panel) Panel layout with header showing session details and metadata in a collapsible side panel. ```html
Title

RainbowBridge/08-18-2021AM/A2A

2021-08-18

Indexed
``` ## Default (password) Password input with toggle visibility for secure credential entry and authentication forms. ```html message ``` ## Dropdown (preferences-input-dropdown) Preferences input embedded in a dropdown menu triggered from a page header settings button. ```html NV

NVIDIA

``` ## Forms (preferences-input-forms) Preferences input integrated with form submission, displaying live JSON value updates. ```html
submit

``` ## Labeled (progress-bar-labeled) Use a labeled progress bar with percentage display to communicate upload or task status. ```html

Upload Status

80%

``` ## Custom (progressive-filter-chip-custom) Progressive filter chip with custom button trigger opening a map coordinate picker dropdown. ```html 37.3706254,-121.9671894 non-interactive demo map ``` ## Date Range (progressive-filter-chip-date-range) Progressive filter chip with date picker inputs for filtering by date range criteria. ```html ``` ## Text Input (progressive-filter-chip-text-input) Progressive filter chip with numeric text input for threshold-based filtering (greater than, less than). ```html ``` ## Validation (progressive-filter-chip-validation) Progressive filter chip with input validation states showing required field and error styling. ```html
required
``` ## Default (pulse) Animated pulse indicator with aria-label for accessibility. Use to draw attention to live updates, active connections, or real-time status. ```html
``` ## Default (radio) Radio button group for mutually exclusive single-choice selection from many options. ```html message ``` ## Default (range) Range component for numeric value selection, providing a simple slider interface for adjusting values within a defined range. ```html message ``` ## Default (search) Search input with label and message for query entry and filtering data. ```html message ``` ## Default (select) Select component with label, options, and message. ```html message ``` ## Default (skeleton) Skeleton component for text content. Placeholder lines appear while content loads. ```html
``` ## Default (sparkline) Sparkline from numeric array values. Use as a compact trend indicator. ```html ``` ## Data Grid (sparkline-data-grid) Embed sparklines in grid cells to add compact trend context to tabular data. ```html Autonomy Service Safety Score Interventions / Shift Lane Keeping Object Detection Path Planning ``` ## Default Size (sparkline-default-size) Without a size attribute, height scales with the parent text size for typographic alignment. ```html
heading
body
label sm
``` ## Default (steps) Interactive step indicator with status colors for multi-step workflows. Use for wizards, onboarding flows, or process tracking where users can navigate between steps. ```html Step 1 Step 2 Step 3 ``` ## Spacing (styles-layout-spacing) ```html

Space Around

Space Between

Space Between + Full

Space Evenly

Nested Rows

Rows

``` ## Transforms (styles-typography-transforms) Text transformation utilities for case changes and truncation to handle overflow gracefully. ```html

uppercase

LOWERCASE

capitalize

``` ## Default (switch) Toggle switch for binary on/off controls and feature activation. ```html ``` ## Default (tabs) Tabs group component for organizing content into selectable sections with disabled state support. ```html Overview Details Settings
overview content
details content
settings content
``` ## External Controls (tabs-external-controls) Drive the same tabs group from external buttons when layouts need tabs and secondary actions to stay in sync with structured panel content. ```html
Overview Details Settings

Overview

Quick status for the current tab group.

State
Overview is active
Signal
Use this tab for a summary of the current workflow
Tip
Pair it with external controls for quick switching

Details

Deeper context for follow-up tasks and implementation notes.

State
Details are available on demand
Signal
Use this tab when readers need extra context
Tip
Keep the content specific to the selected tab

Settings

Preferences and coordination notes for the shared tab group.

State
Settings remain in sync with the selected value
Signal
Useful for configuration and admin actions
Tip
Use external buttons when the layout needs extra actions
overview details settings
``` ## Default (tag) Tag component for interactive labeling and categorizing of content, providing clear visual organization and metadata display. ```html topic-tag ``` ## Default (textarea) Multi-line text input for longer content entry like comments, descriptions, or messages. ```html message ``` ## Default (time) Time input with label, min/max time constraints, and help message ```html message ``` ## Default (toast) Toast with auto-dismiss for brief, non-critical feedback messages. Use toasts for lightweight confirmations like "Saved", "Copied", or "Action complete" that inform users without requiring interaction or disrupting workflow. ```html hello there button ``` ## Default (toggletip) Toggletip requiring click to open and close. Unlike tooltips that appear on hover, use toggletips for interactive content, extra details, or when users need time to read or interact with the popover content. ```html hello there button ``` ## Default (toolbar) Toolbar with action buttons and a settings icon in the suffix slot. ```html create delete ``` ## Container Flat (toolbar-container-flat) Toolbar with flat container styling for a more subtle appearance. ```html create delete ``` ## Container Full (toolbar-container-full) Toolbar with full container styling that spans the entire width. ```html create delete ``` ## Container Inset (toolbar-container-inset) Toolbar with inset container styling and constrained width for contained layouts. ```html create delete ``` ## Groups (toolbar-groups) Complex toolbar with grouped controls including select dropdowns, button groups, and dividers for text editing scenarios. ```html
Heading 1
Heading 2
Paragraph
Save
``` ## Status (toolbar-status) Toolbar with status styling showing selection state with accent status and default status variants for bulk actions. ```html

123 selected

delete

123 selected

delete
``` ## Vertical (toolbar-vertical) Vertical toolbar orientation with button groups and dividers for sidebar layouts. ```html ``` ## Default (tooltip) Tooltip triggered by popovertarget attribute. Use for providing brief, contextual information on hover or focus without cluttering the interface. ```html hello there button ``` ## Default (tree) Tree component with expandable nodes, providing hierarchical data display and navigation for structured content organization. ```html node 1 node 1-1 node 1-2 node 1-3 node 1-3-1 node 1-3-2 node 1-3-3 node 2 node 2-1 node 2-2 node 2-3 node 3 node 3-1 node 3-2 node 3-3 node 3-3-1 node 3-3-2 node 3-3-3 ``` ## Node Content (tree-node-content) Tree with rich node content including forms, controls, and interactive elements, enabling complex data management within hierarchical structures. ```html text content node link inline content
block

content

``` ## Default (week) Week picker input for selecting specific weeks in a year for scheduling and planning. ```html message ```