Sha256: ac2f02e35aa0cdf31f2ddc77485833bab4da28d14ad193dcafb77f5398b7a36b

Contents?: true

Size: 700 Bytes

Versions: 9

Compression:

Stored size: 700 Bytes

Contents

/* @flow */

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
          dark={dark}
          disabled={disabled}
          text={null}
          variant={variant}
      >
        <Icon
            fixedWidth
            icon={icon}
        />
      </Button>
    </div>
  )
}

export default CircleIconButton

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
playbook_ui-4.1.2 app/pb_kits/playbook/pb_circle_icon_button/_circle_icon_button.jsx
playbook_ui-4.1.1 app/pb_kits/playbook/pb_circle_icon_button/_circle_icon_button.jsx
playbook_ui-4.1.0 app/pb_kits/playbook/pb_circle_icon_button/_circle_icon_button.jsx
playbook_ui-4.0.1 app/pb_kits/playbook/pb_circle_icon_button/_circle_icon_button.jsx
playbook_ui-4.0.0 app/pb_kits/playbook/pb_circle_icon_button/_circle_icon_button.jsx
playbook_ui-3.5.0 app/pb_kits/playbook/pb_circle_icon_button/_circle_icon_button.jsx
playbook_ui-3.4.0 app/pb_kits/playbook/pb_circle_icon_button/_circle_icon_button.jsx
playbook_ui-3.3.0 app/pb_kits/playbook/pb_circle_icon_button/_circle_icon_button.jsx
playbook_ui-3.2.0 app/pb_kits/playbook/pb_circle_icon_button/_circle_icon_button.jsx