DeepWorks Studios Blazor Component Library

Demo user Administrator ยท Blazor Server Library 20261206222504-6e8ff32.dirty

DwsCard

A card groups everything about one thing - a project, an order, a product - on one surface: a title with an optional subtitle, avatar and actions, media, content, an action row and a footer. Give it a Title, or compose the header from fragments.

Obsolete: the 25 per-region parameters. ClassHeader, StyleHeader, ... BackgroundColorFooter still work but give compiler warning CS0618: use HeaderOptions, MediaOptions, ContentOptions, ActionOptions and FooterOptions. New look since December 2026: the header is plain, the title sits on the card surface. HeaderStyle="DwsCardHeaderStyle.Filled" brings back the coloured bar; SecondaryCardHeader and a header background colour fill it as well.

HeaderOptions ... FooterOptions in the API reference
API Reference API Reference — DwsCardGroup

Common patterns

Title, subtitle and footer

Title and Subtitle build the header; HeaderActions adds a menu button at its end and the footer carries secondary facts. TitleHeadingLevel makes the title a heading for screen readers.

Website relaunchUpdated 2 hours ago by Jonas

The new start page and the pricing page are live. Next up: the blog migration and the redirects from the old URLs.

Design Web
Show Code
Card.razor

<DwsCard Name="ProjectCard" MaxWidth="420"
         Title="Website relaunch"
         Subtitle="Updated 2 hours ago by Jonas"
         TitleHeadingLevel="3">
    <HeaderActions>
        <DwsButton Name="ProjectCard_Menu" Appearance="DwsAppearance.Icon" Icon="@Icons.BS.ThreeDotsVertical" Tooltip="More actions" />
    </HeaderActions>
    <Content>
        <p>The new start page and the pricing page are live. Next up: the blog migration and the redirects from the old URLs.</p>
        <div class="d-flex flex-wrap gap-2">
            <DwsChip Name="ProjectCard_Design" Text="Design" Size="DwsSize.Small" />
            <DwsChip Name="ProjectCard_Web" Text="Web" Size="DwsSize.Small" />
        </div>
    </Content>
    <Footer>3 open tasks · due 12 December</Footer>
</DwsCard>

Dashboard metrics

Small cards for key figures. AccentColor puts a status colour on the leading edge, so a figure that needs attention stands out without colouring the whole card.

Revenue
48,250 €
+12 % on last month
New customers
318
+4 % on last month
Open tickets
27
9 older than 3 days
Failed payments
5
Retry scheduled for tonight
Show Code
Card.razor

<div class="d-grid gap-3" style="grid-template-columns:repeat(auto-fill,minmax(min(170px,100%),1fr))">
    @foreach (Metric metric in _metrics)
    {
        <div>
            <DwsCard Name="@($"Metric_{metric.Key}")" Size="DwsSize.Small" StretchVertical="true"
                     AccentColor="metric.Accent" Title="@metric.Label">
                <Content>
                    <div class="fs-3 fw-semibold">@metric.Value</div>
                    <div>@metric.Trend</div>
                </Content>
            </DwsCard>
        </div>
    }
</div>
Card.razor.cs

private sealed record Metric(string Key, string Label, string Value, string Trend, DwsColor Accent);

private readonly Metric[] _metrics =
[
    new("Revenue", "Revenue", "€ 48,250", "+12 % on last month", DwsColor.Success),
    new("Customers", "New customers", "318", "+4 % on last month", DwsColor.Primary),
    new("Tickets", "Open tickets", "27", "9 older than 3 days", DwsColor.Warning),
    new("Payments", "Failed payments", "5", "Retry scheduled for tonight", DwsColor.Error),
];

Navigation cards

PrimaryActionHref stretches one real link over the card: the whole card is clickable, middle-click and "open in new tab" work, and the title names the link. The card lifts on hover.

DwsButtonActions and toggles

Buttons, button groups and split buttons for every action on a page.

