Sha256: 53aef97df1f89bbc633bdc299b7bf896750719b82e243bbbd20fbd84885b204a

Contents?: true

Size: 923 Bytes

Versions: 90

Compression:

Stored size: 923 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}
        disabled={disable}
        onClick={onclick}
        role="button"
        type="button"
      >
        <Flex 
          align="center"
          className="toolbar_button_icon"
          justify="center"
        >
          <Icon icon={icon} size="lg" />
        </Flex>
      </button>
    </Tooltip>
  );
};

export default EditorButton

Version data entries

90 entries across 90 versions & 1 rubygems

Version Path
playbook_ui-13.12.0.pre.alpha.PLAY880cardkithighlightzindex1655 app/pb_kits/playbook/pb_rich_text_editor/TipTap/EditorButton.tsx
playbook_ui-13.12.0.pre.alpha.PLAY1081exportingtypes1627 app/pb_kits/playbook/pb_rich_text_editor/TipTap/EditorButton.tsx
playbook_ui-13.12.0.pre.alpha.PLAY1081exportingtypes1626 app/pb_kits/playbook/pb_rich_text_editor/TipTap/EditorButton.tsx
playbook_ui-13.12.0.pre.alpha.PLAY1081exporttypes1624 app/pb_kits/playbook/pb_rich_text_editor/TipTap/EditorButton.tsx
playbook_ui-13.12.0.pre.alpha.PLAY1081exporttypes1623 app/pb_kits/playbook/pb_rich_text_editor/TipTap/EditorButton.tsx
playbook_ui-13.12.0.pre.alpha.play900startratingasinput1612 app/pb_kits/playbook/pb_rich_text_editor/TipTap/EditorButton.tsx
playbook_ui-13.12.0.pre.alpha.PLAY1081exporttypes1611 app/pb_kits/playbook/pb_rich_text_editor/TipTap/EditorButton.tsx
playbook_ui-13.12.0.pre.alpha.PLAY1081exporttypes1609 app/pb_kits/playbook/pb_rich_text_editor/TipTap/EditorButton.tsx
playbook_ui-13.12.0.pre.alpha.PLAY1081exporttypes1608 app/pb_kits/playbook/pb_rich_text_editor/TipTap/EditorButton.tsx
playbook_ui-13.12.0.pre.alpha.play10281596 app/pb_kits/playbook/pb_rich_text_editor/TipTap/EditorButton.tsx
playbook_ui-13.12.0.pre.alpha.play1051testhighcharts1581 app/pb_kits/playbook/pb_rich_text_editor/TipTap/EditorButton.tsx
playbook_ui-13.12.0.pre.alpha.play1051testhighcharts1580 app/pb_kits/playbook/pb_rich_text_editor/TipTap/EditorButton.tsx
playbook_ui-13.12.0.pre.alpha.play1051testhighcharts1579 app/pb_kits/playbook/pb_rich_text_editor/TipTap/EditorButton.tsx
playbook_ui-13.12.0.pre.alpha.PLAY1093typeaheadkitdocbug1577 app/pb_kits/playbook/pb_rich_text_editor/TipTap/EditorButton.tsx
playbook_ui-13.12.0.pre.alpha.play1051testhighcharts1574 app/pb_kits/playbook/pb_rich_text_editor/TipTap/EditorButton.tsx
playbook_ui-13.12.0.pre.alpha.play1051highchartstest1567 app/pb_kits/playbook/pb_rich_text_editor/TipTap/EditorButton.tsx
playbook_ui-13.12.0.pre.alpha.play1051highchartstest1558 app/pb_kits/playbook/pb_rich_text_editor/TipTap/EditorButton.tsx
playbook_ui-13.12.0.pre.alpha.play1051highchartstest1556 app/pb_kits/playbook/pb_rich_text_editor/TipTap/EditorButton.tsx
playbook_ui-13.12.0.pre.alpha.PLAY1051removinghighchartsdependency1551 app/pb_kits/playbook/pb_rich_text_editor/TipTap/EditorButton.tsx
playbook_ui-13.12.0.pre.alpha.play900startratingasinput1550 app/pb_kits/playbook/pb_rich_text_editor/TipTap/EditorButton.tsx