A generic close button for dismissing content like modals and alerts.
Provide an option to dismiss or close a component with CloseButton
component.
Default styling is limited, but highly customizable.
<template>
<CloseButton />
</template>
Disabled close buttons change their disabled
attribute.
<template>
<CloseButton disabled />
</template>
Change the default CloseButton
component to be white with the white
class.
This class uses the filter
attribute to invert the background-image
.
<template>
<CloseButton white />
<CloseButton
white
disabled
/>
</template>