Skip to main content

Buttons

//BUTTONS
const Buttons = () => {
return (
<Layout ws={'100%'} style={{flexDirection: 'row' , flexWrap:'wrap'}}>
<Heading txp='center'>Buttons </Heading>
<Button>
<TextView cl={Theme.activeColors.light}>simple Button</TextView>
</Button>
<RoundedButton>
<TextView>Rounded button</TextView>
</RoundedButton>
<LoadingButton>
<TextView cl={Theme.activeColors.light}> loading </TextView>
</LoadingButton>
<IconButton><TextView cl={Theme.activeColors.light}>user (your icon)</TextView></IconButton>
</Layout>
);
};

export default Buttons;

Api References for all kind of Button​

ParameterTypeDescription
bcnumberborderColor
bwnumberborderWidth
bgstringbackgroundColor
alignstringalign the button
brnumberborderRadius
underlaystringunderlayColor
PressingvoidonPress function
pdnumberpadding
mrnumbermargin
styleanyyour custom styles