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

14 lines (13 loc) 372 B
import React from 'react'; import { getClickId } from '@axa-fr/react-toolkit-core'; import ButtonCore from './ButtonCore'; const Button = (props) => { const propsWithClickId = getClickId({ option: { event: ['onClick'], }, props, }); return React.createElement(ButtonCore, { ...propsWithClickId }); }; export default Button;