Skip to content

Surfaces

Card

Bit.BlazorUI

Card is the surface a single subject lives on. On its own it is a padded box with the corner, the paint and the shadow of the current theme; give it a title, an icon, a cover picture, a row of actions or a footer and it lays those parts out for you, edge to edge where the picture needs it and inset everywhere else. The cover can sit above the content, beside it, after it, or behind it as a hero, cropped to a height or an aspect ratio of your own. It comes in three sizes and across the whole color palette in three variants, with a 25-step elevation ramp, an outline instead of a shadow and square corners. Give it a click handler and it becomes a real control that answers Enter and Space; give it a URL and it lays an accessible block link over its own surface without swallowing the buttons in its header and footer; bind its Selected value and it becomes a card a reader can pick.

Usage

Every example is live. Open its code to see exactly what produced the component running underneath.

Basic

On its own a card is a padded box: the surface color, the corner and the shadow of the current theme around whatever ChildContent puts in it. It is only as wide as its content, which is what lets a card sit inside a sentence of layout without stretching; FullWidth and the width parameters further down change that.


bit BlazorUI

bit BlazorUI components are native, easy-to-customize, and ...

Learn more(opens in a new tab)

Header

Title and Subtitle render the two lines of the header, and IconName puts a glyph in front of them. The moment any of them is set the card stops being one padded box and becomes a stack of parts, so the body below the header is inset by the same padding rather than sharing it. HeadingLevel makes the title a real heading (1-6), which is what lets a screen reader user jump from card to card instead of reading through them - leave it unset for a title that is only a label. IconTemplate puts markup of your own in the leading slot - an avatar, a logo, a thumbnail - while the title and the subtitle stay where they are, and HeaderTemplate replaces all three with a header of your own, which also takes away the line a linked card is named after.


bit BlazorUI
Native Blazor components

bit BlazorUI components are native, easy-to-customize, and ...

Deployment
Succeeded 2 minutes ago

A title given a heading level reports itself as one to assistive technologies.

Ada Lovelace
Author

An IconTemplate leads the header and leaves the title and the subtitle where they are.

Ada Lovelace
Author

A HeaderTemplate takes the place of the icon, the title and the subtitle.

Cover

ImageUrl puts a picture at the head of the card, outside the padding and clipped to the corner the card draws. ImageHeight fixes how tall it is and the picture is cropped to fill that box rather than stretched, so a row of cards keeps one picture height whatever the aspect ratios are. The picture is decorative next to the title beside it, so it renders an empty alt unless ImageAlt says otherwise, and ImageLoading hands the browser the picture of a card that is still below the fold to fetch later. Cover takes a template instead, for a head that is not a single picture - a chart, a carousel, a video. CoverRatio draws the cover at a ratio of your own instead - 16 / 9, 1 / 1, 4 / 3 - which is what a responsive grid wants: a fixed height keeps a row of cards level only until the column narrows, while a ratio keeps it level at every width. ImagePosition says which part of the picture survives that crop - top for a portrait whose face sits high in the frame, bottom for a landscape whose horizon sits low - instead of the middle the browser keeps by default. Reversed moves the cover under the content instead of over it, which is the shape a caption card wants. CoverOverlay moves the cover behind the content rather than above it, which is the hero card: give the card a Height of its own, since a cover behind the content no longer makes the card as tall as the picture, and a foreground the words can be read against - the picture carries no scrim.


Mount Rainier
Washington, USA

A cover runs edge to edge and is clipped to the corner of the card.

Widescreen
A 16 / 9 cover

A cover given a ratio stays at that ratio however wide the card ends up.

Top of the frame
ImagePosition="top"

The crop is taken from the top rather than from the middle.

Caption first
A cover under the content

Reversed puts the header and the body over the picture instead of under it.

bit BlazorUI
Custom cover
Any markup you like

The Cover template takes the place of the image.

Olympic National Park
Washington, USA

An overlaid cover fills the card and the content is written over it.

Actions & Footer

