Skip to main content

Surface

 

⚠️ Experimental Component

This component is still being evaluated and may change in future releases.

 

Surface component renders a container with customizable padding, border radius, and visual style (elevated or outlined), providing a versatile surface for other components.

Implementation code

import { Surface, Button } from '@nexara/nativeflow';
import { Camera } from 'lucide-react-native';

const Component = () => {
return (
<Surface>
<Button
renderIcon={<Camera size={17} />}
/>
</Surface>
);
}
export default Component;
PropTypeDefaultDescription
paddingnumber10Sets uniform padding inside the surface container.
brnumber5Sets the border radius of the surface container.
variant'outlined''elevated'Determines the visual style: 'elevated' applies shadow, 'outlined' applies border.
childrenReactNodeComponents or elements rendered inside the surface.