Skip to content

Commit

Permalink
docs(preset-attributify): add astro attributify shims.d.ts (#1458)
Browse files Browse the repository at this point in the history
* docs: add astro attributify shims.d.ts

* chore(example-astro): miss title prop value

Co-authored-by: chris-zhu <1633711653@qq.com>
  • Loading branch information
Soya-xy and zyyv committed Aug 23, 2022
1 parent 545f783 commit 47a0905
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion examples/astro/src/pages/foo.astro
Expand Up @@ -3,7 +3,7 @@ import Layout from '../layouts/Layout.astro';
import Card from '../components/Card.astro';
---

<Layout>
<Layout title="Foo Page">
<div class="text-center text-lg mt-10">Foo</div>
<ul role="list" class="link-card-grid">
<Card
Expand Down
12 changes: 12 additions & 0 deletions packages/preset-attributify/README.md
Expand Up @@ -186,6 +186,18 @@ declare global {
}
```

### Astro

```ts
import type { AttributifyAttributes } from '@unocss/preset-attributify'

declare global {
namespace astroHTML.JSX {
interface HTMLAttributes extends AttributifyAttributes { }
}
}
```

### Attributify with Prefix

```ts
Expand Down

0 comments on commit 47a0905

Please sign in to comment.