Skip to content

Forms

Button

Bundle size
1.52 KB
3.0.1

Displays a button or a component that acts like a button. This component was designed from scratch and has some embedded animations that make it unique.

This is an original component from Inpulse.

It has five possible variations, each with its own purpose: Primary, Secondary, Outline, Ghost, and Link. You can also use the pill property to create a pill-shaped button and customize its size with the size property.

This component also features a ripple effect that simulates a pressing effect when clicked, which can be disabled via the useRipple property.

Additionally, it supports a loading state that can be activated via the loading property - fully integrated with the Loading component.

Terminal window
pnpm add @inpulse-ui/button

The main component that renders the button.

PropTypeDefault ValueRequired
asChildbooleanfalseNo
iconbooleanfalseNo
loadingbooleanfalseNo
pillbooleanfalseNo
sizeenumNo
useRipplebooleantrueNo
variationenumNo

Wrap any content inside the <Button> component to create a button and apply variations, sizes, and other properties to customize it as needed.

<Button>
Click me!
</Button>

By default, all buttons that have borders (as is the case with the primary variation) have a click animation that simulates a pressing effect. This animation can be disabled via the useRipple property.

This animation can be easily activated on the button via the loading property. In a subtle way, it uses the ellipsis symbol to indicate that a process is loading.

In this variation, the click animation is not displayed because the element does not have borders.

In this variation, the click animation is not displayed because the element does not have borders.

The button component supports the following sizes: xs, sm, md, lg.

When the icon size is used in conjunction with the loading property, a variation of the loading animation, unique to that state, is displayed in place of the icon.

Project

Built with by Jo Santana in Brazil.

© 2026 Inpulse. All rights reserved.