Sha256: cf8a9e70ff29017689735c14fcaa81d3912ca801cc79bc0593bd12b029bc7034

Contents?: true

Size: 772 Bytes

Versions: 18

Compression:

Stored size: 772 Bytes

Contents

/* @flow */

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

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

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

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

export default CircleIconButton

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
playbook_ui-4.10.0 app/pb_kits/playbook/pb_circle_icon_button/_circle_icon_button.jsx
playbook_ui-4.10.0.pre.alpha1 app/pb_kits/playbook/pb_circle_icon_button/_circle_icon_button.jsx
playbook_ui-4.9.0.pre.alpha1 app/pb_kits/playbook/pb_circle_icon_button/_circle_icon_button.jsx
playbook_ui-4.9.0 app/pb_kits/playbook/pb_circle_icon_button/_circle_icon_button.jsx
playbook_ui-4.8.2 app/pb_kits/playbook/pb_circle_icon_button/_circle_icon_button.jsx
playbook_ui-4.8.1 app/pb_kits/playbook/pb_circle_icon_button/_circle_icon_button.jsx
playbook_ui-4.7.1 app/pb_kits/playbook/pb_circle_icon_button/_circle_icon_button.jsx
playbook_ui-4.7.0 app/pb_kits/playbook/pb_circle_icon_button/_circle_icon_button.jsx
playbook_ui-4.6.1 app/pb_kits/playbook/pb_circle_icon_button/_circle_icon_button.jsx
playbook_ui-4.6.0 app/pb_kits/playbook/pb_circle_icon_button/_circle_icon_button.jsx
playbook_ui-4.5.2 app/pb_kits/playbook/pb_circle_icon_button/_circle_icon_button.jsx
playbook_ui-4.5.1 app/pb_kits/playbook/pb_circle_icon_button/_circle_icon_button.jsx
playbook_ui-4.5.0 app/pb_kits/playbook/pb_circle_icon_button/_circle_icon_button.jsx
playbook_ui-4.4.1 app/pb_kits/playbook/pb_circle_icon_button/_circle_icon_button.jsx
playbook_ui-4.4.0 app/pb_kits/playbook/pb_circle_icon_button/_circle_icon_button.jsx
playbook_ui-4.3.1 app/pb_kits/playbook/pb_circle_icon_button/_circle_icon_button.jsx
playbook_ui-4.3.0 app/pb_kits/playbook/pb_circle_icon_button/_circle_icon_button.jsx
playbook_ui-4.2.0 app/pb_kits/playbook/pb_circle_icon_button/_circle_icon_button.jsx