A web component icon that works in all frameworks including Nuxt2, Nuxt3 and Next.js
npm install design-system-icons-anzbash
npm install design-system-icons-anz
یا
yarn add design-system-icons-anz
`
نحوه استفاده
این کامپوننت از استاندارد Web Components استفاده میکند و در تمام فریمورکها به یک شکل قابل استفاده است.
$3
`html
`
$3
`jsx
import 'design-system-icons-anz';
function MyComponent() {
return ;
}
`
$3
`vue
`
$3
`typescript
// در app.component.ts
import 'design-system-icons-anz';
@Component({
selector: 'app-root',
template: ' '
})
export class AppComponent {}
`
$3
در فایل plugins/webcomponents.client.js:
`js
import 'design-system-icons-anz';
`
و در nuxt.config.js:
`js
plugins: [
{ src: '~/plugins/webcomponents.client.js', mode: 'client' }
]
``