src/components/Button/Button.jsx

The only true button.

Prop nameDescriptionDefault
color

The color for the button.

string

#333

shape

The shape of my heart

PropTypes.shape({
    color: PropTypes.string,
    fontSize: PropTypes.number
})

-

size

The size of the button small, normal, large

VueTypes.string.def('normal')

-

SlotDescription
default
-

If you wish to, you can use JSX in your examples. Make sure you set the "jsxInExamples" flag to true in your styleguide.config.js

A first example with a jsx file


Next Dog Name: Bella

You can as well use Single File Components with JSX. This would allow you to style your JSX examples.


Next Dog Name: Bella

A minima, one is supposed to do that

or this

it works with spread too

Vue Styleguidist jsx example

1.1.1