ClickorKeyboard shortcut Alt + L

Dragto resize

Nord Design System SearchDeveloperDeveloperGetting startedUsing Web ComponentsWebfontsCDNLocalizationCSS Framework Legacy ESLint PluginWorking with AIFAQDesignDesignGetting startedFoundationsAccessibilityColor SystemColor UtilitiesPrinciplesFigma ToolkitGridIconographyNamingNordhealth BrandTypographyThemesBrand assetsToolsComponentsComponentsAccordion New Aside New Autocomplete New AvatarBadgeBanner Updated ButtonButton GroupCalendar Updated Card Updated Chart New Checkbox Updated Collapsible New Combobox New Command MenuDate Picker Updated Date Range Picker New DividerDrawer Updated DropdownEmpty StateField New FieldsetFilter Bar New FooterHeaderIconInput Updated Input Group New Item New Kbd New LayoutMessageMeter New Modal Updated NavigationNotificationNumber Field New Otp Field New Outline New Overflow List New Pagination New Popout Updated ProgressProgress BarQrcodeRadio Updated Range Updated Resizable New Rich Text Editor New Scroll Area New Segmented ControlSelect Updated SkeletonSpinnerStackTabTableTagTextarea Updated Time Picker New Timestamp New ToastToggle Updated TooltipTop BarTruncate New Visually HiddenDesign TokensDesign TokensTailwind CSSTailwind CSSBlocksBlocksTemplatesTemplatesIconsIconsPlaygroundPlaygroundLatest UpdatesLatest UpdatesChangelogChangelogMigration guidesMigration guides
GitHub

Clickto expandKeyboard shortcut Alt + L

Overflow List Count Alpha Light DOM & Tailwind

Displays the live number of non-interactive items hidden by an Overflow List.

This component is considered alpha. We're still finalising the API, so it may include a breaking change at any time — use it at your own risk.

Usage

Overflow List Count is the declarative count-only companion to Overflow List. Nest it inside the list’s consumer-owned slot="overflow" Badge or another suitable affordance. It derives the count from the nearest Overflow List and does not require an event listener or setup script.

import "@nordhealth/components/lib/OverflowListCount"

Use this helper for non-interactive, nonessential tags or metadata when a summary count is sufficient. It does not expose individual hidden content or actions; use Overflow List Menu whenever overflowed items must remain actionable.

Composition

Overflow List Count reads hidden-item state from its nearest Overflow List and renders consumer-owned count text inside the list's overflow affordance. It has no interactive state of its own and follows the semantics of the enclosing slot="overflow" element.

Examples

Labels and formatting

The default visual label is +N more. Add compact to show +N, as in the Badge Tags example. Counts use Intl.NumberFormat with the active document language.

Set singular-label and plural-label to identify the hidden content. For example, singular-label="tag" plural-label="tags" exposes an accessible phrase such as “1 more tag” or “2 more tags”.

Accessibility

  • Treat the helper as text inside its enclosing overflow affordance; it is not an interactive control by itself.
  • Do not use a count alone as an equivalent replacement for hidden actions.
  • Keep the enclosing slot="overflow" element at the logical collapse edge in DOM order.

API reference

OverflowListCount

Displays the number of items currently hidden by the nearest Overflow List.

<nord-overflow-list-count></nord-overflow-list-count>

Props

PropertyAttribute Description TypeDefault
compactcompactShows only the signed count visually while keeping the full accessible phrase.booleanfalse
singularLabelsingular-labelNoun used by the accessible phrase when exactly one item is hidden.string | undefined
pluralLabelplural-labelNoun used by the accessible phrase when multiple items are hidden.string | undefined
Light DOM & Tailwind. This component renders in the light DOM, so you can style it directly with your own CSS or Tailwind utility classes — there is no shadow boundary, and its default styles are low specificity, so your utilities win.