@wordpress/components
Version:
UI components for WordPress.
25 lines (14 loc) ⢠773 B
Markdown
<!-- This file is generated automatically and cannot be edited directly. Make edits via TypeScript types and TSDocs. -->
š This component is locked as a [private API](https://developer.wordpress.org/block-editor/reference-guides/packages/packages-private-apis/). We do not yet recommend using this outside of the Gutenberg project.
<p class="callout callout-info">See the <a href="https://wordpress.github.io/gutenberg/?path=/docs/components-badge--docs">WordPress Storybook</a> for more detailed, interactive documentation.</p>
- Type: `string`
- Required: Yes
Text to display inside the badge.
- Type: `"default" | "info" | "success" | "warning" | "error"`
- Required: No
- Default: `default`
Badge variant.