Actions is the slot at the trailing edge of the header, for whatever acts on the card as a whole - an overflow menu, a dismiss button, a status tag. Footer is the row under the body, for the actions a reader is meant to take. Both sit outside the title block and both are raised above the block link of a card that has an Href, so the controls in them keep working on a card that is itself a link. Divider draws a hairline between the header and the body and between the body and the footer, for a card that reads better as three parts than as one column; a header with nothing under it, or a footer with nothing over it, draws no rule at all, and a header stacked straight onto a footer draws one rule between them rather than two. FloatingActions is the third slot: it floats over the corner of the card itself rather than sitting in the column of parts, which is where a picture card has to keep its favourite toggle or its selection box - on such a card the header is under the cover rather than over it. It floats over a plain padded card just as well, and it is raised above the block link too. All three keep their clicks and their key presses to themselves on a card that has an OnClick of its own, so pressing the menu of such a card is not also pressing the card under it.


Weekly report
Updated an hour ago

Actions sit beside the title; the footer sits under the body.

Mount Rainier
Washington, USA

The star floats over the picture. Starred: False

Weekly report
Updated an hour ago

And the same card with a rule between each part and the next.

Horizontal

Horizontal lays the cover beside the content instead of above it, which is the shape a list of cards wants when each row is a thumbnail and a summary. The cover takes a third of the width by default and CoverWidth sets it to anything else; the picture fills that box in both directions, so a row of cards keeps one thumbnail size whatever the aspect ratios are. Reversed swaps the two around, so the thumbnail sits on the trailing edge of the row and the words lead it - and it mirrors with the card, so a right-to-left row reverses the other way.


Mount Rainier
Washington, USA

A horizontal card is a thumbnail and a summary on one row.

Mount Rainier
A narrower cover

CoverWidth pins the thumbnail to a fixed width.

Mount Rainier
A trailing cover

Reversed puts the thumbnail after the words instead of before them.

Click

OnClick turns the card into a control: it takes focus, it answers Enter and Space, it reports itself as a button to assistive technologies and it lifts under the pointer. It also gives up the heading a HeadingLevel would make of its title, since what a button holds is read as its name rather than as structure. A card that is a button is best left without controls of its own for the same reason - use the Href below with Actions or Footer for a card that leads somewhere and still carries buttons - though a control in any of the three action slots keeps its click and its key press to itself either way, rather than firing the card as well. IsEnabled="false" takes it out of the tab order, off the pointer and marks it disabled, and StopPropagation keeps the click from reaching whatever the card sits in - a card inside another clickable card, or inside a row that has a handler of its own.


Clickable card

Clicked 0 times.

Disabled card

This one answers nothing.

Link

Href makes the whole card lead somewhere. The card is not wrapped in an anchor - an anchor around a card is invalid the moment the card holds a link or a button, and a screen reader reads the whole card out as the name of that one link. Instead an anchor is stretched over the surface, which is the block-link pattern the design systems settled on, and it is named after the AriaLabel, an aria-labelledby of your own, the Title or the Subtitle - in that order - so a page of linked cards reads as a list of destinations rather than a list of identical links, and the name is handed to the anchor rather than left on the card as a second copy. Target and Rel reach that anchor; a card opening in a new tab gets rel="noopener" on its own, and Download turns the whole card into the thing that saves the file it points at. Everything in Actions, Footer and FloatingActions stays above the anchor and keeps working - and keeps its click to itself, so a linked card that also has an OnClick is not fired by the buttons inside it. A linked card takes no tab stop of its own: the anchor is the one control over the surface, and a TabIndex goes to it rather than to the wrapper around it. What the anchor does cover is the text of the body, which a reader can no longer select with the pointer - the price the block-link pattern pays wherever it is used.


bit BlazorUI
blazorui.bitplatform.dev

The whole surface is the link; the pin button above it is not. Pinned: False

Selection

