Sha256: 6abba2d02efbfb1f3a74f1e56be7fed32b01f3429391ff838523ab570c44b4a0

Contents?: true

Size: 610 Bytes

Versions: 3

Compression:

Stored size: 610 Bytes

Contents

import React from 'react'
import {Button, Icon} from "../"

type CircleIconButtonProps = {
  variant?: 'primary' | 'secondary' | 'link',
  disabled?: Boolean,
  dark?: Boolean,
  className?: String,
  icon: String,
  id?: String,
};

const CircleIconButton = (props: CircleIconButtonProps) => {
  const {
    variant,
    disabled,
    icon,
    dark
  } = props

  return (
    <div className={'pb_circle_icon_button_kit'}>
      <Button text={null} variant={variant} disabled={disabled} dark={dark}>
        <Icon fixedWidth icon={icon} />
      </Button>
    </div>
  );
}

export default CircleIconButton;

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
playbook_ui-3.1.0 app/pb_kits/playbook/pb_circle_icon_button/_circle_icon_button.jsx
playbook_ui-3.0.1 app/pb_kits/playbook/pb_circle_icon_button/_circle_icon_button.jsx
playbook_ui-3.0.0 app/pb_kits/playbook/pb_circle_icon_button/_circle_icon_button.jsx