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:
@@ -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
|
||||||
|
|||||||
@@ -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",
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user