1
0
mirror of https://github.com/tabler/tabler.git synced 2026-08-08 04:12:26 +04:00
Files
tabler/docs/components/CdnImportPlugin.astro
T

20 lines
356 B
Plaintext

---
import { Code } from 'astro:components'
import { site } from '@shared/lib/site.ts'
interface Props {
plugins: string[]
}
const { plugins }: Props = Astro.props
---
<Code
lang="html"
code={plugins
.map((plugin) => {
return `<link rel="stylesheet" href="${site.cdnUrl}/dist/css/tabler-${plugin}.min.css" />`
})
.join('\n')}
/>