Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions src/scratchpad/test_@iconify-vue/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# @iconify/vue Bare-Bones Demo

A minimal Vue 3 project demonstrating @iconify/vue usage.

## Setup

```bash
npm install
```

## Run

```bash
npm run dev
```

## Fix for CORS Errors

This project now uses **locally installed icon sets** instead of fetching from CDN, which prevents CORS errors. The icon JSON files are bundled with your app, so no network requests are needed.

## What This Demonstrates

1. **Basic Icons** - Simple icon usage with default size
2. **Sized Icons** - Custom width/height props
3. **Colored Icons** - Using the color prop
4. **Different Icon Sets** - Multiple icon libraries in one project

## Icon Format

Icons use the format: `{prefix}:{icon-name}`

Examples:
- `mdi:home` - Material Design Icons
- `fa:user` - Font Awesome
- `bi:github` - Bootstrap Icons
- `heroicons:home` - Hero Icons

## Find More Icons

Browse all available icons at: https://icon-sets.iconify.design/
12 changes: 12 additions & 0 deletions src/scratchpad/test_@iconify-vue/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Iconify Vue Demo</title>
</head>
<body>
<div id="app"></div>
<script type="module" src="/src/main.js"></script>
</body>
</html>
Loading