Skip to content

Commit

Permalink
feat(icons): add externalLink icon
Browse files Browse the repository at this point in the history
  • Loading branch information
claire2212 committed Sep 30, 2024
1 parent cccdcf3 commit 5e50157
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/assets/icons/ExternalLink.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 15 additions & 0 deletions src/icons/ExternalLink.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import { IconBox } from '../elements/IconBox'

import type { IconProps } from '../types/definitions'

export function ExternalLink({ color, size, title, ...nativeProps }: IconProps) {
return (
<IconBox $color={color} $size={size} title={title}>
<svg height="20" viewBox="0 0 20 20" width="20" {...nativeProps}>
<rect fill="none" height="20" width="20" />
<path d="M16,11v5H4V4H9V2H2V18H18V11Z" fill="currentColor" />
<path d="M18,2H11V4h3.586L9.793,8.793l1.414,1.414L16,5.414V9h2V2Z" fill="currentColor" />
</svg>
</IconBox>
)
}
2 changes: 2 additions & 0 deletions src/icons/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ import { Duplicate } from './Duplicate'
import { Edit } from './Edit'
import { EditUnbordered } from './EditUnbordered'
import { Expand } from './Expand'
import { ExternalLink } from './ExternalLink'
import { Favorite } from './Favorite'
import { FilledArrow } from './FilledArrow'
import { Filter } from './Filter'
Expand Down Expand Up @@ -124,6 +125,7 @@ export {
Edit,
EditUnbordered,
Expand,
ExternalLink,
Favorite,
FilledArrow,
Filter,
Expand Down

0 comments on commit 5e50157

Please sign in to comment.