Skip to content

Button

Types Primitives

Text Component

Demo


Shows a button component.

Installation

Terminal window
npx @react-native-reusables/cli@latest add button

Usage

import { Button } from '~/components/ui/button';
import { Text } from '~/components/ui/text';
function Example() {
return (
<Button>
<Text>Default</Text>
</Button>
);
}

Props

Button

Extends Pressable props

PropTypeNote
variant’default’ | ‘destructive’ | ‘secondary’ | ‘link’ | ‘outline’ | ‘ghost’(optional)
size’default’ | ‘sm’ | ‘lg’ | ‘icon’(optional)