Skip to content

Commit 83e5bba

Browse files
authored
feat(copy icon): add generic copy icon (#2748)
1 parent e332bff commit 83e5bba

3 files changed

Lines changed: 61 additions & 0 deletions

File tree

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
// @flow
2+
/* eslint-disable react/jsx-sort-props */
3+
import * as React from 'react';
4+
import * as vars from '../../styles/variables';
5+
import AccessibleSVG from '../../icons/accessible-svg';
6+
import type { Icon } from '../../icons/flowTypes';
7+
8+
/**
9+
* This is an auto-generated component and should not be edited
10+
* manually in contributor pull requests.
11+
*
12+
* If you have problems with this component:
13+
* - https://github.com/box/box-ui-elements/issues/new?template=Bug_report.md
14+
*
15+
* If there are missing features in this component:
16+
* - https://github.com/box/box-ui-elements/issues/new?template=Feature_request.md
17+
*/
18+
19+
const GenericCopy16 = (props: Icon) => (
20+
<AccessibleSVG width={16} height={16} viewBox="0 0 16 16" {...props}>
21+
<path fill={vars.bdlGray} d="M13 3c.557 0 .942.345.994.875L14 4v11H4V3h9zm0 1H5v10h8V4zm-2-3v1H3v10H2V1h9z" />
22+
</AccessibleSVG>
23+
);
24+
25+
export default GenericCopy16;
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import * as React from 'react';
2+
3+
import GenericCopy16 from './GenericCopy16';
4+
5+
export const genericCopy16 = () => <GenericCopy16 />;
6+
7+
export default {
8+
title: 'Icon|Line|GenericCopy16',
9+
component: GenericCopy16,
10+
parameters: {
11+
notes: "`import GenericCopy16 from 'box-ui-elements/es/icon/line/GenericCopy16';`",
12+
},
13+
};

src/icon/line/GenericCopy16.tsx

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
/* eslint-disable react/jsx-sort-props */
2+
import * as React from 'react';
3+
import * as vars from '../../styles/variables';
4+
import AccessibleSVG, { SVGProps } from '../../components/accessible-svg/AccessibleSVG';
5+
6+
/**
7+
* This is an auto-generated component and should not be edited
8+
* manually in contributor pull requests.
9+
*
10+
* If you have problems with this component:
11+
* - https://github.com/box/box-ui-elements/issues/new?template=Bug_report.md
12+
*
13+
* If there are missing features in this component:
14+
* - https://github.com/box/box-ui-elements/issues/new?template=Feature_request.md
15+
*/
16+
17+
const GenericCopy16 = (props: SVGProps) => (
18+
<AccessibleSVG width={16} height={16} viewBox="0 0 16 16" {...props}>
19+
<path fill={vars.bdlGray} d="M13 3c.557 0 .942.345.994.875L14 4v11H4V3h9zm0 1H5v10h8V4zm-2-3v1H3v10H2V1h9z" />
20+
</AccessibleSVG>
21+
);
22+
23+
export default GenericCopy16;

0 commit comments

Comments
 (0)