Start sharing components as a team!Share components as a team!Join Bit to build your applications faster.Get Started Free

battery

v1.1.6arrow_drop_down
v1.1.6
STATUS
Passing
DOWNLOADS
8
LICENSE
MIT
VISIBILITY
Public
PUBLISHED
2 years ago
SIZE
1 KB
battery react icon
1 contributor
Install battery as a package?
Copied
npm i @bit/feathericons.react-feather.battery
Set Bit as a scoped registryLearn more
npm config set '@bit:registry' https://node.bit.dev
Files
battery.js
35 Lines(31 sloc)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
import React from 'react';
import PropTypes from 'prop-types';

const Battery = props => {
  const { color, size, ...otherProps } = props;
  return (
    <svg
      xmlns="http://www.w3.org/2000/svg"
      width={size}
      height={size}
      viewBox="0 0 24 24"
      fill="none"
      stroke={color}
      strokeWidth="2"
      strokeLinecap="round"
      strokeLinejoin="round"
      {...otherProps}
    >
      <rect x="1" y="6" width="18" height="12" rx="2" ry="2" />
      <line x1="23" y1="13" x2="23" y2="11" />
    </svg>
  );
};

Battery.propTypes = {
  color: PropTypes.string,
  size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
};

Battery.defaultProps = {
  color: 'currentColor',
  size: '24',
};

export default Battery;