Binding Selected turns the card into a toggle the same way a click handler turns it into a button: clicking or pressing Enter flips the value and the card reports its state through aria-pressed. A picked card is marked with a ring rather than a new fill, so the state survives whatever Color the card is already wearing: the ring is drawn in the primary color, or in the fill's own foreground on a card that is already painted in a role. It is painted over the edge of the card rather than added to it, so picking through a grid of cards moves nothing. A card that is a button through OnClick reports the state as well while it carries it, even where the app sets Selected itself rather than binding it - a control whose state only the sighted reader can see is not a state at all. A card splatted with a role that carries a selection of its own - option, row, gridcell, tab, treeitem - reports it through aria-selected instead, which is the state those roles answer to; that is what a grid or a listbox built out of cards needs.


Basic
Everything you need to start

Selected: True

Pro
For teams that ship

Selected: False

Hoverable

Hoverable lifts the card while the pointer is over it, for a card that reacts to the pointer without being a control itself. A clickable card and a linked one already lift on their own, so this is only needed for the rest. The lift is a shadow change - a few steps up the same Elevation ramp the card was resting on - and it only ever happens on an input device that hovers at all, so a touch screen is left alone.


Hover me

The shadow answers the pointer.

Loading

Loading stands the body of the card in with a placeholder while its content is being fetched, and marks the card busy so a screen reader knows it is not finished. The header keeps rendering - the title of a card is known before its content is - so a list of loading cards still says what each one is about. LoadingTemplate puts a placeholder of your own in place of the default bars.



Weekly report
Updated an hour ago
Custom placeholder

Elevation

Elevation picks a level of the 25-step shadow ramp of the theme (--bit-shd-0 to --bit-shd-24). 0 is a flat card with no shadow at all, which is the same thing NoShadow asks for; leaving it unset keeps the shadow the theme gives every card surface. A card that lifts under the pointer lifts from whatever level it was resting at rather than to one fixed shadow, so an elevated card still rises on hover and still presses down on click instead of dropping the moment the pointer reaches it.


4

bit BlazorUI

bit BlazorUI components are native, easy-to-customize, and ...

Learn more(opens in a new tab)

NoShadow

NoShadow drops the shadow and leaves the card a flat painted surface, which is what a card sitting inside another surface usually wants - a shadow inside a dialog or a panel reads as a mistake rather than as depth.


bit BlazorUI

bit BlazorUI components are native, easy-to-customize, and ...

Learn more(opens in a new tab)

Background

Background picks which of the neutral surface colors of the theme the card is painted in - the primary, secondary (the default) or tertiary background, or nothing at all. It is the paint of a plain card; a card given a Color further down is painted in that role instead.



bit BlazorUI

bit BlazorUI components are native, easy-to-customize, and ...

Learn more(opens in a new tab)

Border

Border draws a rule around the card in one of the neutral border colors of the theme. It is independent of the shadow, so a card can carry both, and it wins over the rule Outlined asks for - the two can be combined to get an outlined card in a border color other than the primary one.



bit BlazorUI

bit BlazorUI components are native, easy-to-customize, and ...

Learn more(opens in a new tab)

Outlined

Outlined is the shorthand for the card that carries a rule instead of a shadow, which is the third of the three card types every design system draws: elevated, filled and outlined. An explicit Border still decides the color of that rule.


bit BlazorUI

bit BlazorUI components are native, easy-to-customize, and ...

Learn more(opens in a new tab)

Square

Square drops the corner radius altogether, whatever the theme says. It is what a card wants when it is flush against the edge of a page or stacked with others into one continuous surface.


bit BlazorUI

bit BlazorUI components are native, easy-to-customize, and ...

Learn more(opens in a new tab)

NoPadding

NoPadding takes the inset off the card so its content runs to the edges, which is what a card holding a list, a table or a picture of its own needs. It applies to every part of a sectioned card too, so the header, the body and the footer all lose their inset together.


bit BlazorUI

bit BlazorUI components are native, easy-to-customize, and ...

Learn more(opens in a new tab)

Width & Height

