import { Button } from "@opengovsg/oui"
<Button>Click me</Button>
Use the size
prop to change the size of the button.
Use the variant
prop to change the visual style of the Button.
Use icons within a button
Use the color
prop to change the color of the button.
Use the isDisabled
prop to disable the button.
Pass the isPending
and loadingText
props to the Button
component to show a
loading spinner and add a loading text.
Use the spinnerPlacement
prop to change the placement of the spinner.
Use the spinner
prop to change the spinner.
Use the radius
prop to change the radius of the button.