Skip to main content

Avatar.Text

Avatar.Text components render a pre-styled avatar with text that can be customized using various props.

Example Avatar

Implementation Code

import { Avatar } from '@nexara/nativeflow';

const Component = () => {
return (
<Avatar.Text
size={60}
text='YH'
/>
);
};

export default Component;

Props

PropTypeDefaultDescription
sizenumber70Defines the width and height of the avatar.
textstringYHSpecifies the text to be displayed inside the avatar (e.g., initials).
fsnumberDefines the font size of the text inside the avatar.
bgstringSets the background color of the avatar.
containerStyleViewStyleApplies custom styles to the avatar container.
textStyleTextStyleApplies custom styles to the text inside the avatar.