Codync
무료 오픈소스 1:1 대안, Grok Bot과 Muse 대신
Heroicons for Svelte 5 외곽선과 채움 324개를 하나의 타입 컴포넌트로 검색하고 복사합니다
All 324 Heroicons for Svelte 5 in outline and solid, through one typed <Icon name> component or a tree-shakeable component per icon. Search and copy the code.
개발 도구Svelte · TypeScriptGitHub @krowten온라인운영자 미확인
써 보셨어요? 한 번만 눌러 주세요. 로그인은 필요 없어요.
아직 감지된 업데이트가 없습니다. GitHub 릴리스가 나오면 여기에 보입니다.
개인 계정의 공개 저장소 소유자는 GitHub로 로그인해 운영자를 확인하고 소개를 직접 관리할 수 있습니다. 관리자 승인은 필요하지 않습니다.
로그인한 뒤 확인 파일을 만들어 이 저장소의 기본 브랜치에 30분 안에 커밋해 주세요. 다른 브랜치나 포크의 파일은 인정하지 않습니다. 파일을 올린 뒤 아래에서 확인하면 관리자 승인 없이 관리할 수 있습니다. 자격을 유지하려면 파일을 남겨 두세요.
로그인이 필요하면 로그인 화면으로 이동합니다. 로그인 후 이곳으로 돌아와 원하는 확인 버튼을 다시 눌러 주세요.
프로젝트 폴더에서 /nomorevibe verify를 실행하면 소유권을 확인하고 소개를 직접 관리할 수 있습니다.
1분 만에 확인하기Heroicons for Svelte 5: all 324 outline and solid icons through one typed <Icon name> component or as tree-shakeable components
저장소 README에서 가져옴
README 전체를 불러오는 중입니다.
README 전문 보기 ↗Heroicons for Svelte 5: all 324 icons in the 24px outline and solid styles, through one typed <Icon name> component or as separate tree-shakeable components.
Search the icons and copy their code in the icon browser. Every icon has its own page there with the code and the raw SVG.
npm install @krowten/svelte-heroicons
Requires Svelte 5.
Render any icon with Icon and its heroicons name:
<script>
import { Icon } from '@krowten/svelte-heroicons';
</script>
<Icon name="beaker" class="size-6 text-blue-500" />
<Icon name="beaker" class="size-6 text-blue-500" solid />
name is typed as IconName, a union of all icon names, so a typo is a type error. Use the type for your own props:
<script lang="ts">
import { Icon, type IconName } from '@krowten/svelte-heroicons';
const { icon }: { icon: IconName } = $props();
</script>
<Icon name={icon} class="size-5" />
Icon includes all 324 icons, about 65 KB gzipped. If bundle size matters, import the icons you use as components instead; only those end up in your bundle:
<script>
import { BeakerIcon } from '@krowten/svelte-heroicons';
// or: import BeakerIcon from '@krowten/svelte-heroicons/icons/BeakerIcon.svelte';
</script>
<BeakerIcon class="size-6 text-blue-500" solid />
Component names are the heroicons names in PascalCase with an Icon suffix: arrow-up-tray is ArrowUpTrayIcon.
AI assistants can read llms.txt, or llms-full.txt with every icon name and its component.
| Prop | Type | Default | Description |
|---|---|---|---|
solid | boolean | false | Render the solid variant instead of outline. |
strokeWidth | number | string | 1.5 | Stroke width of the outline variant. |
name | IconName | — | Icon only: which icon to render. Required. |
Any other attribute or event handler (class, style, fill, onclick, …) is passed through to the <svg> element and overrides the defaults.
Icons use currentColor, so they take the text color of their parent or of a class like text-gray-500 in Tailwind CSS. Icons are 24×24 by default through width and height attributes, so they never collapse or stretch to fill their container; any CSS size, like class="size-5", takes precedence.
Icons are decorative by default and rendered with aria-hidden="true". Give an icon an aria-label (or aria-labelledby) and it is exposed to screen readers as an image instead:
<button>
<Icon name="trash" class="size-5" aria-label="Delete" />
</button>
bun install
bun run dev # the site at http://localhost:5173
bun run generate # regenerate src/lib from the installed heroicons package
bun run test # generated files check, unit and component tests, e2e
bun run check # svelte-check
bun run lint
The files in src/lib/icons/, src/lib/icon-set.ts and src/lib/index.ts are generated from node_modules/heroicons. After updating heroicons, run bun run generate and commit the result. Component tests run in Chromium; install it once with bunx playwright install chromium.
bun run build builds both the site (build/) and the package (dist/). The site's own code lives in src/routes and src/site, outside the package. Every push to main deploys it to GitHub Pages (.github/workflows/pages.yml).
To release, set version in package.json, move the CHANGELOG entries under it and push a v<version> tag. .github/workflows/release.yml runs the tests and stages the release on npm with provenance; it goes live once approved on npmjs.com.
MIT © Vladimir Kraikovskii. Icons are Heroicons by Tailwind Labs, MIT licensed.