DwsSliderNumbers and ranges

Pick a value or a range by dragging, with marks and formatted bubbles.

DwsPaperPlain surfaces

An elevated surface without the card's regions, for your own layout.

Show Code
Card.razor

<div class="d-grid gap-3" style="grid-template-columns:repeat(auto-fill,minmax(min(240px,100%),1fr))">
    <div>
        <DwsCard Name="Nav_Button" StretchVertical="true" PrimaryActionHref="button"
                 Title="DwsButton" Subtitle="Actions and toggles">
            <HeaderAvatar>
                <DwsAvatar Name="Nav_ButtonAvatar" Icon="@Icons.BS.Lightning" Shape="DwsShape.Square" Appearance="DwsAppearance.Outline" />
            </HeaderAvatar>
            <Content><p>Buttons, button groups and split buttons for every action on a page.</p></Content>
        </DwsCard>
    </div>
    @* ... one column per link *@
</div>

Options in detail

Header styles

Plain (the default) puts the title on the card surface. Filled is the coloured bar; SecondaryCardHeader and a header background colour (HeaderOptions) fill the header too. Header or HeaderContent replace the title with your own markup.

PlainThe default

Reads as part of the card. Best for lists and dashboards with many cards.

FilledHeaderStyle="DwsCardHeaderStyle.Filled"

A bar in the primary colour, the default look until December 2026.

SecondarySecondaryCardHeader="true"

The bar in the secondary colour.

Your own header markup New

HeaderContent takes any markup: an icon, a chip, a status.

Show Code
Card.razor

<DwsCard Name="PlainCard" Title="Plain" Subtitle="The default">
    <Content><p>Reads as part of the card. Best for lists and dashboards with many cards.</p></Content>
</DwsCard>

<DwsCard Name="FilledCard" HeaderStyle="DwsCardHeaderStyle.Filled" Title="Filled" Subtitle="HeaderStyle=&quot;DwsCardHeaderStyle.Filled&quot;">
    <Content><p>A bar in the primary colour, the default look until December 2026.</p></Content>
</DwsCard>

<DwsCard Name="SecondaryCard" SecondaryCardHeader="true" Title="Secondary" Subtitle="SecondaryCardHeader=&quot;true&quot;">
    <Content><p>The bar in the secondary colour.</p></Content>
</DwsCard>

<DwsCard Name="CustomHeaderCard">
    <HeaderContent>
        <DwsIcon Name="CustomHeaderCard_Icon" Icon="@Icons.BS.Lightning" Color="DwsColor.Warning" />
        <span>Your own header markup</span>
        <DwsChip Name="CustomHeaderCard_Chip" Text="New" Size="DwsSize.Small" Color="DwsColor.Success" />
    </HeaderContent>
    <Content><p>HeaderContent takes any markup: an icon, a chip, a status.</p></Content>
</DwsCard>

Appearance

Filled has the surface, a hairline border and a soft shadow; Flat drops the shadow, Outline the fill; Text keeps only the content, aligned with the text around it.

Shipping addressFilled

Erika Mustermann
HauptstraรŸe 5
10115 Berlin

The default: stands out from the page.
Shipping addressFlat

Erika Mustermann
HauptstraรŸe 5
10115 Berlin

No shadow: for cards inside a card or a panel.
Shipping addressOutline

Erika Mustermann
HauptstraรŸe 5
10115 Berlin

No fill: lighter, on a coloured background.
Shipping addressText

Erika Mustermann
HauptstraรŸe 5
10115 Berlin

Only the content, aligned with the page text.
Show Code
Card.razor

<DwsCard Name="Address_Filled" Appearance="DwsAppearance.Filled" Title="Shipping address" Subtitle="Filled">
    <Content><p>Erika Mustermann<br />Hauptstraße 5<br />10115 Berlin</p></Content>
