Open l-monninger opened 2 years ago
I no longer want the children of my button to be the text node Testing. In fact, for now, I want to support arbitrary children. They could be images, buttons, iframes, any crazy thing I can think of. How do I do this?
Testing
export const Button : FC<ButtonProps> = ({ style, onMouseOver, onClick, variant = 'default', size = 'md', }) =>{ return ( <div className={BUTTON_CLASSNAMES} onClick={onClick} style={{...BUTTON_STYLE, ...style}}> Testing </div> ) };
Changed it so the displayed text can be set to anything from App.jsx
I no longer want the children of my button to be the text node
Testing
. In fact, for now, I want to support arbitrary children. They could be images, buttons, iframes, any crazy thing I can think of. How do I do this?