Park UI Logo
GitHub
Components
Button

Button

An interactive element used to trigger actions.

Usage

import { ArrowRightIcon } from 'lucide-react'
import { Button, type ButtonProps } from '~/components/ui'

export const Demo = (props: ButtonProps) => {
  return (
    <Button {...props}>
      Button
      <ArrowRightIcon />
    </Button>
  )
}

Examples

With a different color

Use the colorPalette prop to change the color of the button.

<HStack>
  <Button colorPalette="red" variant="solid">
    Button
  </Button>
  <Button colorPalette="red" variant="subtle">
    Button
  </Button>
  <Button colorPalette="red" variant="outline">
    Button
  </Button>
  <Button colorPalette="red" variant="ghost">
    Button
  </Button>
</HStack>

Installation

npx @park-ui/cli components add button