</DwsCard>
<DwsCard Name="Address_Flat" Appearance="DwsAppearance.Flat" Title="Shipping address" Subtitle="Flat">...</DwsCard>
<DwsCard Name="Address_Outline" Appearance="DwsAppearance.Outline" Title="Shipping address" Subtitle="Outline">...</DwsCard>
<DwsCard Name="Address_Text" Appearance="DwsAppearance.Text" Title="Shipping address" Subtitle="Text">...</DwsCard>

Sizes

Size sets one padding for every region and the size of the title: XSmall for dense lists, XLarge for a hero card.

StorageXSmall

18.4 GB of 50 GB used

StorageSmall

18.4 GB of 50 GB used

StorageMedium

18.4 GB of 50 GB used

StorageLarge

18.4 GB of 50 GB used

StorageXLarge

18.4 GB of 50 GB used

Show Code
Card.razor

@foreach (DwsSize size in new[] { DwsSize.XSmall, DwsSize.Small, DwsSize.Medium, DwsSize.Large, DwsSize.XLarge })
{
    <DwsCard Name="@($"Storage_{size}")" Size="size" MaxWidth="260" Title="Storage" Subtitle="@size.ToString()">
        <Content><p>18.4 GB of 50 GB used</p></Content>
    </DwsCard>
}

Status with an accent stripe

AccentColor marks a state or a category - here the latest builds of a pipeline - while the card itself keeps the normal surface. The text still says the state: colour is never the only signal.

main · #1289Passed in 4 min 12 s
feature/checkout · #1288Failed: 3 tests
release/0.1.9 · #1290Running for 2 min
Show Code
Card.razor

@foreach (Build build in _builds)
{
    <DwsCard Name="@($"Build_{build.Key}")" Size="DwsSize.Small" Appearance="DwsAppearance.Flat" AccentColor="build.Color"
             Title="@build.Title" Subtitle="@build.Status">
        <HeaderAvatar>
            <DwsIcon Name="@($"Build_Icon_{build.Key}")" Icon="@build.Icon" Color="build.Color" />
        </HeaderAvatar>
    </DwsCard>
}
Card.razor.cs

private sealed record Build(string Key, string Title, string Status, string Icon, DwsColor Color);

private readonly Build[] _builds =
[
    new("Main", "main · #1289", "Passed in 4 min 12 s", Icons.BS.CheckCircleFill, DwsColor.Success),
    new("Feature", "feature/checkout · #1288", "Failed: 3 tests", Icons.BS.XCircleFill, DwsColor.Error),
    new("Release", "release/0.1.9 · #1290", "Running for 2 min", Icons.BS.HourglassSplit, DwsColor.Warning),
];

Media beside the content

Orientation Horizontal puts the media at the leading edge - a list of episodes, articles or search results.

Episode 42: Shipping a design system

How a small team moved forty screens onto shared components without a freeze.

38 min · 3 December 2026
Show Code
Card.razor

<DwsCard Name="EpisodeCard" Orientation="DwsLayoutOrientation.Horizontal" MaxWidth="560">
    <Media>
        <img src="images/episode-42.jpg" alt="" style="width:120px" />
    </Media>
    <Content>
        <DwsTypography Name="EpisodeCard_Title" Typography="DwsTypographyType.Heading5" Class="mb-1">Episode 42: Shipping a design system</DwsTypography>
        <p class="mb-1">How a small team moved forty screens onto shared components without a freeze.</p>
        <small>38 min · 3 December 2026</small>
    </Content>
</DwsCard>

Collapsible

IsCollapsible turns the title into a toggle with a chevron; @bind-IsExpanded keeps the state on the page. AnimationMode and AnimationSpeed choose the transition. Header actions stay separate buttons.

Yes. Upgrades apply immediately; a downgrade takes effect at the end of the billing period.

Show Code
Card.razor

