button
v1.1.1arrow_drop_downv1.1.1
v1.1.0
v1.0.2
v1.0.1
v1.0.0
STATUS
Passing
DOWNLOADS
4,789
LICENSE
MIT
VISIBILITY
Public
PUBLISHED
4 years ago
SIZE
4 KB
Base button, with very basic styles.
1 contributor
Like
Install button as a package?
Copied
npm i @bit/bit.base-ui.input.button
Set Bit as a scoped registryLearn more
npm config set '@bit:registry' https://node.bit.cloud
Component Example
React
React
Vue
Angular
React Native
Add dependency... help_outline
Just
and packages in Bit or NPM to the example. any of the 1 million componentstoggle layout
modifieddraft
chevron_left
chevron_right
Button ()
Base button, with very basic styles. Accepts all parameters of native html button.
If onClick returns a promise, BaseButton will show a loader automatically, until the promise is resolved or rejected.
Example
Properties
Name | Type | Default value | Description |
---|---|---|---|
loader | ReactNode | <DotsLoader/> | loader to show while button is busy. Turns on when onClick returns a promise (until it resolves), or when |
loading | boolean | false | explicitly toggle loader on and off |