Text Button
A native button for low-emphasis actions with lightweight text styling.
Show codeHide code
Installation
import { TextButton } from "@makeplane/propel/components/text-button";Usage
TextButton performs an action with lightweight text-only styling and no underline. It always
renders native button semantics. Use AnchorButton instead when
activation navigates to a destination, or Button when the action needs button
chrome.
import { TextButton } from "@makeplane/propel/components/text-button";
export default function BasicDemo() {
return <TextButton label="Try again" variant="primary" size="md" onClick={() => undefined} />;
}Examples
Variants
primary is the blue action; secondary is the muted gray action.
Show codeHide code
Sizes
size supports the md and lg text and glyph steps (md 28 / lg 32 px). Because this is
text-only chrome, a size changes the label and icon rather than introducing control height or
padding.
Show codeHide code
With an icon
Pass icon and pick its side with iconPosition (start by default).
Show codeHide code
Disabled
disabled uses the native, non-focusable disabled state and the disabled text and icon tokens.
Show codeHide code
API Reference
TextButton
A native button for low-emphasis actions with lightweight text-only chrome. It lays out an
optional icon beside the label. Unlike AnchorButton, TextButton never changes to link semantics
and does not expose a render target.