OverviewGetting startedComponentsIconsGuidesExamplesBlogs
OverviewGetting startedComponentsIconsGuidesExamplesBlogs
GitHub repositoryJoin the c2n-webcomponents Discord

Steps

The trace of a task as it runs, or a stepper across the top of a view: statuses, durations, stages that open while they work, and steps the reader can select.

c2-steps

A list of steps: the trace of a task as it runs, or a wizard's progress — vertical by default, or across the top of a view with orientation="horizontal". Each row is a marker, a label, an optional dimmed detail beside it and trailing text at the end — a duration, a count, a timestamp.

A step with sub-steps is a group, and a group is a disclosure: its own row is the summary and its sub-steps are the detail. Every step is a row, and every row is visible — a group starts expanded and nothing ever folds one away on its own. The chevron is there for the reader, collapsed in the markup starts a stage folded, and the run only ever brings a folded stage back into view when it starts running or something in it fails.

Author it either way, and mix them freely:

  • Declarative — slot c2-step children and nest them for sub-steps.
  • Data-driven — hand it a steps array of { id, label, detail, trailing, status, children } and it renders the tree itself. The array wins when both are present. During a run, updateStep(id, patch) changes one step without rebuilding the array.

Everything the markup fills with a slot, the data-driven mode fills with a renderer: renderMarker for the marker slot, renderToggle for toggle, renderLabel / renderDetail / renderTrailing for the text, and renderItem for that text all at once. Each is handed the node, its depth, its position, its dotted path and the status actually in effect.

A parent step that does not author a status takes one from its children: the most urgent thing inside wins, so a stage reports that it is running, or that something under it failed, without you setting it.

current is the shortcut a wizard wants: set it to the index of the active step and every top-level step that has neither an explicit status nor sub-steps becomes success before it, current at it and pending after.

A step that arrives while the list is already on screen grows into place rather than appearing, and a marker gives one beat as its status settles — which is what a trace being written in front of you should look like. --c2-step--enter-duration: 0s turns the first off, and prefers-reduced-motion turns both off.

The connector rail between markers is drawn by CSS and off by default, because a trace does not want one — give --c2-step__rail--width a width and a stepper gets its rail.

Numbering follows the tree: marker="number" draws a dotted path, so the first child of the third step reads 3.1 rather than a second 1.

Horizontal. orientation="horizontal" lays the top-level steps out side by side, each a column with its marker on a connector rail and its text underneath. Sub-steps are not drawn there — a group still rolls their status up, so a stage reads as running or failed — and the list scrolls sideways rather than squeezing a step below --c2-step__row__horizontal--min-width.