Width and Height size the card explicitly, and MinWidth, MaxWidth, MinHeight and MaxHeight bound it instead - which is usually the better answer for a card in a responsive grid, where a maximum width keeps the line length readable without pinning the card to one size. Content taller than the height it was given runs out of the card, so a card whose height is fixed and whose content is not wants ScrollableBody: the body between the header and the footer takes the scrollbar and those two stay where they are.


300
200

bit BlazorUI

bit BlazorUI components are native, easy-to-customize, and ...

Learn more(opens in a new tab)

This one is bounded rather than sized: it never shrinks below 12rem and never grows past 24rem.


Release notes
A body that scrolls

Line 13 of a body that outgrew its card.

Line 13 of a body that outgrew its card.

Line 13 of a body that outgrew its card.

Line 13 of a body that outgrew its card.

Line 13 of a body that outgrew its card.

Line 13 of a body that outgrew its card.

Line 13 of a body that outgrew its card.

Line 13 of a body that outgrew its card.

Line 13 of a body that outgrew its card.

Line 13 of a body that outgrew its card.

Line 13 of a body that outgrew its card.

Line 13 of a body that outgrew its card.

FullSize

A card is only as wide as its content by default. FullWidth, FullHeight and FullSize stretch it to its container instead, which is what a card in a grid cell needs so that a row of them ends up the same height whatever each one holds.



bit BlazorUI

bit BlazorUI components are native, easy-to-customize, and ...

Learn more(opens in a new tab)

Accessibility

A card is a box, and a box with a name is a group - which is what an AriaLabel turns the card into, since a label on an element with no role of its own is not guaranteed to be announced at all. HeadingLevel makes the Title a real heading, so a page of cards can be walked heading by heading. A card with an OnClick reports itself as a button, takes focus and answers Enter and Space - and gives up the heading, since the contents of a button are named rather than read as structure; a bound Selected reports the state through aria-pressed, or through aria-selected on a card splatted with a role that carries one; Loading reports the card as busy; and IsEnabled="false" takes it out of the tab order and marks it disabled - whether the card was made focusable by the card or by a TabIndex of your own, and either way what focus it does take is drawn with a ring. A run of cards is a list, so wrap them in one - a ul of lis, or a container with role="list" - and give that list a name of its own. A linked card hands its name to the anchor stretched over it rather than keeping a second copy on the wrapper - and since a HeaderTemplate takes the title and the subtitle off the card, a linked card with a header of its own has nothing left to be named by and wants an AriaLabel.


Release notes

A named card is a group, and its title is a level-3 heading.

Still loading
Disabled control

Out of the tab order, off the pointer, marked disabled.

Color

Color paints the card in one of the roles of the theme instead of in the neutral surface colors, and Variant decides what it does with that role: Fill paints the whole card and takes the text with it, Outline keeps only the rule and the words in the role, and Text drops the rule and the shadow and tints the surface. A disabled card of any of the three wears the disabled slot of the same role rather than a flat grey.


Primary
Primary
Primary

Secondary
Secondary
Secondary

Tertiary
Tertiary
Tertiary

Info
Info
Info

Success
Success
Success

Warning
Warning
Warning

SevereWarning
SevereWarning
SevereWarning

Error
Error
Error

PrimaryBackground
SecondaryBackground
TertiaryBackground

PrimaryForeground
SecondaryForeground
TertiaryForeground

PrimaryBorder
SecondaryBorder
TertiaryBorder


Disabled:

Primary
Success
Error

External Icons

Use icons from external libraries like FontAwesome and Bootstrap Icons for the header glyph with the Icon parameter and BitIconInfo. A glyph from any of them is normalized back to the size of the title beside it, so it sits on the same line as the words whatever type scale the library it came from brings.


FontAwesome:

House
fa-solid fa-house
GitHub
fa-brands fa-github
Rocket
fa-solid fa-rocket



Bootstrap:

House
bi bi-house-fill
GitHub
bi bi-github
Gear
bi bi-gear-fill

Size

Three sizes set the inset of the card, the gap between its parts and the type of its header together, so a card stays in proportion at every one of them. Medium is the default and reproduces the padding the card has always had.


