Skip to content

Commit

Permalink
feat(ui-icons): add new AI icon
Browse files Browse the repository at this point in the history
TEST PLAN:
check if it looks OK in the docs
  • Loading branch information
matyasf authored and HerrTopi committed Aug 22, 2024
1 parent c395e17 commit 44b02ce
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 1 deletion.
1 change: 0 additions & 1 deletion packages/ui-icons-build/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ npm install --dev @instructure/ui-icons-build

## Requirements

- Node >= 8
- Mac OSX

[npm]: https://img.shields.io/npm/v/@instructure/ui-icons-build.svg
Expand Down
11 changes: 11 additions & 0 deletions packages/ui-icons/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ npm install @instructure/ui-icons
To use the React components:

```js
---
type: code
---
import { IconAddLine } from '@instructure/ui-icons'

const MyComponent = () => {
Expand All @@ -36,6 +39,10 @@ const MyComponent = () => {
- Double-check that the SVG size is 1920x1920.

```html
---
type: code
---

<svg
width="1920"
height="1920"
Expand All @@ -50,6 +57,10 @@ const MyComponent = () => {
- The files cannot contain [clipping paths](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/clipPath)! Sadly, when the Designers export icons from Figma, most of the time they have a clipping path around the whole canvas. If the source code has them, manually refactor the code, e.g:

```html
---
type: code
---

// Before:
<svg
width="1920"
Expand Down
6 changes: 6 additions & 0 deletions packages/ui-icons/svg/Line/ai.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions packages/ui-icons/svg/Solid/ai.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 44b02ce

Please sign in to comment.