fix: minor fixes to IconButton and Button documentation (#5636)

**What**
- Updates example on IconButton page so it no longer uses IconBadge
- Removes the "small" size from Button props as it no longer exists.
This commit is contained in:
Kasper Fabricius Kristensen
2023-11-15 15:53:05 +00:00
committed by GitHub
parent 61aef4aaa7
commit a2a45b6fef
2 changed files with 4 additions and 4 deletions
@@ -11,14 +11,14 @@ component: true
--- ---
```tsx ```tsx
import { IconBadge } from "@medusajs/ui" import { IconButton } from "@medusajs/ui"
import { Plus } from "@medusajs/icons" import { Plus } from "@medusajs/icons"
``` ```
```tsx ```tsx
<IconBadge> <IconButton>
<Plus /> <Plus />
</IconBadge> </IconButton>
``` ```
## API Reference ## API Reference
+1 -1
View File
@@ -14,7 +14,7 @@ const buttonProps: PropDataMap = [
prop: "size", prop: "size",
type: { type: {
type: "enum", type: "enum",
values: ["small", "base", "large", "xlarge"], values: ["base", "large", "xlarge"],
}, },
defaultValue: "base", defaultValue: "base",
}, },