CSS Components
Pure CSS components -- no JavaScript required. All classes use the velin- prefix.
Breadcrumb
Arrow variant:
| Class | Description |
|---|---|
.velin-breadcrumb | Breadcrumb container on <nav> |
.velin-breadcrumb__list | The <ol> element |
.velin-breadcrumb__item | Each <li> element |
.velin-breadcrumb__link | Link inside item |
.velin-breadcrumb--arrow | Arrow separator variant |
.velin-breadcrumb--dot | Dot separator variant |
aria-current="page" | Mark the active/current item |
Chip
Default
Primary
Success
Warning
Danger
Removable
| Class | Description |
|---|---|
.velin-chip | Base chip element |
.velin-chip--primary | Primary color variant |
.velin-chip--success | Success color variant |
.velin-chip--warning | Warning color variant |
.velin-chip--danger | Danger color variant |
.velin-chip__close | Close/remove button inside chip (44x44 touch target) |
Divider
Content above
Content below
Left
Right
| Class | Description |
|---|---|
.velin-divider | Horizontal divider line |
.velin-divider--vertical | Vertical divider |
Input Group
@
$
.00
| Class | Description |
|---|---|
.velin-input-group | Flex container grouping inputs with addons |
.velin-input-group__text | Text addon (prefix/suffix) |
List Group
- Active Item
- Second Item
- Third Item
- Disabled Item
| Class | Description |
|---|---|
.velin-list-group | List container |
.velin-list-group__item | Individual list item |
.velin-list-group__item--active | Highlighted/active item |
Pagination
| Class | Description |
|---|---|
.velin-pagination | Pagination container |
.velin-pagination__link | Individual page link |
.velin-pagination__link--active | Current active page |
Spinner
Loading...
Loading...
Loading...
Loading...
| Class | Description |
|---|---|
.velin-spinner | Base spinning border indicator |
.velin-spinner--sm | Small size |
.velin-spinner--lg | Large size |
.velin-spinner--dots | Dot-style loading indicator |
Stat
12,345
Total Users
98.7%
Uptime
3.2s
Avg. Load
| Class | Description |
|---|---|
.velin-stat | Stat card container |
.velin-stat__value | Large numeric value |
.velin-stat__label | Descriptive label below |
Stepper (CSS)
✓Order
2Payment
3Confirm
| Class | Description |
|---|---|
.velin-stepper | Stepper container |
.velin-stepper__step | Individual step |
.velin-stepper__step--active | Current active step |
.velin-stepper__step--completed | Completed step |
.velin-stepper__marker | Step number/icon |
.velin-stepper__label | Step 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.
| Class | Description |
|---|---|
.velin-timeline | Timeline container |
.velin-timeline__item | Single timeline entry |
.velin-timeline__marker | Circle dot on the timeline line |
.velin-timeline__content | Content area for text/cards |
Tooltip (CSS-only)
Hover me (top)
Hover me (bottom)
| Class / Attribute | Description |
|---|---|
.velin-tooltip | Tooltip container (on any inline element) |
data-velin-tooltip="text" | Tooltip content text |
.velin-tooltip--bottom | Position below the element |
Drawer (CSS)
For the full interactive drawer with focus trapping, see <velin-drawer> Web Component.
| Class | Description |
|---|---|
.velin-drawer | Drawer panel container |
.velin-drawer--start | Left-side (start) positioning |
.velin-drawer--end | Right-side (end) positioning |
.velin-drawer--open | Visible state |