eQuantic.UIeQuantic.UI
Docs
Playground
GitHub
START HERE
Getting Started
WRITE-ONCE
Write-Once Components
Declarative Surface
Photon Engine
Design System
Capabilities
Storage
Forms
Code Editor
Markdown
Mermaid
Email Rendering
ARCHITECTURE
Architecture Overview
Package Architecture
Components
Styling
Localization
Analytics & GTM
COMPILATION
Compiler
Compile-Time Evaluation
Supported C# Features
External Type Resolution
Build Flow
Diagnostics
RUNTIME
Runtime (TypeScript)
Performance
SERVER
Server Integration
Assets
BunPackage
Security
ECOSYSTEM
Image
Charts
Icons
Lottie
DEVELOPMENT
Visual Editor
Debug
Roadmap
PT-BR
Analytics-pt-BR
Architecture-pt-BR
Assets-pt-BR
BuildFlow-pt-BR
BunPackage-pt-BR
Capabilities-pt-BR
Charts-pt-BR
CodeEditor-pt-BR
Compiler-pt-BR
CompileTimeEvaluation-pt-BR
Components-pt-BR
Debug-pt-BR
DeclarativeSurface-pt-BR
DesignSystem-pt-BR
Diagnostics-pt-BR
EmailRealizer-pt-BR
ExternalTypeResolution-pt-BR
Forms-pt-BR
GettingStarted-pt-BR
Home-pt-BR
Icons-pt-BR
Image-pt-BR
Localization-pt-BR
Lottie-pt-BR
Markdown-pt-BR
Mermaid-pt-BR
PackageArchitecture-pt-BR
Performance-pt-BR
Photon-pt-BR
Roadmap-pt-BR
Runtime-pt-BR
Security-pt-BR
ServerIntegration-pt-BR
Storage-pt-BR
Styling-pt-BR
SupportedFeatures-pt-BR
VisualEditor-pt-BR
WriteOnceComponents-pt-BR
ACTIONS & INPUTS
Button
IconButton
TextInput
Select
Checkbox
Switch
RadioGroup
SegmentedControl
Slider
Stepper
SearchField
SURFACES & DISPLAY
Card
Badge
Chip
Avatar
Banner
ProgressBar
EmptyState
Divider
NAVIGATION
Tabs
AppBar
BottomNavigation
Breadcrumb
Pagination
PageIndicator
Menu
Drawer
OVERLAYS
Dialog
BottomSheet
Toast
Popover
Tooltip
LISTS & DATA
List
ListView
Table
Accordion
CodeBlock
TOUCH INTERACTION
PullToRefresh
SwipeableRow
DocsSurfaces & display
Banner
View source
1 min read
A persistent, in-flow message about the state of the page, with up to two actions and an optional dismiss.
1
using eQuantic.UI.Components;
STATUS
InfoOne line of supporting detail.
Info
SuccessOne line of supporting detail.
Success
WarningOne line of supporting detail.
Warning
DestructiveOne line of supporting detail.
Destructive
Usage
1
2
3
4
5
6
7
new Banner("Your trial ends in 3 days")
{
Status = Variant.Warning,
Body = "Upgrade to keep automatic payments running.",
PrimaryAction = new Button("Upgrade", Variant.Warning, onPressed: OpenBilling),
OnDismiss = () => SetState(() => _bannerShown = false),
}
API
Prop
Type
Default
Description
Title
string
The headline, in plain language.
Body
string?
null
One or two sentences of detail.
Status
Variant
Info
Semantic role; drives fill, glyph and announcement priority.
PrimaryAction
Button?
null
The action that resolves the message.
SecondaryAction
Button?
null
An optional second action.
OnDismiss
Action?
null
Non-null adds a close affordance.
States
State
Rendering
Visible
Subtle variant fill with OnSubtle text
Dismissed
Height collapses over Motion.Exit
Accessibility
status for info and success, alert for warning and destructive. The actions are ordinary focus stops.
When to use
Page-level state that persists until resolved.
Avoid
Confirming something that already happened — that is a Toast.
More than one banner at a time.
NOTEEvery dimension resolves through Sizing.*(SizeVariant) and the token scales — never a literal. Source: src/eQuantic.UI.Components/Banner.cs.