Regal — component.shelf
Abschnitt mit Kopf (Titel, Anzahl, Beschreibung, Alle-anzeigen-Link) und Inhalten als wischbare Reihe mit Pfeilen und weichen Rändern oder als Raster. Die Spaltenzahl folgt der Breite des Abschnitts, nicht des Bildschirms. Für Store-Regale, Empfehlungen und Startseiten. 1.1.0: Pfeiltasten/Pos1/Ende
Beispiele
Wischbare Reihe
Verkaufsplattformen21
Eigenschaften
| Prop | Typ | Default |
|---|---|---|
title | string | "" |
count | string | "" |
description | string | "" |
linkLabel | string | "Alle anzeigen" |
href | string | "" |
headingLevel | string: 2 | 3 | "2" |
layout | string: row | grid | "row" |
itemSize | string: sm | md | lg | "md" |
Events & Slots
Slot default: akzeptiert component.*, ui.*, layout.*
Stellschrauben (Komponenten-Tokens)
| Token | Default |
|---|---|
--shelf-gap | var(--size-4) |
--shelf-cols | 4 |
--shelf-min | calc(var(--size-40) + var(--size-24)) |
--shelf-title | var(--color-text-default) |
--shelf-muted | var(--color-text-muted) |
--shelf-link | color-mix(in srgb, var(--color-action-primary) 60%, var(--color-text-default)) |
--shelf-arrow-surface | color-mix(in srgb, var(--color-surface-raised) 88%, transparent) |
--shelf-arrow-border | color-mix(in srgb, var(--color-border-default) 75%, transparent) |
--shelf-fade | var(--size-10) |
--shelf-mask | var(--color-text-default) |
Genutzte Design-Tokens
border.hairline color.action.primary color.action.secondary-hover color.border.default color.surface.raised color.text.default color.text.muted duration.fast easing.out easing.standard elevation.control focus.ring-color focus.ring-offset focus.ring-width font.family.default font.family.display leading.loose leading.tight opacity.disabled size.05 size.1 size.10 size.2 size.24 size.3 size.32 size.4 size.40 size.5 size.8 text.sm text.xl text.xs tracking.tight weight.medium weight.semibold