A next-generation tool to create blazing-fast documentation sites
API
created:11/15/2020
,
updated:11/17/2020

Template bind

You can bind stories to templates to reduce the amount of repetitive code. Click on the

button above to see how the templates are linked to the stories.

import { Button } from 'component-controls-stories';

John

Name
Description
Default
Controls
disabled

Boolean indicating whether the button should render as disabled

boolean
false
children

button label

string | (string & {}) | (string & ReactElement<any, string | ((props: any) => ReactElement<any, any> | null) | (new (props: any) => Component<any, any, any>)>) | (string & ReactNodeArray) | (string & ReactPortal)
default
onClick

onClick handler

(() => void)
() => {}
style

Custom styles

object
{}
backgroundColor

Background color

string
#fefefe
color

Text color, default black

string
black
type

Button type

buttonresetsubmit
button
padding

Numeric field type

number
5

package
imports
peer
ReactFC

Stories

Mary