0.1.3 • Published 3 years ago
sbyk_t v0.1.3
description: 'A Button component.'
labels: 'React Native', 'typescript', 'UI'
import { Button } from './button';
React Component for rendering basic Button with text inside and onclick event
A basic button that renders Text
Component usage
js
Using props to customize the text
Modify the text to see it change live: js live <Button text="hello from Button" textStyle = "color:'white',fontWeight:'bold'" containerStyle = "height:50,width:150,alignItems:'center',justifyContent:'center',backgroundColor:'#33B8FF'" onClick = {()=>alert('Hello from button')} />