mirror of
https://github.com/status-im/nimbus-gui.git
synced 2025-01-22 01:09:49 +00:00
Create Icon Button component
This commit is contained in:
parent
b18d6e4e9c
commit
f4c3bfbe65
12
src/components/IconButton/IconButton.jsx
Normal file
12
src/components/IconButton/IconButton.jsx
Normal file
@ -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 };
|
1
src/components/IconButton/index.jsx
Normal file
1
src/components/IconButton/index.jsx
Normal file
@ -0,0 +1 @@
|
|||||||
|
export { IconButton } from "./IconButton";
|
Loading…
x
Reference in New Issue
Block a user