Text Button
Standard padding is 12px all the way around. Typography uses the small bold style.
Usage
import { TextButton } from "@momo-webplatform/mobase";
<TextButton variant="primary">
Default link
</TextButton>
Examples
Size
Text button has 2 different sizes:
Variants
We provide 3 variants of text button: default
, primary
, secondary
.
AsChild
Change the default rendered element for the one passed as a child, merging their props and behavior.
API Reference
TextButton
Prop | Type | Default | Required |
className | string | -- | false |
asChild | enumboolean | false | false |
isDisabled | enumboolean | false | false |
variant | enumdefault | primary | secondary | default | false |
size | enumdefault | lg | default | false |