Component library

Learn how to build components, then explore every built-in nc-* that ships with create-nativecore.

Getting started Built-in catalog

Getting started with components

NativeCoreJS UI is Web Components on the platform — no virtual DOM. Built-ins live under src/components/core/; your app components live under src/components/ui/. You are not limited to nc-*: install any npm package (utilities or other Web Component libraries) and import it — the scaffold syncs an import map on dev / compile.

  1. Scaffold an app: npx create-nativecore@latest my-app
  2. Open a view and drop in a tag, e.g. <nc-button variant="primary">Save</nc-button>
  3. Tags register lazily via frameworkRegistry / appRegistry — no manual import in most cases

Deep dive: Native Web Components · First component · Core components · Slots

How to build your own

Use generators so registration and naming stay consistent.

App UI — make:component

npm run make:component task-card
  • Creates src/components/ui/task-card.*
  • Registers in appRegistry
  • Extends CoreComponent with Shadow DOM lifecycle

Framework-style — make:core-component

npm run make:core-component status-pill
  • Creates src/components/core/nc-status-pill.*
  • Registers in frameworkRegistry
  • Use for shared nc-* primitives you want to treat as built-ins

Pull newer framework nc-* into an existing app with npm run sync:components (runtime Core is separate: npm run sync:core).

Built-in library

Every registered built-in tag with a live sample. Child tags (e.g. nc-tab-item) appear inside their parents.

63 built-in tags documented below.

Actions

nc-button

Primary action button with variants.

API reference

Primary Outline Secondary Tertiary

nc-chip

Compact label / filter chip.

API reference

Web Components Signals

nc-a

Framework-aware anchor for SPA navigation.

API reference

Go to Get started

nc-scroll-top

Floating control to scroll back to top.

API reference

Present on long pages — try scrolling this site.

Inputs

nc-input

Text input with label and validation hooks.

API reference

nc-form

Form wrapper coordinating nc-field inputs.

API reference

Submit

nc-fieldchild

Labeled field wrapper used inside nc-form.

API reference

Shown inside nc-form above.

Feedback

nc-alert

Inline status message.

API reference

Platform events and Shadow DOM. Scaffold ready — JS by default. Prefer attributes from source. Check the console for unknown elements.

nc-snackbar

Transient toast notification.

API reference

Show snackbar

nc-progress-circular

Circular progress indicator.

API reference

loading-spinner

Inline page loading spinner (shell default).

API reference

Overlays

nc-modal

Modal dialog with slots.

API reference

Open modal Enterprise dialog

Wire open/close from your controller.

Close

nc-drawer

Side drawer panel.

API reference

Open drawer Drawer

Use for filters, details, or mobile nav.

Close

nc-popover

Anchored popover content.

API reference

Popover

Short contextual content.

nc-dropdown

Dropdown menu trigger.

API reference

Menu Docs Components Ebook

nc-menu

Menu list container.

API reference

See nc-dropdown demo above.

nc-menu-itemchild

Single menu row.

API reference

Used inside nc-menu.

Navigation

nc-tabs

Tabbed content panels.

API reference

Router, state, and components. Ebook + cheat sheet on this site. npm run build:full

nc-tab-itemchild

Single tab panel.

API reference

Used inside nc-tabs.

nc-bottom-nav-itemchild

Bottom nav item.

API reference

Used inside nc-bottom-nav.

nc-stepchild

Single stepper step.

API reference

Used inside nc-stepper.

Data & content

nc-timeline-itemchild

Timeline row.

API reference

Used inside nc-timeline.

nc-accordion

Expandable sections.

API reference

Router, state, generators, and nc-* UI. npm run sync:components

nc-accordion-itemchild

Accordion panel.

API reference

Used inside nc-accordion.

nc-collapsible

Simple show/hide region.

API reference

Collapsed content for progressive disclosure.

nc-code

Syntax-highlighted code block.

API reference

npx create-nativecore@latest my-app

Identity & media

Layout & primitives

nc-card

Content card surface.

API reference

Card

Group related content with optional header/footer slots.

nc-div

Styled layout div primitive.

API reference

nc-div surface

nc-divider

Horizontal or vertical rule.

API reference

Above

Below

nc-animation

Path-picking motion: CSS compositor, GPU WAAPI, or canvas particles — chosen from the preset name.

API reference

Animated entrance wrapper.