Skip to main content

CSS Components

Pure CSS components -- no JavaScript required. All classes use the velin- prefix.

Chip

Default Primary Success Warning Danger Removable
ClassDescription
.velin-chipBase chip element
.velin-chip--primaryPrimary color variant
.velin-chip--successSuccess color variant
.velin-chip--warningWarning color variant
.velin-chip--dangerDanger color variant
.velin-chip__closeClose/remove button inside chip (44x44 touch target)

Divider

Content above


Content below

Left
Right
ClassDescription
.velin-dividerHorizontal divider line
.velin-divider--verticalVertical divider

Input Group

@
$ .00
ClassDescription
.velin-input-groupFlex container grouping inputs with addons
.velin-input-group__textText addon (prefix/suffix)

List Group

  • Active Item
  • Second Item
  • Third Item
  • Disabled Item
ClassDescription
.velin-list-groupList container
.velin-list-group__itemIndividual list item
.velin-list-group__item--activeHighlighted/active item

Pagination

ClassDescription
.velin-paginationPagination container
.velin-pagination__linkIndividual page link
.velin-pagination__link--activeCurrent active page

Spinner

Loading...
Loading...
Loading...
Loading...
ClassDescription
.velin-spinnerBase spinning border indicator
.velin-spinner--smSmall size
.velin-spinner--lgLarge size
.velin-spinner--dotsDot-style loading indicator

Stat

12,345 Total Users
98.7% Uptime
3.2s Avg. Load
ClassDescription
.velin-statStat card container
.velin-stat__valueLarge numeric value
.velin-stat__labelDescriptive label below

Stepper (CSS)

✓Order
2Payment
3Confirm
ClassDescription
.velin-stepperStepper container
.velin-stepper__stepIndividual step
.velin-stepper__step--activeCurrent active step
.velin-stepper__step--completedCompleted step
.velin-stepper__markerStep number/icon
.velin-stepper__labelStep label text

Timeline

v0.6.1 - Security Hardening

XSS protection, CSP docs, security utilities.

v0.5.0 - The Next Level

14 new CSS/JS features, A11y fixes, CLI, 13 themes.

v0.4.0 - Bootstrap Level

Full component library, documentation site.

ClassDescription
.velin-timelineTimeline container
.velin-timeline__itemSingle timeline entry
.velin-timeline__markerCircle dot on the timeline line
.velin-timeline__contentContent area for text/cards

Tooltip (CSS-only)

Hover me (top) Hover me (bottom)
Class / AttributeDescription
.velin-tooltipTooltip container (on any inline element)
data-velin-tooltip="text"Tooltip content text
.velin-tooltip--bottomPosition below the element

Drawer (CSS)

For the full interactive drawer with focus trapping, see <velin-drawer> Web Component.

ClassDescription
.velin-drawerDrawer panel container
.velin-drawer--startLeft-side (start) positioning
.velin-drawer--endRight-side (end) positioning
.velin-drawer--openVisible state

Theme waehlen