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> );}
npm install --save react-awesome-button
import { AwesomeButton } from "react-awesome-button";import "react-awesome-button/dist/styles.css"; function Button() { return <AwesomeButton type="primary">Button</AwesomeButton>;}
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> );}
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> );}