Whether the dropdown is showing. Reflects the popover state; set it to open or close programmatically.
readonly
boolean
false
Shows the current value but never opens the dropdown.
disabled
boolean
false
Dims the trigger and ignores interaction.
focused
boolean
false
True while the trigger has keyboard focus.
fit-size
boolean
false
Make the dropdown exactly as wide as the trigger instead of at least as wide.
placeholder
string
—
Text shown in the trigger while nothing is selected.
aria-label
string | null
null
Accessible name of the trigger and option list.
multiple
boolean
false
Allow several options to be selected; the dropdown stays open after a pick and the trigger lists every label.
required
boolean
false
Keep at least one option selected: picking the only selected option again does not clear it.
value
string[]
[]
Selected values. Written as `value="a;b"` in markup, read as `['a', 'b']` from the property.
Events
Name
Type
Description
selection-change
CustomEvent<SelectionChangeEventDetail>
Fired after the user picks an option. `detail.value` is the array of selected values (one entry unless `multiple`), `detail.data` the `data` of each selected row.
CSS custom properties
Grouped by the element and state they target. Click a group to collapse it; click a name to copy it.
Name
Type
Default
Description
--c2-select__button--min-height
pixel
36px
--c2-select__button--padding
padding
6px 10px 6px 12px
--c2-select__button--gap
pixel
8px
Space between the icons and the text.
--c2-select__button--background
color
#ffffff
--c2-select__button--color
color
#18181b
--c2-select__button--font-size
font-size
14px
--c2-select__button--font-weight
font-weight
—
--c2-select__button--font-style
font-style
normal
--c2-select__button--font-family
font-family
—
--c2-select__button--border-top-left-radius
border-radius
6px
--c2-select__button--border-top-right-radius
border-radius
6px
--c2-select__button--border-bottom-left-radius
border-radius
6px
--c2-select__button--border-bottom-right-radius
border-radius
6px
--c2-select__button--border-top
border
1px solid #bcbcc6
--c2-select__button--border-right
border
1px solid #bcbcc6
--c2-select__button--border-bottom
border
1px solid #bcbcc6
--c2-select__button--border-left
border
1px solid #bcbcc6
--c2-select__button__hover--border-top
border
1px solid #a1a1aa
--c2-select__button__hover--border-right
border
1px solid #a1a1aa
--c2-select__button__hover--border-bottom
border
1px solid #a1a1aa
--c2-select__button__hover--border-left
border
1px solid #a1a1aa
--c2-select__button__hover--background
color
#fafafa
--c2-select__button__hover--color
color
#18181b
--c2-select__button__open--border-top
border
1px solid #476ef9
--c2-select__button__open--border-right
border
1px solid #476ef9
--c2-select__button__open--border-bottom
border
1px solid #476ef9
--c2-select__button__open--border-left
border
1px solid #476ef9
--c2-select__button__focus--outline
outline
2px solid rgba(71, 110, 249, 0.4)
--c2-select__button__focus--outline-offset
pixel
1px
--c2-select__button__disabled--opacity
opacity
0.38
--c2-select__button__prefix-icon--width
pixel
16px
--c2-select__button__prefix-icon--height
pixel
16px
--c2-select__button__prefix-icon--color
color
—
Defaults to the trigger text colour.
--c2-select__button__suffix-icon--width
pixel
16px
--c2-select__button__suffix-icon--height
pixel
16px
--c2-select__button__suffix-icon--color
color
#71717a
--c2-select__placeholder--font-weight
font-weight
—
--c2-select__placeholder--font-style
font-style
—
--c2-select__placeholder--color
color
#71717a
--c2-select__placeholder--opacity
opacity
1
--c2-select__list--background
color
#ffffff
--c2-select__list--border-top
border
1px solid #e4e4e7
--c2-select__list--border-right
border
1px solid #e4e4e7
--c2-select__list--border-bottom
border
1px solid #e4e4e7
--c2-select__list--border-left
border
1px solid #e4e4e7
--c2-select__list--border-top-left-radius
border-radius
8px
--c2-select__list--border-top-right-radius
border-radius
8px
--c2-select__list--border-bottom-left-radius
border-radius
8px
--c2-select__list--border-bottom-right-radius
border-radius
8px
--c2-select__list--box-shadow
box-shadow
0 8px 24px rgba(24, 24, 27, 0.08)
--c2-select__list--padding-top
padding
4px
--c2-select__list--padding-right
padding
4px
--c2-select__list--padding-bottom
padding
4px
--c2-select__list--padding-left
padding
4px
--c2-select__list--min-width
pixel
auto
Floor for the dropdown's width; it is never narrower than the trigger.
Whether the dropdown is showing. Reflects the popover state; set it to open or close programmatically.
readonly
boolean
false
Shows the current value but never opens the dropdown.
disabled
boolean
false
Dims the trigger and ignores interaction.
focused
boolean
false
True while the trigger has keyboard focus.
fit-size
boolean
false
Make the dropdown exactly as wide as the trigger instead of at least as wide.
placeholder
string
—
Text shown in the trigger while nothing is selected.
aria-label
string | null
null
Accessible name of the trigger and option list.
multiple
boolean
false
Allow several options to be selected; the dropdown stays open after a pick and the trigger lists every label.
required
boolean
false
Keep at least one option selected: picking the only selected option again does not clear it.
value
string[]
[]
Selected values. Written as `value="a;b"` in markup, read as `['a', 'b']` from the property.
Events
Name
Type
Description
selection-change
CustomEvent<SelectionChangeEventDetail>
Fired after the user picks an option. `detail.value` is the array of selected values (one entry unless `multiple`), `detail.data` the `data` of each selected row.
CSS custom properties
Grouped by the element and state they target. Click a group to collapse it; click a name to copy it.
Name
Type
Default
Description
--c2-select__button--min-height
pixel
36px
--c2-select__button--padding
padding
6px 10px 6px 12px
--c2-select__button--gap
pixel
8px
Space between the icons and the text.
--c2-select__button--background
color
#ffffff
--c2-select__button--color
color
#18181b
--c2-select__button--font-size
font-size
14px
--c2-select__button--font-weight
font-weight
—
--c2-select__button--font-style
font-style
normal
--c2-select__button--font-family
font-family
—
--c2-select__button--border-top-left-radius
border-radius
6px
--c2-select__button--border-top-right-radius
border-radius
6px
--c2-select__button--border-bottom-left-radius
border-radius
6px
--c2-select__button--border-bottom-right-radius
border-radius
6px
--c2-select__button--border-top
border
1px solid #bcbcc6
--c2-select__button--border-right
border
1px solid #bcbcc6
--c2-select__button--border-bottom
border
1px solid #bcbcc6
--c2-select__button--border-left
border
1px solid #bcbcc6
--c2-select__button__hover--border-top
border
1px solid #a1a1aa
--c2-select__button__hover--border-right
border
1px solid #a1a1aa
--c2-select__button__hover--border-bottom
border
1px solid #a1a1aa
--c2-select__button__hover--border-left
border
1px solid #a1a1aa
--c2-select__button__hover--background
color
#fafafa
--c2-select__button__hover--color
color
#18181b
--c2-select__button__open--border-top
border
1px solid #476ef9
--c2-select__button__open--border-right
border
1px solid #476ef9
--c2-select__button__open--border-bottom
border
1px solid #476ef9
--c2-select__button__open--border-left
border
1px solid #476ef9
--c2-select__button__focus--outline
outline
2px solid rgba(71, 110, 249, 0.4)
--c2-select__button__focus--outline-offset
pixel
1px
--c2-select__button__disabled--opacity
opacity
0.38
--c2-select__button__prefix-icon--width
pixel
16px
--c2-select__button__prefix-icon--height
pixel
16px
--c2-select__button__prefix-icon--color
color
—
Defaults to the trigger text colour.
--c2-select__button__suffix-icon--width
pixel
16px
--c2-select__button__suffix-icon--height
pixel
16px
--c2-select__button__suffix-icon--color
color
#71717a
--c2-select__placeholder--font-weight
font-weight
—
--c2-select__placeholder--font-style
font-style
—
--c2-select__placeholder--color
color
#71717a
--c2-select__placeholder--opacity
opacity
1
--c2-select__list--background
color
#ffffff
--c2-select__list--border-top
border
1px solid #e4e4e7
--c2-select__list--border-right
border
1px solid #e4e4e7
--c2-select__list--border-bottom
border
1px solid #e4e4e7
--c2-select__list--border-left
border
1px solid #e4e4e7
--c2-select__list--border-top-left-radius
border-radius
8px
--c2-select__list--border-top-right-radius
border-radius
8px
--c2-select__list--border-bottom-left-radius
border-radius
8px
--c2-select__list--border-bottom-right-radius
border-radius
8px
--c2-select__list--box-shadow
box-shadow
0 8px 24px rgba(24, 24, 27, 0.08)
--c2-select__list--padding-top
padding
4px
--c2-select__list--padding-right
padding
4px
--c2-select__list--padding-bottom
padding
4px
--c2-select__list--padding-left
padding
4px
--c2-select__list--min-width
pixel
auto
Floor for the dropdown's width; it is never narrower than the trigger.
--c2-select__list--max-height
pixel
280px
The dropdown scrolls past this height.
escAccordionConnected, animated panels with shared borders and single or multiple expansion.LayoutAvatarImage, initials or icon for a person, with status dot and badge.Data displayBadgeTinted pill for status text, counts and dots, optionally pinned to a corner of another element.Data displayBreadcrumbNavigation trail of link buttons with separators, a current page and optional collapsing.NavigationButtonThemeable button with slots for text, prefix, suffix and running icons.ButtonsButton GroupAttached buttons with shared borders, optionally a segmented control with single or multiple selection.ButtonsCardGroups related content and actions on a single bordered surface.LayoutChat InputAuto-growing message box with a send button for chat interfaces.ChatChat MessageOne chat bubble with avatar, title, timestamp and message body.ChatCheckboxNative checkbox behaviour in a quiet, themeable box with an opt-in hover layer.InputsCode ViewerSyntax-highlighted code with line numbers, copy button and dark mode, powered by shiki.Data displayColor 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.InputsCopy ButtonButton that copies text to the clipboard — the element it sits in, another element by id, or a literal string.ButtonsDetailsCollapsible disclosure built on native details and summary.LayoutIcon ButtonRound, hoverable button wrapping a slotted SVG icon.ButtonsKbdKeyboard key label for shortcuts and command hints, with the semantics of the native kbd element.Data displayLabelCaption that names and activates the control referenced by its for attribute, with a required marker.InputsLink 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 or as the option of list and select.Data displayMenuCommands, links, checkboxes and submenus in a popover anchored to a trigger.NavigationModalDialog built on the native dialog element: focus trap, backdrop, Escape, title, body and footer.FeedbackNavigation MenuSite navigation bar whose triggers open panels of links below the header.NavigationOverlayAnchored popup built on the browser Popover API, positioned with floating-ui.FeedbackPaginationPage navigation in three layouts: numbered pages, a simple page status, or a table-footer row with rows-per-page.NavigationProgressLinear progress bar, indeterminate or filling to a value, with an optional label and count.FeedbackRadioRadio options built on native inputs, grouped into one value with keyboard navigation.InputsSelectDropdown that pairs a themeable trigger with an anchored list of c2-list-item options.InputsSeperatorHorizontal or vertical rule with an optional label, for dividing content and toolbars.LayoutSheetDialog pinned to an edge of the screen, for content that complements the page rather than interrupting it.FeedbackSide NavResponsive navigation drawer beside the page: pushes the content on large screens, slides over it with a backdrop on small ones.NavigationSkeletonPlaceholder block standing in for content that has not arrived, in three shapes and three animations.FeedbackSliderRange input with a themeable track, thumb, step ticks and value bubble.InputsSpinnerCircular progress indicator, indeterminate or showing a value, with optional text.FeedbackSwitchOn/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 displayTabsTab strip that shows one content panel at a time.NavigationText 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.InputsToastNotification cards and a manager for stacked, queued notifications with independent lifetimes.FeedbackTooltipContextual hint shown when its target is hovered or focused, rendered in the top layer.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.IconsThemingTheme every c2n component from a handful of design tokens with @c2n/theme, or reach for any component variable directly.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.Guide