You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
331 B
19 lines
331 B
import React, { ReactNode } from 'react'
|
|
|
|
type ButtonProps = {
|
|
children: ReactNode,
|
|
|
|
/**
|
|
* Simple click handler
|
|
*/
|
|
onClick?: () => void,
|
|
}
|
|
|
|
/**
|
|
* The world's most _basic_ button
|
|
*/
|
|
export const Button = ({ children, onClick }: ButtonProps) => (
|
|
<button onClick={onClick} type='button'>
|
|
{children}
|
|
</button>
|
|
)
|
|
|