NV NVIDIA Elements Catalog Starters GitHub System Themes Getting Started Getting Started Installation CLI MCP Skills Lint GitHub Integrations Getting Started Angular Bundles CDN Custom Elements Eleventy Golang HTMX + Go Hugo Import Maps Lit Lit Library MCP Apps NextJS Nuxt Pi Preact React SolidJS Sphinx Svelte TypeScript Vue About What’s New Changelog Metrics Support Accessibility Contributions Requests Migration Sitemap Foundations Overview Typography Iconography Themes Design Tokens Size & Space Objects Interactions Support Status Color Animation Fonts Layers Custom Layout Horizontal Vertical Grid Popovers i18n Visualization View Transitions DESIGN.md Elements Accordion Alert Avatar Badge Breadcrumb Button Button Group Card Chat Message Checkbox Codeblock Color Combobox Copy Button Datagrid Getting Started Integrations Column Action Column Alignment Column Fixed Column width Container Card Display Settings Footer Heatmap Keynav Multi Select Pagination Panel Detail Panel Grid Performance Placeholder Row Action Row Groups Row Sort Scroll Height Single Select Stripe Date Datetime Dialog Divider Dot Drag Handle Drawer Dropdown Dropdown Group Dropzone File Format Bytes Datetime Number Relative Time Truncate Forms Getting Started Validation Actions Control Gauge Icon Icon Button Input Input Group Logo Markdown Markdown CSS Media Controller Pause Button Playback Rate Select Loop Button Mute Button Media PiP Button Seek Button Time Range Volume Range Full-screen Button Menu Month Monaco Input Diff Input Monaco Editor Diff Editor Problems Notification Page Page Header Page Loader Pagination Progressive Filter Chip Progress Bar Progress Ring Password Preferences Input Pulse Radio Range Resize Handle Search Select Skeleton Sort Button Sparkline Star Rating Steps Switch Tabs Tag Textarea Time Toast Toggletip Toolbar Tooltip Tree Viewport Viewport Gridlines Minimap Zoom Range Week Patterns Agent Authentication Browse Chat Code Dashboard Editor Empty States Heatmap Keyboard Shortcut Logging Media Navigation Onboarding Panel Responsive Search Subheader Trend Labs Responsive Layout Viewport Container Patterns Forms API Design Properties & Attributes Slots Registration CustomEvents Stateless Composition Styles Packaging Glossary Logs Internal Guidelines Agent Harness Agent Tooling Agent Ownership Documentation Examples TypeScript Testing Unit Testing Accessibility Testing Lighthouse Testing SSR Testing Visual Testing Troubleshooting Component Creation Internal Examples All Examples

Sort Button

stable:  2.15.4 Coverage: 100.00% Bundle: 19.23kb Lighthouse: 100 Axe Core Released: 0.11.0
Overview API Examples

<nve-sort-button>

Properties

PropertyAttributeDescriptionValues command command
string
commandForElement commandfor
current current

Indicates the element that represents the user's current location or position within a set. MDN

page Marks the current page within a set of navigation links.
step Marks the current step within a multi-step process or workflow.
disabled disabled

This Boolean attribute prevents the user from interacting with the element: it cannot receive press or focus events. MDN

true The element has a disabled state and does not accept interaction.
false The element has an enabled state and accepts interaction.
expanded expanded

Indicates whether collapsible content is currently visible or hidden from the user. MDN

true The associated content expands and becomes visible to the user.
false The associated content collapses and hides from the user.
form form

Associates the button with a form. Set the property to a form element or its ID. The HTML attribute accepts only the form ID. Reading the property returns the associated form element or null. https://developer.mozilla.org/en-US/docs/Web/API/ElementInternals/form

i18n i18n

Updates internal string values for internationalization.

interestForElement interestfor
name name

The name of the button, submitted as a pair with the button value as part of the form data. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#attr-name

string
popoverTargetAction popovertargetaction

The popover target action to perform on the popover target element. https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/popoverTargetAction

show
hide
toggle
popoverTargetElement popovertarget

Establishes a relationship between a popover and its invoker button. https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/popoverTargetElement

pressed pressed

Indicates the current state of a toggle button that switches on or off. MDN

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.
readOnly readonly

Indicates whether the element is a noninteractive visual treatment instead of a button. https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/readonly

true
false
selected selected

Indicates whether an element currently holds selection within a multi-option selection group. MDN

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.
sort sort

The current sort value, can be ascending, descending, or none.

ascending
descending
none
type type

Defines the button behavior when associated within a form element. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#attr-type

button
submit
reset
value 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

string

Events

EventDescription sort

Dispatched on activation with detail: { value, next }, where value is the current sort and next follows the cycle none → ascending → descending → none.

CSS Properties

Css-propertyDescription --border-radius --color --height --width

CSS Parts

Css-partDescription icon

The icon element