In-App UI
React
Components
Button
Button
A generic Button component that can be used to add action buttons to items in a notification feed.
Usage#
Props#
variantstring
The variant of the button; either `primary` or `secondary`. Defaults to `primary`.loadingTextstring
Text to display while the button is loading.isLoadingboolean
When true, will display a spinner next to the `loadingText` (if present).isDisabledboolean
When true, will mark the button as disabled.isFullWidthboolean
When true, will make the button occupy 100% of the parent container.onClickfunction
The click handler to be invoked when the button is clicked.childrenReactNode
The text to display inside of the button.