Primitive button

Last updated: 3.0.0 (04/07/2024)

Usage

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

function MyComponent() { 
    return ( 
        <PrimitiveButton
            size="md"
            radius="sm"
            variant="light"
        >
            My first button!
        </PrimitiveButton>
    )
}

Props

Extends GenericButtonProps.

Property
Type
Description

motion

MotionBehaviourProps

Defines motion behavior for this button. This will automatically be overridden if the user has reduced motion enabled on their device.

float

Defines floating behavior for this button.

Changelog

  • 3.0.0: Added the float property, allowing all buttons to float like a FAB.

Last updated

Was this helpful?