react buttons npm code example

Example 1: react buttons npm

import { AwesomeButton } from "react-awesome-button";import AwesomeButtonStyles from "react-awesome-button/src/styles/styles.scss"; function Button() {  return (    <AwesomeButton cssModule={AwesomeButtonStyles} type="primary">      Button    </AwesomeButton>  );}

Example 2: react buttons npm

import { AwesomeButton } from "react-awesome-button";import AwesomeButtonStyles from "react-awesome-button/src/styles/styles.scss"; function Button() {  return (    <AwesomeButton      cssModule={AwesomeButtonStyles}      type="primary"      href="https://google.com"      target="_blank"    >      Button    </AwesomeButton>  );}

Example 3: react buttons npm

import { AwesomeButton } from "react-awesome-button";import AwesomeButtonStyles from "react-awesome-button/src/styles/styles.scss"; function Button() {  return (    <AwesomeButton      cssModule={AwesomeButtonStyles}      type="primary"      ripple      onPress={() => {        // do something      }}    >      Button    </AwesomeButton>  );}

Example 4: react buttons npm

import { AwesomeButton } from "react-awesome-button";import "react-awesome-button/dist/styles.css"; function Button() {  return <AwesomeButton type="primary">Button</AwesomeButton>;}

Example 5: react buttons npm

npm install --save react-awesome-button

Tags:

Misc Example