|
Download wp-calypso/client/components/card-heading/README.md from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 570 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/components/card-heading/README.md
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/components/card-heading/README.md
-
curl -L -o README.md https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/components/card-heading/README.md
570 Bytes
CardHeading (JSX)
This component displays a heading for a <Card>
How to use
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 insize(int) - The font size of the headingisBold(bool) - Sets the heading to boldclassName(string) - Adds additional class names to the componentid(string) - Adds id attribute to the component