File size: 570 Bytes
1e92f2d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
# CardHeading (JSX)
This component displays a heading for a `<Card>`
## How to use
```js
import CardHeading from 'calypso/components/card-heading';
function render() {
return (
<CardHeading tagName="h1" size={ 21 }>
Put your heading text here
</CardHeading>
);
}
```
## Props
- `tagName` (`string`) - The element to wrap the text in
- `size` (`int`) - The font size of the heading
- `isBold` (`bool`) - Sets the heading to bold
- `className` (`string`) - Adds additional class names to the component
- `id` (`string`) - Adds id attribute to the component
|