Small
A tight card

Small padding, small type.

Medium
The default

Medium padding, medium type.

Large
A roomy card

Large padding, large type.

Style & Class

Empower customization by overriding default styles and classes, allowing tailored design modifications to suit specific UI requirements. Style and Class land on the root of the card, while Styles and Classes reach every part of it separately - the block link, the floating slot, the cover and its image, the main column, the header with its icon, title and subtitle, the actions, the body, the footer and the selected state.


Component's Style & Class:

Styled card

Classed card



Styles & Classes:

Styles
Per-part inline styles

Every part can be styled on its own.

Classes
Per-part CSS classes

And every part can take a class.

RTL

Use Dir="BitDir.Rtl" to change the direction of the card. The whole layout mirrors with it: the header glyph moves to the right of the title, the actions move to the left of the header, and a horizontal card puts its cover on the right.


کارت
یک زیرعنوان

بیت بلیزور یو آی، کامپوننت‌های بومی، قابل تنظیم و ...

API

Every parameter, public member, sub-class and enum this component exposes.

BitCard parameters

Name Type Default value Description
Actions RenderFragment? null The content rendered at the trailing edge of the header of the card, for whatever acts on the card as a whole. It is raised above the stretched link of a card that has an Href, so the controls in it stay clickable.
Background BitColorKind? null The color kind of the background of the card.
Border BitColorKind? null The color kind of the border of the card.
ChildContent RenderFragment? null The content of the card. It renders on its own inside the padding of the card, unless the card also has a cover, a header or a footer - then it renders as the body between them.
Classes BitCardClassStyles? null Custom CSS classes for different parts of the card.
Color BitColor? null The general color of the card. Setting it paints the card in one of the roles of the theme instead of in the neutral surface colors, in the way the Variant asks for.
Cover RenderFragment? null The full-bleed media at the head of the card, rendered outside the padding and clipped to the corner of the card. It takes precedence over ImageUrl.
CoverOverlay bool false Lays the cover of the card behind its content instead of above it, filling the whole surface. The card needs a Height or a MinHeight of its own, since an overlaid cover no longer makes it as tall as the picture.
CoverRatio string? null The aspect ratio the cover of the card is drawn at, as a CSS ratio such as 16 / 9. The cover is then sized by the ratio rather than by the picture inside it, which keeps a row of cards level while the column narrows.
CoverWidth string? null The width of the cover of a horizontal card. The default is a third of the width of the card.
Divider bool false Draws a hairline between the header and the body of the card and between its body and its footer. A part on the outer edge of the stack - a header with nothing under it, a footer with nothing over it - draws no rule of its own.
Download string? null The download attribute of the stretched link of the card.
Elevation int? null Sets the shadow elevation level of the card (0-24). Maps to theme shadow variables (--bit-shd-1 to --bit-shd-24), with 0 being a card with no shadow at all.
Footer RenderFragment? null The content rendered under the body of the card, for the actions a reader is meant to take. It is raised above the stretched link of a card that has an Href, so the controls in it stay clickable.
FloatingActions RenderFragment? null The content floated over the leading corner of the card, above everything else on its surface - the corner a picture card keeps its favourite toggle or its selection box in. It is raised above the stretched link of a card that has an Href, so the control in it stays clickable.
FullHeight bool false Makes the card height 100% of its parent container.
FullSize bool false Makes the card width and height 100% of its parent container.
FullWidth bool false Makes the card width 100% of its parent container.
HeaderTemplate RenderFragment? null The custom template rendered as the header of the card, in place of the icon, the title and the subtitle. Actions still renders beside it.
HeadingLevel int? null The heading level the title of the card reports itself as (1-6). Leaving it unset keeps the title plain text. Values outside 1-6 are ignored.
Height string? null Sets the height of the card explicitly.
Horizontal bool false Lays the cover of the card beside its content instead of above it.
Hoverable bool false Lifts the card while the pointer is over it. A clickable card or a linked one lifts on its own.
Href string? null The URL the whole card leads to, rendered as an anchor stretched over the surface of the card. The anchor is named by the AriaLabel, or failing that by the Title or the Subtitle of the card.
Icon BitIconInfo? null The leading icon of the header of the card.
IconName string? null The name of the leading icon of the header of the card.
IconTemplate RenderFragment? null The custom template rendered in the leading slot of the header of the card, in place of the icon. Unlike HeaderTemplate it keeps the Title and the Subtitle beside it.
ImageAlt string? null The alternate text of the cover image of the card. With no value it renders an empty alt, so the picture is skipped by assistive technologies.
ImageHeight string? null The height of the cover image of the card. The image is cropped to fill it rather than stretched.
ImageLoading BitImageLoading? null The loading behavior of the cover image of the card, eager or lazy.
ImagePosition string? null The part of the cover image of the card that is kept in frame, as a CSS object-position such as top or 50% 20%. It only means anything on a cover that crops the picture, through ImageHeight or CoverRatio.
ImageUrl string? null The URL of the cover image at the head of the card.
Loading bool false Stands the body of the card in with a placeholder while its content is being fetched, and reports the card as busy. The header keeps rendering.
LoadingTemplate RenderFragment? null The custom placeholder rendered in the body of the card while Loading is set.
MaxHeight string? null Sets the maximum height of the card.
MaxWidth string? null Sets the maximum width of the card.
MinHeight string? null Sets the minimum height of the card.
MinWidth string? null Sets the minimum width of the card.
NoPadding bool false Removes the default padding of the card.
NoShadow bool false Removes the default shadow around the card.
OnClick EventCallback<MouseEventArgs> The callback for when the card is clicked. Setting it turns the card into a button: it takes focus, it answers Enter and Space, and it reports itself as a control to assistive technologies.
Outlined bool false Renders the card with no shadow and a primary border. An explicit Border still wins over the border color it asks for.
Rel BitLinkRels? null The rel attribute of the stretched link of the card. With no value of its own, a card whose Target is _blank gets noopener.
Reversed bool false Lays the cover of the card after its content instead of before it: under the body on a vertical card, on the trailing edge of a Horizontal one.
ScrollableBody bool false Lets the content of the card scroll inside it instead of growing past the height it was given. It only means anything on a card whose height is bounded.
Selected bool false Whether the card is currently selected. Binding it turns the card into a toggle: clicking it flips the value, and the card reports its state through aria-pressed as a button, or through aria-selected where it was given a role that carries one.
Size BitSize? null The size of the card, which sets its padding, the gap between its parts and the type of its header.
Square bool false Removes the border-radius from the card, rendering it with sharp corners.
StopPropagation bool false Stops the propagation of the click event of the card.
Styles BitCardClassStyles? null Custom CSS styles for different parts of the card.
Subtitle string? null The second line of the header of the card, under the title.
Target string? null The target attribute of the stretched link of the card.
Title string? null The title of the card, rendered as the first line of its header. It also names the stretched link of a card that has an Href.
Variant BitVariant? null The visual variant of the card, which only takes effect while a Color is set. The default is Fill.
Width string? null Sets the width of the card explicitly.

