Text button

Last updated: 2.0.0 (18/01/2024)

A simple button designed for rendering text. Uses the Text component to render text. This is the default button; it will be used as Button.

Usage

import { Button } from "@valence-ui/core";

function MyComponent() { 
    return ( 
        <Button 
            size="md"
            radius="sm"
            variant="light"
        >
            A *markdown* compatible text button!
        </Button>
    )
}

Props

Extends PrimitiveButtonProps.

Property
Type
Description

children

string

Children of this component.

textProps

TextProps

Properties to apply to the Text component.

Last updated

Was this helpful?