**What** - Updates example on IconButton page so it no longer uses IconBadge - Removes the "small" size from Button props as it no longer exists.
33 lines
601 B
TypeScript
33 lines
601 B
TypeScript
import { PropTable } from "@/components/props-table"
|
|
import { PropDataMap } from "@/types/props"
|
|
|
|
const buttonProps: PropDataMap = [
|
|
{
|
|
prop: "variant",
|
|
type: {
|
|
type: "enum",
|
|
values: ["primary", "secondary", "transparent", "danger"],
|
|
},
|
|
defaultValue: "primary",
|
|
},
|
|
{
|
|
prop: "size",
|
|
type: {
|
|
type: "enum",
|
|
values: ["base", "large", "xlarge"],
|
|
},
|
|
defaultValue: "base",
|
|
},
|
|
{
|
|
prop: "isLoading",
|
|
type: "boolean",
|
|
defaultValue: false,
|
|
},
|
|
]
|
|
|
|
const Props = () => {
|
|
return <PropTable props={buttonProps} />
|
|
}
|
|
|
|
export default Props
|