A next-generation tool to create blazing-fast documentation sites
API
created:12/30/2020
updated:12/30/2020
loc
45
comments
62%

Smart controls

Smart controls

import { Button } from 'component-controls-stories';
props => <Button {...props}>default</Button>
Name
Description
Default
disabled

Boolean indicating whether the button should render as disabled

boolean
false
children

button label

(string & (boolean | ReactChild | ReactFragment | ReactPortal | null))
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

Small story with custom controls

Story with no parameters == no smart controls