BitCard public members

Name Type Default value Description
FocusAsync ValueTask Gives focus to the card, which only lands anywhere while the card is a control or has a tab index of its own.

BitComponentBase parameters

Name Type Default value Description
AriaLabel string? null Gets or sets the accessible label for the component, used by assistive technologies.
Class string? null Gets or sets the CSS class name(s) to apply to the rendered element.
Dir BitDir? null Gets or sets the text directionality for the component's content.
ForceAnimation bool false Gets or sets a value indicating whether the component's animations play at their full duration even when reduced motion is requested.
HtmlAttributes Dictionary<string, object> new Dictionary<string, object>() Captures additional HTML attributes to be applied to the rendered element, in addition to the component's parameters.
Id string? null Gets or sets the unique identifier for the component's root element.
IsEnabled bool true Gets or sets a value indicating whether the component is enabled and can respond to user interaction.
Style string? null Gets or sets the CSS style string to apply to the rendered element.
TabIndex string? null Gets or sets the tab order index for the component when navigating with the keyboard.
Visibility BitVisibility BitVisibility.Visible Gets or sets the visibility state (visible, hidden, or collapsed) of the component.

BitComponentBase public members

Name Type Default value Description
UniqueId Guid Guid.NewGuid() Gets the readonly unique identifier for the component's root element, assigned when the component instance is constructed.
RootElement ElementReference Gets the reference to the root HTML element associated with this component.

