Icons
Zeus Web provides a multi-framework icon package.
Install
bash
pnpm add @zeus-web/iconsReact
tsx
import { IconCheck, IconSearch } from '@zeus-web/icons/react'
export function Example() {
return (
<button aria-label="Search">
<IconSearch aria-hidden />
</button>
)
}Vue
vue
<script setup lang="ts">
import { IconCheck } from '@zeus-web/icons/vue'
</script>
<template>
<IconCheck aria-hidden="true" />
</template>Web Component
ts
import '@zeus-web/icons/wc'html
<zw-icon-check aria-hidden="true"></zw-icon-check>Raw SVG
ts
import checkIcon from '@zeus-web/icons/svg/check.svg'CLI
bash
zweb icon list
zweb icon search check
zweb icon show checkAI usage rules
- Use
@zeus-web/icons/reactin React examples. - Use
@zeus-web/icons/vuein Vue examples. - Use
@zeus-web/icons/wcin native Web Component examples. - Use
aria-hiddenfor decorative icons. - For icon-only buttons, put the accessible name on the button.