<DwsCard Name="AdvancedSettings" IsCollapsible="true" @bind-IsExpanded="_advancedOpen"
         AnimationMode="DwsCardAnimationMode.Collapse" AnimationSpeed="DwsAnimationSpeed.Fast"
         Title="Advanced settings" Subtitle="Proxy, cache and logging">
    <Content>
        <div class="d-flex flex-column gap-2">
            <DwsSwitch Name="AdvancedSettings_Proxy" Label="Use a proxy server" @bind-Value="_useProxy" />
            <DwsSwitch Name="AdvancedSettings_Cache" Label="Cache API responses" @bind-Value="_useCache" />
            <DwsSwitch Name="AdvancedSettings_Log" Label="Verbose logging" @bind-Value="_verboseLog" />
        </div>
    </Content>
</DwsCard>

<DwsCard Name="FaqPlanChange" IsCollapsible="true" AnimationMode="DwsCardAnimationMode.SlideFade" Appearance="DwsAppearance.Outline"
         Title="Can I change my plan later?">
    <Content><p>Yes. Upgrades apply immediately; a downgrade takes effect at the end of the billing period.</p></Content>
</DwsCard>

<p aria-live="polite">Advanced settings are @(_advancedOpen ? "open" : "closed").</p>
Card.razor.cs

private bool _advancedOpen;
private bool _useProxy;
private bool _useCache = true;
private bool _verboseLog;

Scrolling content

ScrollableMaxHeight caps the body; header and footer stay in place while the activity list scrolls.

Recent activity
  • Invoice #10481 was paid
  • Invoice #10482 was paid
  • Invoice #10483 was paid
  • Invoice #10484 was paid
  • Invoice #10485 was paid
  • Invoice #10486 was paid
  • Invoice #10487 was paid
  • Invoice #10488 was paid
  • Invoice #10489 was paid
  • Invoice #10490 was paid
  • Invoice #10491 was paid
  • Invoice #10492 was paid
Show Code
Card.razor

<DwsCard Name="ActivityCard" MaxWidth="420" ScrollableMaxHeight="180" Title="Recent activity">
    <Content>
        <ul class="list-unstyled mb-0 d-flex flex-column gap-2">
            @for (int i = 1; i <= 12; i++)
            {
                <li>Invoice #@(10480 + i) was paid</li>
            }
        </ul>
    </Content>
    <Footer>12 events today</Footer>
</DwsCard>

Card Group

DwsCardGroup lays its cards out side by side (they wrap on a narrow screen) and hands them a shared Appearance, Size and Color - here three price plans.

Free€ 0 / month
  • 1 project
  • Community support
Pro€ 12 / month
  • Unlimited projects
  • Email support
  • Custom domains
Team€ 29 / user / month
  • Everything in Pro
  • Roles and permissions
  • Audit log
Show Code
Card.razor

<DwsCardGroup Name="PricePlans" GroupAppearance="DwsAppearance.Outline">
    @foreach (Plan plan in _plans)
    {
        <DwsCard Name="@($"Plan_{plan.Key}")" Style="flex:1 1 13rem" Title="@plan.Name" Subtitle="@plan.Price">
            <Content>
                <ul class="mb-0 ps-3">
                    @foreach (string feature in plan.Features)
                    {
                        <li>@feature</li>
                    }
                </ul>
            </Content>
            <Action>
                <DwsButton Name="@($"Plan_Choose_{plan.Key}")" Appearance="@(plan.Highlight ? DwsAppearance.Filled : DwsAppearance.Outline)" FullWidth="true">Choose @plan.Name</DwsButton>
            </Action>
        </DwsCard>
    }
</DwsCardGroup>
Card.razor.cs

private sealed record Plan(string Key, string Name, string Price, string[] Features, bool Highlight);

private readonly Plan[] _plans =
[
    new("Free", "Free", "€ 0 / month", ["1 project", "Community support"], false),
    new("Pro", "Pro", "€ 12 / month", ["Unlimited projects", "Email support", "Custom domains"], true),
    new("Team", "Team", "€ 29 / user / month", ["Everything in Pro", "Roles and permissions", "Audit log"], false),
];

