1.1.9 • Published 4 years ago

nessus-ui v1.1.9

Weekly downloads
-
License
MIT
Repository
-
Last release
4 years ago

🪐 Nessus UI

A React UI library with easy and ready to use components!

Button

A component for triggering a user action. e.g: a submit button in a form

Import
import { Button } from 'nessus-ui';
Usage
<Button
  buttonType="contained"
  text="Send"
  loading={loading}
  loadingAnimation={loadingAnimation}
  onClick={() => 'Do something'}
/>
Required props
NameTypeDescription
textstringText that will show inside button
Optional props
NameTypeDescription
onClickfunction
buttonTypestringA type that determines the style of the button. ('contained', 'outlined', 'disabled')
typestringDetermines the type of button input. ('button', 'submit','reset')
buttonWidthstringDetermines a specific width to the button.
disabledbooleanDetermines whether the button is disabled or not.
testIDstringSpecify the data-testid of the button.
loadingbooleanSpecify whether to show the loading or not.
loadingAnimationanyThe element to show when 'loading' is true.