Skip to content

Layout recipes

Short recipes for chrome / layout atoms used in top-nav and character/loadout screens. Storybook: Samples~/Storybook (icon-rail, wedge-slider, parallax-stack, app-bar).


SusIconRail

Vertical (default) or horizontal category / loadout strip of circular items.

PropRole
ItemsList<​RailItem>Label, Value, Icon, Disabled
ModelSelected Value (or index string)
Directionvertical | horizontal
OnChangedAction<​string>

Root layout may need consumer USS overrides: Sharq scoping breaks self-target on .sus-icon-rail — put unscoped root rules in companion / theme USS.


SusWedgeSlider

Segmented “volume wedge” (rising bars). Click along the row to set filled segment count.

PropRole
LabelOptional caption
Value / SegmentsFilled count 0…Segments
ShowValue / ValueTextNumeric readout
DisabledBlocks input
OnChangedAction<​int>

Helper: Bind(label, filled, segments = 10).


SusParallaxStack

Pointer-driven layered stack: bg → pattern → subject → ui (tips) → chrome.

PropRole
PatternAmp / SubjectAmp / UiAmpParallax amplitude (px)

Call EnsureLayers() after build to resolve Bg, Pattern, Subject, Ui, TipHost, Chrome. Add children into those layers; stack handles pointer move + lerp.


SusAppBar

Top strip with prepend / default / append slots (+ optional extension when Prominent).

PropRole
TitleLabel in content
Densitydefault | compact | comfortable
Colorprimary | secondary | … | surface
Flat / Absolute / ProminentVisual / position modifiers

Recipe: default slot = SusTabs; append = currency / action SusChips (see Storybook app-bar).

Open-core: Core & Router MIT · Kit & Game commercial