Region options

HeaderOptions, ContentOptions, ActionOptions ... style one region each with a DwsCardRegionOptions object (class, style, alignment, background). Keep the objects in fields, so a re-render does not re-apply them.

Scheduled maintenance

Sunday, 7 December, 02:00-04:00 CET. Sign-in may be unavailable for a few minutes.

Show Code
Card.razor

<DwsCard Name="MaintenanceCard" MaxWidth="420" HeaderOptions="_announcementHeader" ContentOptions="_announcementContent"
         Title="Scheduled maintenance">
    <Content><p>Sunday, 7 December, 02:00-04:00 CET. Sign-in may be unavailable for a few minutes.</p></Content>
</DwsCard>
Card.razor.cs

// A header background colour fills the header, like HeaderStyle="DwsCardHeaderStyle.Filled".
private readonly DwsCardRegionOptions _announcementHeader = new() { BackgroundColor = DwsColor.Warning, HorizontalAlignment = DwsHorizontalAlignment.Center };
private readonly DwsCardRegionOptions _announcementContent = new() { HorizontalAlignment = DwsHorizontalAlignment.Center };

Interface-Description

Name Typ Default Description
Header RenderFragment? null RenderFragment for the card header area.
HeaderAvatar RenderFragment? null RenderFragment rendered before the header content, e.g. for an avatar/icon.
HeaderContent RenderFragment? null RenderFragment for the main header content; takes precedence over Header when set.
HeaderActions RenderFragment? null RenderFragment rendered at the end of the header, e.g. for action buttons.
Media RenderFragment? null RenderFragment for a media region (image/video), placed beside or above the content depending on Orientation.
Content RenderFragment? null RenderFragment for the main card body.
Action RenderFragment? null RenderFragment for a dedicated action bar region, rendered after the content.
Footer RenderFragment? null RenderFragment for the card footer area.
Title string? null The card's title, rendered in the header when neither Header nor HeaderContent is given.
Subtitle string? null A second, muted line below the title (a date, a status, an owner).
TitleHeadingLevel int? null Makes the title a heading of this level (1-6) for screen readers, without changing its look. Not applied to a collapsible card (the title is inside the toggle button).
HeaderStyle DwsCardHeaderStyle DwsCardHeaderStyle.Plain Plain: the title on the card surface. Filled: a bar in the primary colour (the look until December 2026). SecondaryCardHeader and a header background colour fill the header too.
AccentColor DwsColor DwsColor.Undefined A stripe in this colour on the card's leading edge, to mark a status or a category.
Appearance DwsAppearance DwsAppearance.Filled Filled (surface and shadow), Outline (a border, no fill), Flat (the surface without a shadow) or Text (just the content, with a plain heading).
Color DwsColor DwsColor.Undefined Accent color applied to the card.
Size DwsSize DwsSize.Medium Overall card size (replaces the old SmallCard bool).
Orientation DwsLayoutOrientation DwsLayoutOrientation.Vertical Lays out Media beside (Horizontal) or above (Vertical) the content.
BorderStyle DwsBorderStyle DwsBorderStyle.None Border style applied to the card root.
BorderColor DwsColor DwsColor.Undefined Border color applied to the card root.
BorderWidth int? null Border width in pixels.
Width int? null Fixed width in pixels.
MinWidth int? null Minimum width in pixels.
MaxWidth int? null Maximum width in pixels.
Height int? null Fixed height in pixels.
MinHeight int? null Minimum height in pixels.
MaxHeight int? null Maximum height in pixels.
Padding int? null Padding in pixels applied to the card root.
Margin int? null Margin in pixels applied to the card root.
StretchHorizontal bool false When true, the card stretches to fill available width.
StretchVertical bool false When true, the card stretches to fill available height.
HeaderOptions / MediaOptions / ContentOptions / ActionOptions / FooterOptions DwsCardRegionOptions? null Styling of the respective region in one object: Class (string, empty), Style (string?, null), HorizontalAlignment (None), VerticalAlignment (None), BackgroundColor (Undefined). Keep the object in a field.
ClassHeader / ClassMedia / ClassContent / ClassAction / ClassFooter string string.Empty Obsolete: use the region's option object (Class). Still works; set explicitly, it wins over the option object.
StyleHeader / StyleMedia / StyleContent / StyleAction / StyleFooter string? null Obsolete: use the region's option object (Style).
HorizontalAlignmentHeader / ...Media / ...Content / ...Action / ...Footer DwsHorizontalAlignment None Obsolete: use the region's option object (HorizontalAlignment).
VerticalAlignmentHeader / ...Media / ...Content / ...Action / ...Footer DwsVerticalAlignment None Obsolete: use the region's option object (VerticalAlignment).
BackgroundColorHeader / ...Media / ...Content / ...Action / ...Footer DwsColor Undefined Obsolete: use the region's option object (BackgroundColor).
PrimaryActionHref string? null Makes the whole card a link to this address: one link is stretched over the card, controls inside it keep working.
PrimaryActionTarget string? null Target of PrimaryActionHref, e.g. _blank (adds rel="noopener noreferrer").
PrimaryActionAriaLabel string? null Accessible name of the card's action. Null: the header names it, or the body when there is no header.
Disabled bool false Disables the card's primary action (the button is disabled, the link loses its href).
IsCollapsible bool false When true, the card body can be collapsed and expanded by clicking the header. The title is a native button with aria-expanded and aria-controls.
Haptic DwsHapticFeedback Selection The tick played when the header of a collapsible card opens or closes it (haptics switched on, phones only). None turns it off.
IsExpanded bool false Controls the expanded/collapsed state when IsCollapsible is true. Supports @bind-IsExpanded.
InlineBody bool false When true, renders the card body inline.
ShowOverlay bool false When true, renders a visual overlay on the card.
ScrollableMaxHeight int? null Maximum height in pixels before the card body becomes scrollable. Null disables the limit.
AnimationMode DwsCardAnimationMode DwsCardAnimationMode.Collapse Selects the CSS transition family for expand/collapse and appearance changes.
AnimationSpeed DwsAnimationSpeed DwsAnimationSpeed.Normal Transition duration for AnimationMode.
LoadContent Func<Task>? null When set, invoked during initialization to asynchronously load card content, driving the built-in loading state.
LoadMode DwsLazyLoadMode DwsLazyLoadMode.EventCall Controls when LoadContent is invoked (EventCall on init, or Programmatic via TriggerLoadAsync).
LoadingTemplate RenderFragment? null Custom loading indicator shown while content is loading.
CopyContentAsync Func<Task<string>>? null When set, renders a copy button in the header wired to this delegate. No copy button renders unless this is set.
Tooltip string string.Empty Tooltip text displayed on hover.
TooltipPosition DwsTooltipPosition DwsTooltipPosition.Top Kept so existing markup still compiles: the tooltip is the browser's native title, which has no position.
SecondaryCardHeader bool false When true, applies secondary header styling.
HeaderOptions DwsCardRegionOptions? null Class, style, alignment and background colour of the header.
MediaOptions DwsCardRegionOptions? null Class, style, alignment and background colour of the media area.
ContentOptions DwsCardRegionOptions? null Class, style, alignment and background colour of the content area.
ActionOptions DwsCardRegionOptions? null Class, style, alignment and background colour of the action row.
FooterOptions DwsCardRegionOptions? null Class, style, alignment and background colour of the footer.
Name Typ Description
OnClick EventCallback<MouseEventArgs> Fired when the card is clicked (outside of the header/actions). Mouse only and also raised by clicks on controls inside the card; for a clickable card use OnPrimaryAction.
OnPrimaryAction EventCallback<MouseEventArgs> Fired when the card's surface is activated by click, tap, Enter or Space. Not raised by controls inside the card.
IsExpandedChanged EventCallback<bool> Fired when the expanded state changes. Used by @bind-IsExpanded.
OnShow EventCallback Fired when Visible transitions from false to true.
OnHide EventCallback Fired when Visible transitions from true to false.
OnLoadError EventCallback<Exception?> Fired when the LoadContent delegate throws.
OnCopyCompleted EventCallback<DwsClipboardCopyResult> Fired when the copy-content operation completes successfully.
OnCopyFailed EventCallback<DwsClipboardCopyResult> Fired when the copy-content operation fails.
Name Typ Default Description
Element ElementReference The associated web component. May be null if accessed before the component is rendered.
ComponentGuid Guid Unique identifier for the component.
TypeString string The name of the component type, obtained from reflection.
Authorized_RegisterEnabled bool false Indicates whether this component is enabled through a permission registry.
Authorized_RegisterSelected bool false Indicates whether this component is selected in permission selection mode.
GetInitializedState bool false Returns whether the component is initialized.
GetRenderModeState DwsRenderMode Returns the current render mode.
GetComponentState DwsComponentStateType Returns the current component state.
GetIsInteractiveState bool false Returns whether the component is interactive.
GetIsPrerenderingState bool false Returns whether the component is prerendering.
GetComponentLoadingState bool false Returns whether the component is loading.
IsFormBusy bool false Whether the DwsForm (or DwsFormBusyRegion) around the component is locked because its submit handler is running. The state itself is the cascaded FormBusyState (IDwsFormBusyState).
Name Typ Parameters Description
DebugInfo void Logs debug information about the component.
UpdateState void Updates the component's state and triggers StateHasChanged.
UpdateStateAsync Task Asynchronously updates the component's state and triggers StateHasChanged.
Dispose void Disposes the component and releases resources.
FocusAsync ValueTask bool containedInScrollableList Sets focus to the component's element.
Name Typ Default Description
Name string Required unique identifier for the component within its container.
Visible bool true Determines if the component is visible in the UI.
Disabled bool false Disables the form control, ensuring it doesn't participate in form submission.
ComponentNameSpace string The namespace for permission-based access control.
PermissionKey string? null A stable key that takes the place of Name in the generated permission namespace (Page.PermissionKey): the stored permission survives a rename, and components that share a key share one permission entry. Null: keyed by Name. Read once, when the component registers; an explicit ComponentNameSpace wins.
Class string Optional CSS class names.
Style string Optional in-line styles.
Tag object An optional user-defined object to store any additional data with the component.
BackReference DwsReference A reference to the enclosing component.
ID string The HTML ID attribute for the component.
AdditionalAttributes Dictionary<string, object> Additional HTML attributes for the component's root element.
IgnorePermissionChecks bool false Bypasses all permission checks for this component.
IgnorePermissionSelection bool false Ignore permission selection mode for this component.
IgnoreFormBusy bool false Takes the component out of the submit lock of the DwsForm (or DwsFormBusyRegion) around it: IsFormBusy stays false for it.
Name Typ Description
OnInitializedCallbackStarted EventCallback Callback when OnInitialized starts.
OnInitializedCallback EventCallback Callback during OnInitialized.
OnInitializedCallbackCompleted EventCallback Callback when OnInitialized completes.
OnInitializedAsyncCallbackStarted EventCallback Callback when OnInitializedAsync starts.
OnInitializedAsyncCallback EventCallback Callback during OnInitializedAsync.
OnInitializedAsyncCallbackCompleted EventCallback Callback when OnInitializedAsync completes.
OnIsComponentLoadingChanged EventCallback<bool> Callback when IsComponentLoading changes.
OnCurrentRenderModeChanged EventCallback<DwsRenderMode> Callback when CurrentRenderMode changes.
OnComponentStateChanged EventCallback<DwsComponentStateType> Callback when ComponentState changes.

