|
Download wp-calypso/packages/components/src/badge/README.md from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 461 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/packages/components/src/badge/README.md
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/packages/components/src/badge/README.md
-
curl -L -o README.md https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/packages/components/src/badge/README.md
461 Bytes
Badge
Badge is a component used to render a short piece of information that should stand out from the rest.
Usage
import { Badge } from '@automattic/components';
function MyComponent() {
return <Badge type="warning">Only 6MB left!</Badge>;
}
Props
The following props are available to customize the Badge:
type:'warning','success','info','info-blue','error'className: additional class name to add to the badge