Sha256: c11190de98a0ee57b4253a702df44b536b622ba433f8e75fe6af6c0297d56dc0

Contents?: true

Size: 994 Bytes

Versions: 662

Compression:

Stored size: 994 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?: () => undefined | void,
  icon?: string;
  text?: string;
  disable?: boolean
};

const EditorButton = ({
  classname,
  disable,
  onclick,
  icon,
  text,
}: EditorButtonProps): React.ReactElement => {
  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

662 entries across 662 versions & 1 rubygems

Version Path
playbook_ui-14.12.0.pre.alpha.play1790darkaudittable5802 app/pb_kits/playbook/pb_rich_text_editor/TipTap/EditorButton.tsx
playbook_ui-14.12.0.pre.alpha.play1752updatecontenttag5801 app/pb_kits/playbook/pb_rich_text_editor/TipTap/EditorButton.tsx
playbook_ui-14.13.0.pre.rc.6 app/pb_kits/playbook/pb_rich_text_editor/TipTap/EditorButton.tsx
playbook_ui-14.13.0.pre.rc.5 app/pb_kits/playbook/pb_rich_text_editor/TipTap/EditorButton.tsx
playbook_ui-14.12.0.pre.alpha.PLAY1602lightboxoverlapnitrobug5781 app/pb_kits/playbook/pb_rich_text_editor/TipTap/EditorButton.tsx
playbook_ui-14.13.0.pre.rc.4 app/pb_kits/playbook/pb_rich_text_editor/TipTap/EditorButton.tsx
playbook_ui-14.12.0.pre.alpha.playrailsinputmaskissue5775 app/pb_kits/playbook/pb_rich_text_editor/TipTap/EditorButton.tsx
playbook_ui-14.12.0.pre.alpha.PBNTR456fixedconftoastrailsautoclose5757 app/pb_kits/playbook/pb_rich_text_editor/TipTap/EditorButton.tsx
playbook_ui-14.12.0.pre.alpha.PBNTR456fixedconftoastrailsautoclose5754 app/pb_kits/playbook/pb_rich_text_editor/TipTap/EditorButton.tsx
playbook_ui-14.12.0.pre.alpha.PLAY1602lightboxoverlapnitrobugzindextoken5751 app/pb_kits/playbook/pb_rich_text_editor/TipTap/EditorButton.tsx
playbook_ui-14.12.0.pre.alpha.PBNTR456fixedconftoastrailsautoclose5738 app/pb_kits/playbook/pb_rich_text_editor/TipTap/EditorButton.tsx
playbook_ui-14.13.0.pre.rc.3 app/pb_kits/playbook/pb_rich_text_editor/TipTap/EditorButton.tsx
playbook_ui-14.12.0.pre.alpha.PLAY1865reactdatepickerreinitializingbug5732 app/pb_kits/playbook/pb_rich_text_editor/TipTap/EditorButton.tsx
playbook_ui-14.12.0.pre.alpha.PBNTR456fixedconftoastrailsautoclose5728 app/pb_kits/playbook/pb_rich_text_editor/TipTap/EditorButton.tsx
playbook_ui-14.12.0.pre.alpha.play1862buttondisabledlinkbug5716 app/pb_kits/playbook/pb_rich_text_editor/TipTap/EditorButton.tsx
playbook_ui-14.12.0.pre.alpha.play1862buttondisabledlinkbug5714 app/pb_kits/playbook/pb_rich_text_editor/TipTap/EditorButton.tsx
playbook_ui-14.13.0.pre.rc.2 app/pb_kits/playbook/pb_rich_text_editor/TipTap/EditorButton.tsx
playbook_ui-14.13.0.pre.rc.1 app/pb_kits/playbook/pb_rich_text_editor/TipTap/EditorButton.tsx
playbook_ui-14.13.0.pre.rc.0 app/pb_kits/playbook/pb_rich_text_editor/TipTap/EditorButton.tsx
playbook_ui-14.12.0.pre.alpha.advancedtablealignmentfixes5693 app/pb_kits/playbook/pb_rich_text_editor/TipTap/EditorButton.tsx