pg-custom-button

1.0.1 • Public • Published

pg-custom-button

A custom component to render button

Getting started

npm install pg-custom-button
import CustomButton from 'pg-custom-button';

function App() {
	return (
		<CustomButton
			btnText="Submit"
			onPress={() => {
				alert('pressed');
			}}
			btnStyle={{
				backgroundColor: 'yellow'
			}}
			btnTextStyle={{
				color: 'purple'
			}}
		/>
	);
}

Readme

Keywords

Package Sidebar

Install

npm i pg-custom-button

Weekly Downloads

2

Version

1.0.1

License

ISC

Unpacked Size

1.87 kB

Total Files

3

Last publish

Collaborators

  • piyushgaurav07