ABP Card Component is a part of the `ThemeSharedModule` module. If you've imported that module into your module, you don't need to import it again. If not, first import it as shown below:
ABP Card Component is a part of the `ThemeSharedModule` module. If you've imported that module into your module, you don't need to import it again. If not, first import it as shown below:
@ -24,29 +43,164 @@ export class MyFeatureModule {}
```
```
Then, the `abp-card` component can be used. See the example below:
Then, the `abp-card` component can be used. See the examples below:
```ts
## CardBody
```ts
// card-demo.component.ts
// card-demo.component.ts
import { Component } from '@angular/core';
import { Component } from '@angular/core';
@Component({
selector: 'app-card-demo',
template: `
<abp-card[cardStyle]="{width:'18rem'}">
<abp-card-body>This is some text within a card body</abp-card-body>
</abp-card>
`,
})
export class CardDemoComponent { }
```
See the card body result below:

## Titles, Text and Links
```ts
//card-demo.component.ts
import { Component } from '@angular/core';
@Component({
@Component({
selector: 'app-card-demo',
selector: 'app-card-demo',
template: `
template: `
<abp-card[cardStyle]="{width:'18rem'}">
<abp-card[cardStyle]="{width:'18rem'}">
<abp-card-body>
<abp-card-body>
<abp-card-title>Lorem Ipsum</abp-card-title>
<h5abpCardTitle>Card Title</h5>
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla commodo condimentum ligula, sed varius nibh eleifend sit amet. Maecenas facilisis vel arcu nec maximus.
As you can see in the example above, you can customize your card component's style with the `cardStyle` input. You can also add your custom classes with the `cardClass` input.