Components

TextButton

A button that looks like plain text

Overview

TextButton is a button with no background or padding. The text style comes from the Text you put inside. On hover it underlines, and keyboard focus shows the outside focus ring.

Basic

Props

PropTypeDefaultRequiredDescription
onClickMouseEventHandler<HTMLButtonElement>-NoClick handler
childrenReactNode-YesText (usually Text)
classNamestring-NoExtra CSS class

Specification

base

상태요소속성값
hoverroottextDecorationunderline토큰 아님 — underline is not tokenized
focusVisiblerootoutlineWidth$size.stroke.focus
focusVisiblerootoutlineStylesolid토큰 아님 — no line style token
focusVisiblerootoutlineColor$color.border.focus.default
focusVisiblerootoutlineOffset2px토큰 아님 — no ring offset token

Usage Guidelines

Do

  • Use it when a title or label itself opens something
  • Keep the text short enough to read as an action

Don't

  • Don't use it for the main action of a screen. Use Button
  • Don't use it to navigate to another page. Use a link