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