LogoCraftReactNative
Components

ButtonRound

A circular button component designed for displaying an icon. Commonly used for navigation actions or action buttons.

Component preview

Installation

npx @craftreactnative/ui add ButtonRound

Usage

Screen.tsx
import { ButtonRound } from "@/craftrn-ui/components/ButtonRound";
 
export const Screen = () => (
  <ButtonRound
    onPress={() => {}}
    size="small"
    renderIcon={(size) => (
      <ChevronLeft size={size} color={theme.colors.contentPrimary} />
    )}
  />
);

Props

PropTypeDefault
onPress?
() => void
-
disabled?
boolean
false
renderContent
(props: { iconSize: number; iconColor: string; }) => ReactElement<unknown, string | JSXElementConstructor<any>>
-
size?
Size
'medium'
variant?
"default" | "accent" | "reversed"
'default'
intent?
Intent
'primary'

Dependencies

1 packages
react-native-unistyles

On this page