UNPKG

@axa-fr/react-toolkit-button

Version:

1. [Installation](#installation) 1. [Import](#import) 1. [Simple button](#simple-button) 1. [Button circle](#button-circle) 1. [Button with left icon](#button-with-left-icon) 1. [Button with right icon](#button-with-right-icon) 1. [Disabled Button](#disab

8 lines (7 loc) 422 B
import React from 'react'; import { getComponentClassName } from '@axa-fr/react-toolkit-core'; const ButtonCore = ({ className, classModifier, type = 'button', children, ...props }) => { const componentClassName = getComponentClassName(className, classModifier, 'btn af-btn'); return (React.createElement("button", { type: type, className: componentClassName, ...props }, children)); }; export default ButtonCore;