Interactive. interactive turns every row that is not a disclosure into a button, and the list keeps one selected step: selected names it by its value (a data node's id), or by its dotted path when it has none. Pressing a step selects it and fires selection-change; a disabled step cannot be selected. That is how a view follows a task — select the step that is running to show its log, select the result when it finishes, and the reader can still press the first step to go back to the log. Selection is independent of status: the list never moves it on its own.

Attributes

NameTypeDefaultDescription
markerStepsMarkericonHow each marker is drawn: a status glyph, the step's number, or nothing.
orientationStepsOrientationverticalWhich way the list runs. A horizontal list draws its top-level steps side by side, and no sub-steps.
interactivebooleanfalseMakes every row that is not a disclosure a button that selects its step.
selectedstring—The selected step of an interactive list: its value (a data node's id), or its dotted path when it has none. Empty selects nothing. Set it to move the selection; the reader's presses set it too.
currentnumber-1Index of the active step, for a wizard. -1 (the default) leaves every status alone; otherwise a top-level step with neither an explicit status nor sub-steps becomes success before this index, current at it and pending after it.
stepsStepNode[] | undefinedundefinedThe steps as data, instead of c2-step children. Takes precedence over the slot.
aria-labelstring | nullnullAccessible name for the list.

Slots

NameDescription
(default)The c2-step children. Ignored when steps is set.

Events

NameTypeDescription
selection-changeCustomEvent<StepsSelectionChangeEventDetail>The reader selected another step of an interactive list. detail.value is the new selected, detail.path where the step sits. Not fired for programmatic changes. Does not bubble: several components fire selection-change, so a listener belongs on the element itself.
step-toggleCustomEvent<StepToggleEventDetail>Fired by a c2-step when a group opens or closes, and bubbling to here. event.target is the step; detail.path says where it sits.

CSS custom properties

Grouped by semantic target and state from --c2-<component>__<target>__<state>--<property>. Click a group to collapse it; click a name to copy it.

NameTypeDefaultDescription
c2-steps
--c2-steps--gappixel0pxSpace between rows. A stepper usually wants some; a trace does not.
--c2-steps--backgroundcolor—
--c2-steps--borderborder—
--c2-steps--border-radiusborder-radius—
--c2-steps--padding-blockpadding0px
--c2-steps--padding-inlinepadding0px
--c2-steps--overflow-yoverflowvisibleauto with a max-height keeps a long run in its own scroller.
--c2-steps--max-heightmax-heightnone
c2-steps > horizontal
--c2-steps__horizontal--overflow-xoverflowautoHow a horizontal list that is wider than its box behaves.

c2-step

One row of a Steps list: a marker, a label with optional dimmed detail, and trailing text at the end of the row — a duration, a count, a timestamp.

A step with sub-steps is a group. Nest c2-step children and the row becomes the summary of a disclosure and the children its detail, so a long run collapses to the shape of the task rather than to a wall of lines. There is no second element to learn: the same tag is a leaf or a group depending on what is inside it.

Every step is a row, and every row is visible. A group starts expanded and nothing ever folds one away on its own: the chevron is there for the reader, and collapsed in the markup starts a stage folded. The run only ever brings a stage back into view — a folded one reopens when it starts running (running, current) or when something in it goes wrong (error, warning).

A step is one row. Label, detail and trailing text sit on a single line and truncate with an ellipsis rather than wrapping, so a hundred-step trace stays scannable, and a sub-step is indented far enough that its marker lands under its parent's label. --c2-step__text--flex-direction: column still stacks the detail under the label, which a wizard's descriptions want — that is two lines on purpose, and each of them is still one line.

In an interactive list a row is a button. Pressing it selects the step — the list keeps one selected step and says so with selection-change — so a view can show what belongs to it: the log of the step that ran, the result of the step that produced one. A group's row stays its disclosure; disabled keeps a step from being selected.

The step never sets its own depth, position, marker mode, orientation or selection: the parent c2-steps writes them on every pass, so a step used on its own renders as a single root-level row.

States. The step never writes an attribute on its own host — not even the status the list rolls up or the collapsed a reader toggles, neither of which reflects — so server-rendered markup matches the hydrated element. Page CSS reads the step through custom states instead: its status (c2-step:state(running), :state(success), :state(error), :state(warning), :state(current), :state(skipped), :state(pending)), :state(collapsed), :state(has-children) for a group, :state(last) for the last step of its group, :state(grouped) when the list holds any group, the marker mode as :state(marker-icon), :state(marker-number) or :state(marker-none), and the two animations: :state(entering) while a step that arrived in a running trace grows into place, and :state(settling) while its marker gives the beat of a changed status.

Attributes

NameTypeDefaultDescription
statusStepStatuspendingState of the step. Drives the marker glyph and the accent colour, and reopens a folded group. Not reflected: the parent list writes a rolled-up status onto a group that authored none, and a reflected one would be an attribute the server never rendered. Read it as :state(<status>).
labelstring—Primary text, when the label slot is empty.
detailstring—Dimmed secondary text beside the label, when the detail slot is empty.
trailingstring—Text at the end of the row, when the trailing slot is empty.
valuestring—What the parent c2-steps calls this step in selected and selection-change. Without one, the step is called by its dotted path — 2 for the second top-level step.
disabledbooleanfalseIn an interactive list, keeps the step from being selected. Its row stays visible, and its status still shows.
collapsedbooleanfalseWhether this group is folded away. A group is expanded by default — every step in the list is a row you can see — and only the reader, the markup or a reopening status ever changes that. Not reflected; read it as :state(collapsed).

Slots

NameDescription
(default)Sub-steps. A step that has them is a group.
labelPrimary text. Falls back to the label attribute.
detailSecondary text beside the label. Falls back to the detail attribute.
trailingContent at the end of the row. Falls back to the trailing attribute.
markerReplaces the whole marker: a custom icon, an avatar, a number of your own.
toggleA disclosure affordance of your own — a chevron, a caret. Empty by default: a trace is a list of rows, and the row is already clickable. It is filled per step, so give a leaf an empty <span slot="toggle"></span> to keep its rows lined up with the groups above them.

Events

NameTypeDescription
step-toggleCustomEvent<StepToggleEventDetail>A group was folded away or brought back. Bubbles.

CSS parts

Shadow DOM styling hooks used with ::part(name). Prefer CSS custom properties when they cover the change.

NameDescription
frameThe box around the whole step, which is what grows when a new step arrives.
rowThe row itself: toggle, marker, text and trailing content. A group's row is its <summary>, and a selectable row in an interactive list is a <button>.
toggleDisclosure region containing the assigned toggle slot for a group.
markerRound marker region containing the marker slot or status fallback at the start of the row.
railThe connector between this marker and the next.
labelPrimary-text region containing the label slot or property fallback.
detailSecondary-text region containing the detail slot or property fallback.
trailingEnd-aligned text region containing the trailing slot or property fallback.
childrenThe box holding the sub-steps.

CSS custom properties

Grouped by semantic target and state from --c2-<component>__<target>__<state>--<property>. Click a group to collapse it; click a name to copy it.

NameTypeDefaultDescription
c2-step
--c2-step--transition-durationtime150msColour transitions, and the beat a marker gives when its status settles.
--c2-step--enter-durationtime260msHow long a step arriving in a running trace takes to grow into place. 0s turns the animation off.
--c2-step--enter-translatetranslate-4pxHow far it slides while it does.
c2-step > row
--c2-step__row--gappixel10pxSpace between the marker, the text and the trailing content.
--c2-step__row--padding-blockpadding7px
--c2-step__row--padding-inlinepadding12px
--c2-step__row--indentpixelcalc(var(--c2-step__marker--size, 16px) + var(--c2-step__row--gap, 10px))Extra inset per level of nesting. The default puts a sub-step's marker under its parent's label, which is what makes the nesting read without drawing anything.
--c2-step__row--border-radiusborder-radius—
--c2-step__row--backgroundcolor—
--c2-step__row--border-bottomborder1px solid #e4e4e7The hairline under each row.
--c2-step__row--outlineborder2px solid rgb(2, 101, 220)Focus ring of a row that is a button: a group's, and every selectable one.
c2-step > row > hover
--c2-step__row__hover--backgroundcolor—Set it to make the rows respond to the pointer.
c2-step > row > selected
--c2-step__row__selected--backgroundcolor—Background of the selected row in an interactive list. None by default: the label colour alone marks the selection.
--c2-step__row__selected--box-shadowbox-shadow—An indicator for the selected row — inset 0 -2px 0 currentColor underlines it.
c2-step > row > disabled
--c2-step__row__disabled--opacityopacity0.38A disabled step in an interactive list.
c2-step > row > horizontal
--c2-step__row__horizontal--border-bottombordernoneThe hairline under each step of a horizontal list, which has none by default.
--c2-step__row__horizontal--min-widthpixel96pxThe narrowest a step of a horizontal list gets before the list scrolls.
--c2-step__row__horizontal--grid-template-areasgrid-template-areas"marker rail rail" "text text text" "trailing trailing trailing"Where the text sits around the marker in a horizontal list. The cells are marker, rail, text and trailing, over three columns sized auto auto 1fr; the rail always takes the last one and runs on to the next step. Text over the marker: "text text text" "trailing trailing trailing" "marker rail rail", with --c2-step__row__horizontal--align-content: end. Beside it: "marker text rail" ". trailing .". Before it: "text marker rail" "trailing . .".
--c2-step__row__horizontal--align-contentalign-contentstartWhich end of a horizontal step its rows pack to when a neighbour is taller. end with the text over the marker keeps every marker on one line.
--c2-step__row__horizontal--row-gappixel8pxSpace between the marker's line and the text above or below it in a horizontal list.
c2-step > toggle
--c2-step__toggle--sizepixel14pxWidth of the toggle slot's column, when it is filled.
--c2-step__toggle--gappixel4pxSpace between that column and the marker.
--c2-step__toggle--colorcolor#a1a1aa
c2-step > guide
--c2-step__guide--colorcolor#e4e4e7A vertical rule at each ancestor's depth, for a file-tree look. Off by default.
--c2-step__guide--widthpixel0pxWidth of that rule. 1px turns the guides on.
c2-step > marker
--c2-step__marker--sizepixel16px
--c2-step__marker--font-sizefont-size10pxSize of the dotted path in marker="number".
--c2-step__marker--padding-inlinepadding3pxBreathing room either side of a dotted path, which is what turns the circle into a pill when the number is long. Only marker="number" uses it.
--c2-step__marker--font-weightfont-weight600
--c2-step__marker--border-radiusborder-radius999px
--c2-step__marker--borderborder1px solid #bcbcc6The ring, drawn for the states that have no glyph of their own (pending, current, running) and for every marker="number" step. A finished step is its glyph, so it has no ring.
--c2-step__marker--backgroundcolortransparent
--c2-step__marker--colorcolor#71717a
c2-step > rail
--c2-step__rail--widthpixel0pxWidth of the connector. 0px is the trace look; 2px gives a stepper its rail.
--c2-step__rail--colorcolor#e4e4e7
--c2-step__rail--gappixel4pxSpace between the marker and the rail.
c2-step > rail > horizontal
--c2-step__rail__horizontal--widthpixel2pxThickness of the connector in a horizontal list, which always links one step to the next: it runs from this step's marker (or its label, when the label comes after the marker) through the gap to where the next step starts, one --c2-step__rail--gap short of it at each end.
c2-step > label
--c2-step__label--colorcolor#18181b
--c2-step__label--font-sizefont-size13px
--c2-step__label--font-weightfont-weight500
--c2-step__label--font-familyfont-familyui-monospace, SFMono-Regular, Menlo, Consolas, monospace
c2-step > label > selected
--c2-step__label__selected--colorcolorrgb(2, 101, 220)Label colour of the selected row: what marks the selection by default.
--c2-step__label__selected--font-weightfont-weight—Label weight of the selected row. Falls back to the label weight.
c2-step > detail
--c2-step__detail--colorcolor#71717a
--c2-step__detail--font-sizefont-size—Falls back to the label size.
--c2-step__detail--font-weightfont-weight400
--c2-step__detail--gappixel8pxSpace between the label and the detail when they share a line.
--c2-step__detail--row-gappixel2pxSpace between them when they are stacked.
c2-step > text
--c2-step__text--flex-directionflex-direction-rowrowcolumn puts the detail on its own line under the label, which a wizard's descriptions want. It is the only variable that switch needs: the gap and the alignment follow it.
--c2-step__text--align-itemsalign-itemsbaselineHow the label and the detail line up across the row. Stacked, they are flush left whatever this says.
c2-step > trailing
--c2-step__trailing--colorcolor#71717a
--c2-step__trailing--font-sizefont-size—Falls back to the label size.
--c2-step__trailing--font-weightfont-weight400
c2-step > success
--c2-step__success--colorcolor#16a34aMarker colour when the step succeeded.
c2-step > error
--c2-step__error--colorcolor#dc2626
c2-step > warning
--c2-step__warning--colorcolor#d97706
c2-step > running
--c2-step__running--colorcolorrgb(2, 101, 220)
c2-step > current
--c2-step__current--colorcolorrgb(2, 101, 220)
c2-step > skipped
--c2-step__skipped--colorcolor#71717aMarker and label colour when the step was skipped.
AccordionConnected, animated panels with shared borders and single or multiple expansion.LayoutAction BarA floating bar for the current selection: the count, the bulk actions and a button that clears it.LayoutAddress fieldA postal address input with the parts, order and labels of each country, optional autocomplete from your address provider.InputsAngle SliderA round knob to pick a direction on a full circle, or a value along an arc like a thermostat or volume dial, by drag or keys.InputsApp ShellThe frame of an application: header, navigation, main, an optional details panel, banner and footer, laid out from its own width.LayoutArea chartA line chart with the region under each line filled — every line-chart attribute, plus a fill opacity.ChartAttachmentFile and image attachments with metadata, upload progress, failure states, and actions.Data displayAudio PlayerWaveform playback for voice notes and recordings: the waveform is the seek bar, with the time, a speed toggle and an optional transcript.Data displayAudio VisualizerLive audio level as bars, a waveform or an orb: the mic meter of a call, a voice message, a voice assistant.Data displayAutocompleteSearchable combobox for local or remote items with customizable list rows.InputsAvatarImage, initials or icon for a person, with status dot and badge.Data displayBackdropA container that draws a decorative pattern behind its content: dots, a grid, stripes, flicker, aurora or meteors.LayoutBadgeTinted pill for status text, counts and dots, optionally pinned to a corner of another element.Data displayBannerA persistent, full-width message in the page flow for system notices, outages and account status.FeedbackBar chartBars over categories or time buckets, with several series drawn side by side within each band.ChartBar ListA ranked list whose rows carry their own bar: top pages, referrers, countries, or the changes between two periods.Data displayBarcodeA 1D or 2D barcode drawn as SVG in the browser: Code 128, EAN-13, EAN-8, UPC-A, Code 39 and Data Matrix.Data displayBarcode ScannerReads barcodes and QR codes with the camera: a scan window, single or continuous scanning, a beep, the camera light, and a scan event with the value and the format.InputsBeamAn animated line between two elements, for data-flow and integration diagrams.LayoutBorder BeamA decorative beam that travels around the border of any positioned container.LayoutBottom NavThe mobile tab bar: three to five destinations along the bottom of the screen, each an icon over a short label with a count or dot badge.NavigationBox plot chartThe distribution of each category as its median, quartiles, whiskers and outliers: latency per service, test scores, A/B results.ChartBreadcrumbNavigation trail of link buttons with separators, a current page and optional collapsing.NavigationBubble chartAn ECharts scatter plot with a third measure encoded as bubble area, for comparing how two measures relate while showing how much each point weighs.ChartBullet chartOne measure against a target and qualitative bands, a row per KPI, as Stephen Few drew it for scorecards.ChartButterfly chartTwo series back to back on a shared category axis, the categories named between them. The population pyramid is the classic case.ChartButtonThemeable button with slots for text, prefix, suffix and running icons.ButtonsButton GroupJoined actions and polished segmented controls with single or multiple selection.ButtonsCamera CaptureA camera viewfinder for documents, cards and faces: a framing guide, quality hints, auto-capture when steady, retake or keep, front/back switch and a list of required shots. Each photo is a Blob.InputsCandlestick chartAn ECharts OHLC chart for market sessions and other open-close ranges, with semantic positive and negative colours.ChartCardGroups related content and actions on a single bordered surface.LayoutCard InputCard number, expiry date and security code in one field, formatted as the brand prints them and checked as they are typed.InputsCarouselA swipeable slideshow with previous/next controls, indicators, looping and optional autoplay.LayoutCascaderSelect a value from related, multi-level data in one floating panel.InputsCelebrationConfetti, a burst of sparks or rising emoji for a moment worth marking, fired from code or a click.FeedbackChange ReviewReview proposed edits hunk by hunk: accept or reject each change, then take the resulting text.Editors & viewersChat InputAuto-growing message composer with keyboard submission, toolbar actions and native form support.ChatChat MessageFlexible message row for conversations, assistant answers and activity updates.ChatChat Message ListScrolling conversation log that follows new messages, counts unread ones and loads older history.ChatCheckboxNative checkbox behaviour in a quiet, themeable box with an opt-in hover layer.InputsCheckbox groupCheckboxes grouped into one form control with a value array, a group label and an at-least-one rule.InputsChipA compact pill for a filter, a choice or an entered value: selectable as a toggle, removable with a button or the keyboard.InputsChip GroupA single row of chips or badges that collapses whatever does not fit into a +N indicator, recomputed as the row or its items change size.Data displayChoice MatrixRows × columns of checkboxes or radio buttons in one form control: permissions, notification settings, agreement scales.InputsChord chartFlows between groups around a circle, where one row is one flow from a source to a target.ChartCitationA numbered inline marker that names its source, with a hover preview of the page it cites.ChatCode EditorEditable, syntax-highlighted source field on CodeMirror 6, themed entirely through CSS variables.Editors & viewersCode ViewerSyntax-highlighted code with line numbers, copy button and dark mode, powered by shiki.Editors & viewersColor AreaTwo-dimensional area for picking saturation and value of a colour.InputsColor SelectColour swatch that opens a full picker built from area and slider.InputsColor SliderHorizontal slider for choosing a hue from 0 to 360.InputsCommandA searchable list of commands: type to filter, arrows to highlight, Enter to run. The core of a ⌘K palette.NavigationComment ThreadOne conversation on a piece of content: the first comment and its replies, a reply box, edit and delete on your own comments, and Resolve.ChatComparison BarSegmented ratio bar comparing two or three quantities, such as the bid/ask balance of an order book.Data displayConfirm DialogAsks the user to confirm an action: await show() or confirm() for a true/false answer, with a destructive variant and an async confirm action.FeedbackContext MenuA menu opened by right-clicking or long-pressing an area, built from a slotted c2-menu or a render function per clicked spot.NavigationCopy ButtonButton that copies text to the clipboard — the element it sits in, another element by id, or a literal string.ButtonsCountdownTime left until a date, or through a timer, drawn as segments, a clock or a phrase, and kept current to the second.Data displayDashboardGrid of resizable panes, dragged by the edges they share.LayoutDate InputForm-associated single-date input with native picker, constraints, helper text and error states.InputsDate SelectorAccessible one- or two-month calendar for choosing a date range, one date or several dates.InputsDate StripA row of days to pick one from, a week at a time, with dots on the days that have something on them.InputsDate Time PickerForm-associated date-and-time field with a calendar and time popup, min/max/step constraints and an IANA time zone.InputsDepth chartCumulative bid and ask size around the mid price of an order book, as trading screens show market depth.ChartDescription ListRead-only label and value pairs for a detail page, in columns that wrap with the available width.Data displayDetailsCollapsible disclosure built on native details and summary.LayoutDevice FrameA browser window, phone, tablet or laptop drawn around a screenshot or live content.LayoutDiff ViewerRead-only line diff of two texts, unified or side by side, with folded unchanged lines and word highlights.Editors & viewersDistribution BarOne 100% stacked bar of a breakdown, with a legend of shares and the hovered part brought forward.Data displayDuration InputA text field for an amount of time: reads 1h 30m, 90m, 1.5h or 1:30 and stores seconds.InputsEmoji PickerA searchable grid of emoji in categories, with skin tones and the emoji used last.InputsFacet ListOne facet of a filter sidebar: an attribute’s values with counts, to include or exclude from a search.InputsFieldsetGroups related controls under a legend, with a description, a group-level error and a disabled state that reaches every control inside.InputsFile browserFolders and files with a folder tree, breadcrumbs, search, list and grid views, selection, a context menu, renaming and drag and drop.Data displayFilter BuilderA filter bar of sentence chips (Status is any of Active), an add-filter picker and an editor for each part; it reports a plain JSON filter tree.InputsFloat ButtonA floating action button for the main action of a screen, which can expand into a speed dial of related actions.ButtonsFloating PanelA window inside the page that the user drags, resizes, minimises and maximises, without blocking the page.LayoutFlowA pipeline, dependency graph or database schema on a pannable canvas: steps with a status, smooth edges, rows joined row to row, auto layout, draggable nodes saved to localStorage, a hover card and a context menu.Editors & viewersFormForm container with validation timing, an error summary, server errors, dirty tracking and async submit.InputsForm FieldLabel, hint, error, warning and character counter around any form control, wired for assistive technology.InputsFormat DateA date and time formatted for the reader's language and, optionally, a fixed time zone.Data displayFormat NumberA number formatted for its locale: currency, percent, units, compact counts and byte sizes, from Intl.NumberFormat.Data displayFX ConverterTwo linked amount and currency fields: type what you send or what arrives, with the fee, a swap and a guaranteed rate.InputsGanttA read-only project timeline: tasks, groups, milestones and dependencies on a day, week or month scale.PlanningGauge chartA focused radial KPI gauge drawn by ECharts, with a configurable scale, progress arc and pointer.ChartGoogle MapGoogle Maps with markers, a road route from A to B, and Street View, loaded once per page from a browser key.Data displayHeaderArranges brand, navigation, actions and a mobile trigger in a reusable site shell.LayoutHeatmap chartRows binned into cells by two keys, aggregated, and coloured by a sequential, diverging or stepped scale: a currency matrix, pair × tenor, hour × weekday, or a calendar of days. Drawn by ECharts, with a colour key that counts, marks and filters.ChartHighlightMarks the parts of a text that match a search query.Data displayHover CardInteractive preview card shown when a link or mention is hovered or focused, rendered in the top layer.FeedbackIcon ButtonRound, hoverable button wrapping a slotted SVG icon.ButtonsImageImage with lazy loading, a loading placeholder, an error fallback, click-to-load for untrusted URLs and a full-screen preview.Data displayImage annotatorArrows, boxes, text, numbered steps, blur and redaction over an image, exported as a PNG and as shapes.Editors & viewersImage CompareA before/after slider: two layers on top of each other, the after layer cut at a divider the reader drags.Data displayImage CropperChoose the part of an image to keep by moving and resizing a selection, then read it back as a canvas or a blob.Editors & viewersImport MapperThe mapping step of a spreadsheet import: match each column of the file to a field, check the required ones, then preview the rows with their errors.InputsIn ViewReacts when its content scrolls into view: reveal it, load more, or pause it when it leaves.LayoutIndicatorSolid dot or count pinned to an edge or corner of any element, with an accessible name for the count.Data displayInline EditText that turns into a field on click: Enter (Ctrl/⌘+Enter when multiline) commits, Escape cancels, and any control with a value that fires change can be the editor.InputsJSON FormA form generated from a JSON Schema, laid out by the schema, a UI schema or your own markup.InputsJSON ViewerBrowse a JSON value as a collapsible tree, search it, and copy any path or value.Editors & viewersKanbanBoard layout and card movement by pointer or keyboard, with cards drawn by your own renderItem.PlanningKbdKeyboard key label for shortcuts and command hints, with the semantics of the native kbd element.Data displayKey Value EditorEditable KEY=value rows for environment variables and headers: paste a .env file to split it into rows, mask secret values, and flag duplicate or malformed keys.InputsKeypadA phone-style numeric keypad that types an amount, fills PIN dots or drives another field, with a slot for a biometric key.InputsLabelCaption that names and activates the control referenced by its for attribute, with a required marker.InputsLine chartA line chart over a time or numeric x axis, drawn on canvas by uPlot, with series declared as children.ChartLink ButtonText-styled control for link and navigation actions, rendered as a real anchor or a button.NavigationListVertical list container with single or multiple selection.Data displayList ItemSelectable row with icon slots, used on its own, as the option of list and select, or as a navigation link with collapsible groups.Data displayLoading OverlayCovers a region while it loads: the content stays in place, dimmed and blocked, with a spinner and an announced label.FeedbackLog ViewerExplore large logs with variable-height virtual scrolling and sticky tabular attributes.Editors & viewersMap chartA choropleth and point map on vector outlines, drawn by ECharts: regions shaded by a value, with layers of sized points and flow lines, on the bundled world and US maps or your own GeoJSON, TopoJSON or SVG.ChartMarkdownSafe markdown renderer that streams: chat answers and READMEs, with code, math and diagrams.ChatMarkerAn inline marker that highlights, underlines, strikes through, boxes or circles a run of text.Data displayMarqueeA strip that scrolls its items in a continuous loop, for logo walls, testimonials and ticker tapes.LayoutMask InputA text input that fits what is typed to a pattern, for postcodes, IBANs, tax IDs, expiry dates and other fixed formats.InputsMasonryAutomatically pack differently sized dashboard tiles, then move or resize them in edit mode.LayoutMaster DetailA list beside the record it opens, one pane at a time with a Back step when the element is narrow.LayoutMathTeX formulas rendered as native MathML: no font CSS, readable by screen readers, safe for untrusted input.Data displayMenuCommands, links, checkboxes and submenus in a popover anchored to a trigger.NavigationMenubarDesktop-style File, Edit and View menus in one bar, with the arrow-key and hover movement of an application menu bar.NavigationMermaidMermaid text diagrams drawn in your theme colours, loaded on demand and safe for untrusted sources.Data displayMeterA measurement inside a known range — storage, quota, strength — with native meter thresholds and an optional segmented breakdown.Data displayMind MapAn idea tree laid out around a central topic, with keyboard editing as in XMind and Miro.Editors & viewersModalDialog built on the native dialog element: focus trap, backdrop, Escape, title, body and footer.FeedbackMoney InputCurrency amount field that groups digits as you type, follows the locale and stores an integer count of minor units.InputsMonth PickerPick a month, a quarter, a half-year or a year: billing periods, fiscal reports and card expiry.InputsMonth PlannerMonth calendar that draws events and trips as bars across the days they cover.PlanningNavigation MenuSite navigation bar whose triggers open panels of links below the header.NavigationNotepadA rich-text notepad that looks like paper: handwriting on ruled lines, a formatting toolbar over the selection, checklists and tear-off pages.PlanningNotification CenterAn inbox panel of notifications grouped by day, with read and unread states and mark all as read.FeedbackNumber InputForm-associated numeric input with native validation, step controls, adornments and helper states.InputsOrder BookLive bids and asks with depth bars, price grouping and a spread row, for a trading screen.Data displayOrg ChartA hierarchy drawn as connected cards that collapse and expand: an organization chart, a reporting line or a team structure.Data displayOTP InputForm-associated one-time-code field with one cell per character, paste and SMS autofill, grouping and masking.InputsOverflow ListOne row of actions or links that shows what fits and folds the rest into a "More" menu, refitting as its width changes.LayoutOverlap chartA Venn diagram of two or three sets, where each circle is a set and each shared area counts the members of exactly that combination.ChartOverlayAnchored popup built on the browser Popover API, positioned with floating-ui.FeedbackPage EditorA Notion-style editor for long text: Markdown shortcuts while you type, a / menu for blocks, a toolbar over selected text, code blocks with syntax colours and eight named colours.Editors & viewersPage HeaderThe top of a page: breadcrumb or parent link, your heading with status badges, description, metadata, page actions that fold into a menu, tabs and a toolbar.LayoutPaginationPage navigation in three layouts: numbered pages, a simple page status, or a table-footer row with rows-per-page.NavigationPan ZoomA viewport that pans and zooms its content: an image, an SVG diagram, a floor plan or a board.Editors & viewersPassword FieldA password input with a show/hide toggle, a strength meter, a requirements checklist and a Caps Lock warning.InputsPayment CardA company card face that stays masked until the reader asks, then shows each detail with a copy button.Data displayPhone InputA phone number field with a searchable country picker, as-you-type grouping and an E.164 value.InputsPie chartA pie or donut chart drawn by ECharts, where one row is one slice and label-field names it.ChartPivot tableSummarises flat rows by the fields set on rows and columns, with subtotals, totals, sorting, a heatmap and a field list.Data displayPopconfirmA small "Are you sure?" popup anchored to the button that asked for it.FeedbackProgressProgress bar or ring, indeterminate or filling to a value, with an optional label and count.FeedbackPromo Code FieldApply a promo code with checking and refusal states; applied codes stay as removable tokens with their saving.InputsPyramid chartRanked levels of a whole, stacked from a narrow apex to a wide base, where one row is one level.ChartQR CodeGenerate accessible, themeable QR codes locally as crisp SVG graphics.Data displayQuantity PickerSeveral labelled counters behind one summary ("2 adults, 1 child"), with limits per counter and in total.InputsQuery InputA key:value query field whose filters are chips you can switch off or remove, with syntax highlighting and field and value suggestions, as in Datadog, GitHub and Sentry.InputsQuestionnaireA multi-step single- and multiple-choice flow with validation, shortcuts and form submission.InputsQuick time menuA menu of quick times (Later today, Tomorrow, Next week), each showing when it falls, plus a date and time picker for anything else.InputsRadar chartCompare several profiles across the same set of normalized indicators.ChartRadial bar chartConcentric rings, each filling toward its own goal: activity rings, a readiness score, a budget per category.ChartRadioRadio options built on native inputs, grouped into one value with keyboard navigation.InputsRateAccessible star rating input with hover preview, keyboard control and optional half values.InputsReaction BarEmoji reactions with counts under a message or comment, toggled by the current user, with a picker to add more.ChatRecurrence EditorEdits how something repeats: every N days, weeks, months or years, weekdays, the third Tuesday, an end; reads and writes RRULE or cron.InputsRelative TimeTime relative to now, such as "3 minutes ago" or "in 2 days", that keeps itself current and shows the full date on hover.Data displayReorder ListReorder a vertical queue with pointer or keyboard input while the application owns persistence.Data displayRich Text EditorA compact formatted-text field for comments, replies and email bodies: bold, links, lists, quotes and code, a one-tab-stop toolbar, and a Markdown value.InputsSankey chartQuantities moving through stages, where one row is one flow and each band is as wide as what it carries.ChartSave BarA floating bar that appears while a form has unsaved changes, with Discard and Save.LayoutScatter chartAn ECharts scatter plot for finding relationships, clusters and outliers across two numeric measures.ChartSchedulerResource timeline: people, rooms or machines down the side, time across the top, each booking a bar you can drag.PlanningScroll AreaA scroll container with themed scrollbars and shadows on the edges with more content beyond them.LayoutScroll ProgressHow far the reader got: a bar that fills or a ring that closes as the page or a container scrolls.FeedbackSearch FieldA search box with a debounced search event, a clear button, a keyboard shortcut hint and recent searches.InputsSecret FieldShows an API key or other secret masked, with buttons to reveal it, copy it and ask for a new one.InputsSelectDropdown that pairs a themeable trigger with an anchored list of c2-list-item options.InputsSelection ToolbarA toolbar that appears over the text a reader selects: Ask AI, Comment, Bold, or any action the app slots in.Editors & viewersSeparatorHorizontal or vertical rule with an optional label, for dividing content and toolbars.LayoutShare SheetShare a link anywhere: copy it, send it to email or a network, scan it as a QR code, or hand it to the device’s own share sheet.FeedbackSheetDialog pinned to an edge of the screen, for content that complements the page rather than interrupting it.FeedbackShortcutKeyboard shortcuts for a whole application from one element: each binding fires an action event, runs a handler or activates a target.InputsSide NavResponsive navigation drawer beside the page: pushes the content on large screens, slides over it with a backdrop on small ones.NavigationSignature PadA box to sign in with a mouse, a pen or a finger, with undo and clear, that exports the signature as SVG or an image.InputsSkeletonPlaceholder block standing in for content that has not arrived, in three shapes and three animations.FeedbackSkip LinkA "Skip to main content" link that appears when a keyboard user tabs onto it and moves focus into the main content.NavigationSliderRange input with a themeable track, thumb, step ticks and value bubble.InputsSparklineA chromeless trend line sized for a table cell, a list row or the trend slot of a c2-stat.ChartSpinnerCircular progress indicator, indeterminate or showing a value, with optional text.FeedbackSplit ButtonA main action with a caret menu of alternatives, such as "Send ▾", or a remembered choice like a merge method.ButtonsSplit PanelTwo panels separated by a divider the user drags, or moves with the keyboard, to resize them.LayoutSpreadsheetA small editable grid with basic formulas, for budgets, quotes, price lists and score sheets.Editors & viewersStatDisplays a KPI with an optional icon, trend and supporting description.Data displayState TimelineOne band per series, coloured by the discrete state it was in over time: service health, CI runs, host power.ChartStatus LightColoured dot plus a short label for the state of something, such as Live, Building or Failed.Data displayStatus PanelCommunicate empty states, operation outcomes and recoverable errors with clear next steps.FeedbackStepsThe trace of a task as it runs, or a stepper across the top of a view: statuses, durations, stages that open while they work, and steps the reader can select.Data displayStickyPins content to the top or bottom of its scroll container and tells you when it is stuck, optionally hiding it while the reader scrolls down.LayoutStreaming TextPlain text that arrives in bursts, such as an LLM answer, revealed at a steady pace behind a caret.ChatSunburst chartA hierarchy drawn as rings, the whole at the centre and each ring splitting its parent: budgets, disk usage and org spend, with click to zoom.ChartSwipe ActionA list row that slides sideways to reveal actions behind it, as in a mail or task list on a phone.LayoutSwitchOn/off toggle on a native switch input, with label, description and thumb icons.InputsTableVirtualized data grid with declarative columns, sorting, selection, pinning and resizing.Data displayTable Of ContentsAn "On this page" navigation that lists the headings of a document, nests them by level and highlights the section being read.NavigationTabsTab strip that shows one content panel at a time.NavigationTag InputTurns typed or pasted text into removable tags — recipients, keywords, labels — with configurable delimiters, parsing and validation.InputsTerminalAn interactive prompt for commands your app answers: history, Tab completion, streaming output, Ctrl+C, ANSI colours.Editors & viewersText EffectAnimated text for a hero line or a status: rotating words, a typewriter, a scramble, a shimmer or a staggered reveal.Data displayText FieldSingle-line input with icon slots, clear button, helper and error text, and a character counter.InputsTextareaMultiline text input with resizing, helper and error text, and a character counter.InputsTheme SelectColour-theme switcher: click to step to the next mode, hover for the full menu.InputsTime InputForm-associated time-of-day input with a scroll-wheel picker, step and range constraints, helper text and error states.InputsTime Range PickerDashboard time range control: searchable quick ranges, an absolute range typed or picked on a calendar, time zone, shift and zoom, and auto-refresh.InputsTime Slot PickerPick a free time from someone's calendar: a row of days, then that day's times grouped into morning, afternoon and evening.InputsTimelineA vertical sequence of dated events on a connected rail: order history, activity feeds, changelogs.Data displayToastNotification cards and a manager for stacked, queued notifications with independent lifetimes.FeedbackTodo ListA to-do list with the feel of paper: hand-drawn ticks, notes, highlighters, swipe and drag, and a remembered look.PlanningToggletipA small ⓘ button that opens a help bubble on click or tap; the bubble can hold links and is announced to screen readers.FeedbackTooltipContextual hint shown when its target is hovered or focused, rendered in the top layer.FeedbackTourA guided product tour that spotlights one element at a time and explains it in a panel beside it.FeedbackTrace WaterfallShow the spans of a distributed trace as a tree, each with a duration bar on one shared time axis.Data displayTranscriptSpeaker-labelled, timestamped segments synced to playback: click to seek, the word playing marked, search built in.Data displayTreeHierarchical tree view with expansion, selection, checkboxes and lazy loading.Data displayTree SelectA dropdown for picking one or several rows from a hierarchy, with checkboxes, search and a form value.InputsTreemap chartA whole split into nested rectangles, each sized by its value: market maps, budgets and disk usage.ChartTruncateClamps text to a number of lines, with an optional Show more button.Data displayUploadDrag-and-drop file selection with validation, upload progress, retry, cancellation, and attachment results.InputsVideo GridLays out the tiles of a call as a grid, a spotlight or a sidebar, every tile as large as the space allows.LayoutVideo PlayerThemed controls over a real video: chapters on the seek bar, a thumbnail while scrubbing, captions, speed, picture-in-picture and full screen.Data displayVideo TileOne participant of a call: their video or avatar, with their name, a live microphone meter and status badges.Data displayView OptionsThe Display popover of a collection: layout, grouping, ordering on several levels, Show switches and visible properties, reported as one plain value.InputsVirtual ListWindowed list with built-in search, sorting, selection and an async data source.Data displayVisually HiddenText for screen readers only: kept in the accessibility tree, drawn nowhere, optionally shown while it holds focus.LayoutWaterfall chartA running total bridged by the steps that move it, where one row is one step and totals mark where the bridge lands.ChartWeek PlannerWeekly schedule with time blocks: a typical week with optional odd and even weeks, or a dated week the user edits.PlanningWheel PickeriOS-style scroll wheels to pick a time, a height, a weight or any value from a short list, by swipe, scroll, click or keys.InputsWorking IndicatorA live "work in progress" line: animated mark, shimmering label, trailing dots and elapsed time.FeedbackFeather Icons287 open-source Feather icons, one web component each.IconsMat Icon2,234 Material Icons ligatures rendered through a single element.IconsPhosphor Icons1,512 flexible icons in six weights, one web component each.IconsSymbols157 themeable spot illustrations for empty states, status panels, onboarding and error pages.IconsTask icons191 duotone icons for to-do items: work, home, health, sport, learning, food, money, travel and more.IconsThemingTheme every c2n component from a handful of design tokens with @c2n/theme, or reach for any component variable directly.GuideLanguagesComponents show their text in English; add your app’s languages as one JSON object, picked by the nearest lang.GuideFrameworksUse the components from React, Vue, Angular, Svelte, Lit or plain HTML — typed events, generated template types, and the one piece of configuration each framework needs.GuideUsing c2n in an applicationThe workflow behind every c2n app: load the theme once, use c2-* tags directly, and turn every repeated pattern into a small variant or composed component.GuideAI toolsGive Claude Code, Codex, Google Antigravity or GitHub Copilot the c2n skill, live component APIs, examples and application conventions.GuideNo components match.