Sha256: b99003f9877ec32db56de3b88223552f5223e5e403a577f4622a77e4e425b044
Contents?: true
Size: 879 Bytes
Versions: 168
Compression:
Stored size: 879 Bytes
Contents
import React from "react"; import Icon from "../../pb_icon/_icon"; import Flex from "../../pb_flex/_flex"; import Tooltip from "../../pb_tooltip/_tooltip"; type EditorButtonProps = { classname?: string, onclick?: () => {} | void, icon?: string; text?: string; disable?: boolean }; const EditorButton = ({ classname, disable, onclick, icon, text, }: EditorButtonProps) => { return ( <Tooltip delay={{ open: 2000 }} interaction placement="top" text={text} > <button className={classname} onClick={onclick} disabled={disable} > <Flex align="center" className="toolbar_button_icon" justify="center" > <Icon icon={icon} size="lg" /> </Flex> </button> </Tooltip> ); }; export default EditorButton
Version data entries
168 entries across 168 versions & 1 rubygems