Skip to content
ray·elements
Get startedFoundationsComponentsExtendingChartsraylang

Buttons

Inputs

Navigation

Overlays

Data display

Feedback

Layout

Theme

Buttons

Button Button group Icon button Toggle Toggle group

Inputs

Avatar picker (Profile picture, Photo picker) Checkbox Checkbox group Color picker Combobox (Multi select) Date picker File upload Image crop Input Knob (Rotary, Dial, Potentiometer) Mode input Number input Password input Path input (File path, Folder picker) Radio group Search Segmented control Select Slider (Range, Fader) Switch Tags input (Tag input, Chips input, TagsInput) Textarea

Navigation

Bottom nav Breadcrumbs Document tabs Nav link Pagination Sidebar Stepper Tabs

Overlays

Command palette Dialog (Modal) Drawer Menu Popover Tooltip

Data display

Accordion Attachment Avatar Badge Blockquote Carousel Code Icon Indicator Kbd Meter (Level meter, VU meter, Peak meter) QR code (QR, Barcode, 2D code) Stat Table Timeline

Feedback

Alert Empty state Notification Progress Pulse Ring progress Skeleton Spinner Step dots

Layout

App bar App shell Aspect ratio Card Center Container Grid Group Scroll area Separator Split Stack Status bar

Theme

Theme toggle
Components/Navigation

Nav link

A sidebar/navigation item: icon, label, description, badge, active state, and nested nav links that collapse under it.

Source on GitHub

3
Code

Open the code

API

For AI agents: this API as Markdown, or every component in llms-full.txt.

<ray-nav-link> · RayNavLink

A link with href (aria-current=page when active), or a button that toggles its nested links.

PropertyAttributeTypeDefaultDescription
labellabelstringText.
descriptiondescriptionstringSecond line.
hrefhref reflectsstringMakes it a link (ignored when it has nested links).
activeactive reflectsbooleanThe current page or section.
openedopened reflectsbooleanNested links are shown.
disableddisabled reflectsbooleanNot interactive.
variantvariant reflectslight | filled | subtlelightStyle of the active state.
colorcolor reflectsstringActive color.
iconOnlyicon-only reflectsbooleanOnly the icon (left section), centered; the label becomes its accessible name and tooltip. A collapsed ray-sidebar sets it.
EventDescription
ray-toggleNested links were shown or hidden.
SlotDescription
(default)Nested ray-nav-link elements.
leftIcon.
rightBadge or count.
PartDescription
linkThe inner <a> or <button>.
childrenThe nested links.
PreviousDocument tabsNextPagination
ray·elements — web components for any app, with raylang extras GitHub · npm · Changelog · License For AI agents: llms.txt · llms-full.txt Tokens, docs, tests and wrappers generated by tools/run.sh build