Skip to content

Tag

A small chip for a label, a filter or a model name, with an optional button to remove it.

  • .aparte-tag
On this page
Open

.aparte-tag is a chip: a label in a quiet outline, --sm for a smaller one. A .aparte-tag__remove button inside it removes it, for a list of filters or of chosen items. The header uses one for the model’s name, and the question receipt is a tag with a mark.

VariableDefault
--aparte-tag-font-sizevar(--aparte-font-size-sm)
--aparte-tag-gapvar(--aparte-space-2)
--aparte-tag-paddingvar(--aparte-space-1) var(--aparte-space-3)
--aparte-tag-radiusvar(--aparte-radius-sm)
--aparte-tag-remove-sizevar(--aparte-space-6)
--aparte-tag-remove-icon-sizevar(--aparte-space-5)

.aparte-tag · .aparte-tag--sm · .aparte-tag__label · .aparte-tag__remove

  • The remove button shows only a cross: name it after what it removes (“Remove typescript”).
  • Badge — a status or a count rather than a label.
  • Mark — the tint a settled choice carries.