SusToolbar

Horizontal tool strip — title + prepend / default / append slots.
Package
SusKit · Molecules (commercial)
SusKit · Molecules
Props
| Name | Type | Default | |
|---|---|---|---|
Title | Prop<string> | "" | v-model |
Density | Prop<string> | "default" | v-model |
Color | Prop<string> | "surface" | v-model |
Flat | Prop<bool> | false | v-model |
Slots
| Name |
|---|
prepend |
(default) |
append |
Events
No public events.
Style hooks
USS class contract — override appearance without touching C#. States toggle via these classes:
sus-slotsus-toolbarsus-toolbar__appendsus-toolbar__contentsus-toolbar__prependsus-toolbar__titlesus-toolbar--dangersus-toolbar--density-comfortablesus-toolbar--density-compactsus-toolbar--flatsus-toolbar--infosus-toolbar--primarysus-toolbar--secondarysus-toolbar--successsus-toolbar--surfacesus-toolbar--warning
Usage
csharp
var bar = new SusToolbar();
bar.Title.Value = "Inventory";
bar.Color.Value = "surface";
bar.Density.Value = "default";
var filter = new SusButton();
filter.Text.Value = "Filter";
filter.Variant.Value = "tonal";
filter.Size.Value = "small";
bar.Slot("append")?.Add(filter);xml
<template>
<sus:SusToolbar Title="Inventory"
Color="surface"
Density="default"
:Flat="Flat.Value">
<template #prepend>
<sus:SusButton Icon="menu" Variant="text" Size="small" />
</template>
<template #append>
<sus:SusButton Text="Filter" Variant="tonal" Size="small" />
</template>
</sus:SusToolbar>
</template>
<script>
public Prop<bool> Flat = new(false);
</script>| Prop | Role |
|---|---|
Title | Label in the content strip |
Density | default · compact · comfortable |
Color | primary · secondary · success · danger · warning · info · surface |
Flat | Hide bottom border |
Notes
- Lighter sibling of SusAppBar — no
Prominent/Absolute/extension. - Prefer
Slot("prepend"|"append"|"default")in C# for actions and inline content.