BitCardClassStyles properties

Name Type Default value Description
Root string? null Custom CSS classes/styles for the root element of the BitCard.
Link string? null Custom CSS classes/styles for the stretched link that covers a card with an Href.
FloatingActions string? null Custom CSS classes/styles for the slot floated over the corner of the BitCard.
Cover string? null Custom CSS classes/styles for the full-bleed media area at the head of the BitCard.
Image string? null Custom CSS classes/styles for the image rendered from the ImageUrl of the BitCard.
Main string? null Custom CSS classes/styles for the element that holds the header, the body and the footer of the BitCard.
Header string? null Custom CSS classes/styles for the header of the BitCard.
Icon string? null Custom CSS classes/styles for the leading icon of the header of the BitCard.
HeaderText string? null Custom CSS classes/styles for the element that holds the title and the subtitle of the BitCard.
Title string? null Custom CSS classes/styles for the title of the BitCard.
Subtitle string? null Custom CSS classes/styles for the subtitle of the BitCard.
Actions string? null Custom CSS classes/styles for the actions rendered at the trailing edge of the header of the BitCard.
Body string? null Custom CSS classes/styles for the body of the BitCard, which is what the ChildContent renders into.
Footer string? null Custom CSS classes/styles for the footer of the BitCard.
Selected string? null Custom CSS classes/styles for the root element of the BitCard while it is selected.

BitColorKind enum

Name Value Description
Primary 0 The primary color kind.
Secondary 1 The secondary color kind.
Tertiary 2 The tertiary color kind.
Transparent 3 The transparent color kind.

BitColor enum

Name Value Description
Primary 0 Primary general color.
Secondary 1 Secondary general color.
Tertiary 2 Tertiary general color.
Info 3 Info general color.
Success 4 Success general color.
Warning 5 Warning general color.
SevereWarning 6 SevereWarning general color.
Error 7 Error general color.
PrimaryBackground 8 Primary background color.
SecondaryBackground 9 Secondary background color.
TertiaryBackground 10 Tertiary background color.
PrimaryForeground 11 Primary foreground color.
SecondaryForeground 12 Secondary foreground color.
TertiaryForeground 13 Tertiary foreground color.
PrimaryBorder 14 Primary border color.
SecondaryBorder 15 Secondary border color.
TertiaryBorder 16 Tertiary border color.

BitImageLoading enum

Name Value Description
Eager 0 The default behavior of the browser: the image is fetched as soon as the img element is processed.
Lazy 1 The image is fetched only once the browser estimates that it is about to be needed.

BitSize enum

Name Value Description
Small 0 The small size.
Medium 1 The medium size.
Large 2 The large size.

BitVariant enum

Name Value Description
Fill 0 Fill styled variant.
Outline 1 Outline styled variant.
Text 2 Text styled variant.

BitVisibility enum

Name Value Description
Visible 0 The content of the component is visible.
Hidden 1 The content of the component is hidden, but the space it takes on the page remains (visibility:hidden).
Collapsed 2 The component is hidden (display:none).

BitDir enum

Name Value Description
Ltr 0 Ltr (left to right) is to be used for languages that are written from the left to the right (like English).
Rtl 1 Rtl (right to left) is to be used for languages that are written from the right to the left (like Arabic).
Auto 2 Auto lets the user agent decide. It uses a basic algorithm as it parses the characters inside the element until it finds a character with a strong directionality, then applies that directionality to the whole element.

Feedback

Found a mistake, a gap, or something that could be clearer? Every page and every component is one click from its source.