You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12 lines
382 B
JavaScript

import React from 'react'
import styles from './styles.module.css'
export default function Button({outline, onClick, enabled, type, children}){
return (
<div className={styles.formElementContainer + (outline ? ' ' + styles.outline : '')}>
<button disabled={enabled === undefined ? false : !enabled} onClick={onClick} type={type} children={children}/>
</div>
)
}