File tree Expand file tree Collapse file tree
apps/storybook/src/stories/atoms
packages/react/src/atoms/buttons Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import React from 'react' ;
22import { ComponentStory , ComponentMeta } from '@storybook/react' ;
33import { ButtonBase } from '@reusejs/react' ;
4- import {
5- CheckCircleIcon ,
6- } from '@heroicons/react/solid' ;
4+ import { CheckCircleIcon } from '@heroicons/react/solid' ;
75
86export default {
97 title : 'Atoms/Buttons' ,
Original file line number Diff line number Diff line change @@ -26,6 +26,10 @@ export interface ButtonBaseProps {
2626 disabledClasses ?: any ;
2727 } ;
2828 onClick ?: ( ) => void ;
29+ onMouseEnter ?: ( ) => void ;
30+ onMouseLeave ?: ( ) => void ;
31+ onFocus ?: ( ) => void ;
32+ onBlur ?: ( ) => void ;
2933}
3034
3135const ButtonBase = ( props : ButtonBaseProps ) => {
@@ -49,13 +53,19 @@ const ButtonBase = (props: ButtonBaseProps) => {
4953 theme
5054 ) ;
5155
56+ console . log ( "Props>>>>>>>>" , props ) ;
57+
5258 return (
5359 < button
5460 type = { props . type }
5561 className = { finalClassNames }
5662 style = { props . buttonStyles }
5763 onClick = { props . onClick }
5864 disabled = { props . disabled || props . busy }
65+ onMouseEnter = { props . onMouseEnter }
66+ onMouseLeave = { props . onMouseLeave }
67+ onFocus = { props . onFocus }
68+ onBlur = { props . onBlur }
5969 >
6070 { props . buttonPrefix && props . buttonPrefix }
6171 { props . busy && < > { props . busyText } </ > }
You can’t perform that action at this time.
0 commit comments