logo here
created:1/23/2021
,
updated:1/23/2021

Typescript Button

custom-esm-pages
0.0.1

Button with react Typescript properties

import { TSButton } from 'custom-esm-pages';

Main

Name
Description
Default
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, string | ... | (new (props: any) => Component<any, any, any>)>) | (new (props: any) => Component<...>)>) | (string & ReactNodeArray) | (string & ReactPortal)
default
onClick

onClick handler

() => void
-
style

Custom styles

CSSProperties
{}
backgroundColor

Background color

string
#fefefe
color

Text color, default black

string
black
type

Button type

submitresetbutton
button
padding

Numeric field type

number
5

package
imports
peer
react
^17.0.1
ReactFCButtonHTMLAttributes

Stories

Color