Documentation
Utilities
Clear Button

Clear button

The Clear Button is a compact, handy component used primarily within inputs to swiftly erase input content. This button serves to provide a seamless user experience by allowing for quick edits and corrections, minimizing the time and effort required for manual clearing.

1 2 3 4 import React from "react" import { ClearButton } from "@creation-ui/react" export const Example = () => <ClearButton size={"md"} />

Component API

PropDefaultDescription
className
string | string[]

Class names to add to wrapper component

sizemd
sm | md | lg

Size of the element

onClick
() => void

Callback function called on element click