-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
55 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
<img width="100%" alt="aws-iconic" src="https://github.com/unimu-cic/aws-iconic/assets/125171539/424cbe8b-d500-45cf-bcf4-8eb1c7d8b908"> | ||
|
||
# aws-iconic | ||
Library of AWS Icons based on official AWS icon assets, with support for React and Vue. | ||
|
||
## React | ||
To get started with the AWS Iconic library for React, first install the package from npm: | ||
```bash | ||
npm install @aws-iconic/react | ||
``` | ||
Then you can import and use the icons in your React components: | ||
```jsx | ||
import AnalyticsArchAmazonAthena from '@aws-iconic/vue/esm/analytics/arch-amazon-athena'; | ||
|
||
export default { | ||
components: { | ||
AnalyticsArchAmazonAthena | ||
}, | ||
template: ` | ||
<div> | ||
<!-- Use the icon component --> | ||
<AnalyticsArchAmazonAthena /> | ||
</div> | ||
` | ||
}; | ||
``` | ||
Here's how to group AWS icons in a React application: | ||
[![image](https://github.com/unimu-cic/aws-iconic/assets/125171539/1ab8135a-74c9-486f-9a6a-50ea5e21da37)](https://codesandbox.io/s/react-aws-iconic-dgyjtr) | ||
|
||
|
||
|
||
## Vue | ||
To incorporate AWS Iconic in your Vue projects, install the Vue-specific package from npm: | ||
```bash | ||
npm install @aws-iconic/vue | ||
``` | ||
|
||
Import icons as needed | ||
```jsx | ||
import AnalyticsArchAmazonAthena from '@aws-iconic/vue/esm/analytics/arch-amazon-athena'; | ||
|
||
export default { | ||
components: { | ||
AnalyticsArchAmazonAthena | ||
}, | ||
template: ` | ||
<div> | ||
<!-- Use the icon component --> | ||
<AnalyticsArchAmazonAthena /> | ||
</div> | ||
` | ||
}; | ||
``` | ||
Here's how to group AWS icons in a Vue application: | ||
[![image](https://github.com/unimu-cic/aws-iconic/assets/125171539/f04ecbb5-fb92-408a-943e-43e30d8c78b1)](https://codesandbox.io/s/vue3-aws-iconic-rpvw2n) |