react-awesome-button-namdaoduy
Version:
Performant, extendable, highly customisable, production ready React Component that renders an animated basic set of UI buttons
47 lines (44 loc) • 963 B
JavaScript
import React from 'react';
import PropTypes from 'prop-types';
import { AwesomeButton } from '../../../src/index';
export default function Theme({ theme }) {
return (
<div>
<div>
<AwesomeButton
bubbles
size="medium"
cssModule={theme}
>
Primary
</AwesomeButton>
<AwesomeButton
bubbles
size="medium"
cssModule={theme}
type="secondary"
>
Secondary
</AwesomeButton>
<AwesomeButton
bubbles
size="medium"
cssModule={theme}
disabled
>
Disabled
</AwesomeButton>
<AwesomeButton
bubbles
placeholder
size="medium"
cssModule={theme}
disabled
/>
</div>
</div>
);
}
Theme.propTypes = {
theme: PropTypes.string.isRequired,
};