Default

<UnstyledButton>Click me — no browser styles</UnstyledButton>

With custom styles

<UnstyledButton
  style="padding:8px 16px;background:blue;color:white;border-radius:4px"
>
  Custom styled
</UnstyledButton>

As a link

<UnstyledButton component="a" href="/page">
  Looks like a link
</UnstyledButton>

As a card tile

<UnstyledButton
  style="padding:16px;background:white;border:1px solid #eee;border-radius:8px;cursor:pointer"
>
  <div>Card title</div>
  <div>Description text</div>
</UnstyledButton>

Submit type

<UnstyledButton type="submit">Submit form</UnstyledButton>

Props

PropTypeDefaultDescription
componentstring'button'HTML element to render as root
disabledbooleanDisables the button when rendering as a native button
type'button'|'submit'|'reset''button'HTML button type; only applied for native button element
classstringAdditional CSS class names
styleobjectInline styles
childrenReactNodeContent inside the button