Atelier UI

Search components…

Search components…

Button with Icon

Button with a leading or trailing icon; position is switchable.

Edit in sandbox

Copy a prompt for your AI coding tool with the source, dependencies and usage

Props

ButtonWithIconProps

Also accepts all props of React.ComponentProps<"button">

PropTypeDefaultDescription
iconReact.ReactNode——
iconPosition"left" | "right""left"—

Install

$ npx shadcn@latest add https://chromotion.dev/r/button-with-icon.json

The CLI installs the base component; your customizations live in the code generated on the Customize tab.

More like this