Interface-Description

Name Typ Default Description
GroupAppearance DwsAppearance? null Appearance cascaded to child cards.
Orientation DwsLayoutOrientation DwsLayoutOrientation.Horizontal Layout orientation of the group itself, also cascaded to child cards.
GroupCardOrientation DwsLayoutOrientation? null Orientation handed to every card of the group (Horizontal: media beside the content). Null: each card keeps its own.
GroupSize DwsSize? null Size cascaded to child cards.
GroupColor DwsColor? null Color cascaded to child cards.
Width / MinWidth / MaxWidth / Height / MinHeight / MaxHeight / Padding / Margin int? null Sizing/spacing applied to the group container.
Name Typ Default Description
Element ElementReference The associated web component. May be null if accessed before the component is rendered.
ComponentGuid Guid Unique identifier for the component.
TypeString string The name of the component type, obtained from reflection.
Authorized_RegisterEnabled bool false Indicates whether this component is enabled through a permission registry.
Authorized_RegisterSelected bool false Indicates whether this component is selected in permission selection mode.
GetInitializedState bool false Returns whether the component is initialized.
GetRenderModeState DwsRenderMode Returns the current render mode.
GetComponentState DwsComponentStateType Returns the current component state.
GetIsInteractiveState bool false Returns whether the component is interactive.
GetIsPrerenderingState bool false Returns whether the component is prerendering.
GetComponentLoadingState bool false Returns whether the component is loading.
IsFormBusy bool false Whether the DwsForm (or DwsFormBusyRegion) around the component is locked because its submit handler is running. The state itself is the cascaded FormBusyState (IDwsFormBusyState).
Name Typ Parameters Description
DebugInfo void Logs debug information about the component.
UpdateState void Updates the component's state and triggers StateHasChanged.
UpdateStateAsync Task Asynchronously updates the component's state and triggers StateHasChanged.
Dispose void Disposes the component and releases resources.
FocusAsync ValueTask bool containedInScrollableList Sets focus to the component's element.
Name Typ Default Description
Name string Required unique identifier for the component within its container.
Visible bool true Determines if the component is visible in the UI.
Disabled bool false Disables the form control, ensuring it doesn't participate in form submission.
ComponentNameSpace string The namespace for permission-based access control.
PermissionKey string? null A stable key that takes the place of Name in the generated permission namespace (Page.PermissionKey): the stored permission survives a rename, and components that share a key share one permission entry. Null: keyed by Name. Read once, when the component registers; an explicit ComponentNameSpace wins.
Class string Optional CSS class names.
Style string Optional in-line styles.
Tag object An optional user-defined object to store any additional data with the component.
BackReference DwsReference A reference to the enclosing component.
ID string The HTML ID attribute for the component.
AdditionalAttributes Dictionary<string, object> Additional HTML attributes for the component's root element.
IgnorePermissionChecks bool false Bypasses all permission checks for this component.
IgnorePermissionSelection bool false Ignore permission selection mode for this component.
IgnoreFormBusy bool false Takes the component out of the submit lock of the DwsForm (or DwsFormBusyRegion) around it: IsFormBusy stays false for it.
Name Typ Description
OnInitializedCallbackStarted EventCallback Callback when OnInitialized starts.
OnInitializedCallback EventCallback Callback during OnInitialized.
OnInitializedCallbackCompleted EventCallback Callback when OnInitialized completes.
OnInitializedAsyncCallbackStarted EventCallback Callback when OnInitializedAsync starts.
OnInitializedAsyncCallback EventCallback Callback during OnInitializedAsync.
OnInitializedAsyncCallbackCompleted EventCallback Callback when OnInitializedAsync completes.
OnIsComponentLoadingChanged EventCallback<bool> Callback when IsComponentLoading changes.
OnCurrentRenderModeChanged EventCallback<DwsRenderMode> Callback when CurrentRenderMode changes.
OnComponentStateChanged EventCallback<DwsComponentStateType> Callback when ComponentState changes.
An error has occurred. This app may no longer respond until reloaded.