Blazorise Card API
Explore the Blazorise Card API reference for parameters, events, methods, and related types.
For examples and usage guidance, see the Card documentation.
API
Parameters
Card
| Parameter | Description | Type | Default |
|---|---|---|---|
ChildContent |
Specifies the content to be rendered inside this Card. |
RenderFragment | null |
WhiteText |
Sets the white text when using the darker background. |
bool | false |
CardText
| Parameter | Description | Type | Default |
|---|---|---|---|
ChildContent |
Specifies the content to be rendered inside this component. |
RenderFragment | null |
CopyToClipboard |
If true, the content of the component will be copied to clipboard on click event. |
bool | false |
Italic |
Italicize text if set to true. |
bool | false |
CardTitle
| Parameter | Description | Type | Default |
|---|---|---|---|
ChildContent |
Specifies the content to be rendered inside this component. |
RenderFragment | null |
CopyToClipboard |
If true, the content of the component will be copied to clipboard on click event. |
bool | false |
Italic |
Italicize text if set to true. |
bool | false |
Size |
Specifies the title size where the smaller number means larger text. |
HeadingSize? | null |
CardSubtitle
| Parameter | Description | Type | Default |
|---|---|---|---|
ChildContent |
Specifies the content to be rendered inside this component. |
RenderFragment | null |
CopyToClipboard |
If true, the content of the component will be copied to clipboard on click event. |
bool | false |
Italic |
Italicize text if set to true. |
bool | false |
Size |
Specifies the subtitle size where the smaller number means larger text. Defaults to Is6. |
HeadingSize? | 5 |
CardLink
| Parameter | Description | Type | Default |
|---|---|---|---|
ChildContent |
Specifies the content to be rendered inside this Link. |
RenderFragment | null |
Disabled |
Makes the link look inactive by adding the disabled boolean attribute. |
bool | false |
Match |
URL matching behavior for a link. Possible values: |
Match | Match.Prefix |
Stretched |
Makes any HTML element or component clickable by “stretching” a nested link. |
bool | false |
TabIndex |
Specifies whether the link element can be focused and where it participates in sequential keyboard navigation. |
int? | null |
Target |
The target attribute specifies where to open the linked document. |
Target | Target.Default |
Title |
Specify extra information about the element. |
string | |
To |
Denotes the target route of the link. |
string | |
Unstyled |
Removes default color styles from the link. |
bool | false |
CardImage
| Parameter | Description | Type | Default |
|---|---|---|---|
Alt |
Alternative image text. |
string | |
ChildContent |
Specifies the content to be rendered inside this CardImage. |
RenderFragment | null |
FallbackSource |
The fallback image that will be displayed if image loading fails. |
string | |
Source |
Image url. |
string |
Events
CardLink
| Event | Description | Type |
|---|---|---|
Clicked |
Notifies when the link is clicked. |
EventCallback<MouseEventArgs> |
CustomMatch |
A callback function that is used to compare current uri with the user defined uri. If defined, the Match parameter will be ignored. |
Func<string, bool> |