Create Icon Button component
This commit is contained in:
parent
b18d6e4e9c
commit
f4c3bfbe65
|
@ -0,0 +1,12 @@
|
|||
import { Icon } from "../Icon/Icon";
|
||||
import { ReactButton } from "../ReactButton";
|
||||
|
||||
const IconButton = ({ icon, text, ...props }) => {
|
||||
return (
|
||||
<ReactButton {...props} icon={<Icon source={icon} />}>
|
||||
{text}
|
||||
</ReactButton>
|
||||
);
|
||||
};
|
||||
|
||||
export { IconButton };
|
|
@ -0,0 +1 @@
|
|||
export { IconButton } from "./IconButton";
|
Loading…
Reference in New Issue