mirror of
https://github.com/velocitatem/garlic.git
synced 2026-05-31 08:43:36 +00:00
@@ -56,7 +56,7 @@ And all is done!
|
||||
|
||||
## Astro
|
||||
|
||||
With Astro, you just need to import the `Garlic` and `Clove` components into your layout:
|
||||
install the package with `npm i garlic-astro`. With Astro, you just need to import the `Garlic` and `Clove` components into your layout:
|
||||
|
||||
```astro
|
||||
import {Garlic, Clove} from 'garlic-astro';
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
"dependencies": {
|
||||
"@astrojs/mdx": "^0.17.2",
|
||||
"astro": "^2.0.16",
|
||||
"garlic-astro": "file:../../../garlic-astro",
|
||||
"garlic-astro": "^0.0.1",
|
||||
"jsdom": "^21.1.0"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
"name": "garlic-astro",
|
||||
"version": "0.0.1",
|
||||
"type": "module",
|
||||
"author": "Daniel Alves Rosel",
|
||||
"homepage": "https://github.com/velocitatem/garlic/tree/main",
|
||||
"exports": {
|
||||
".": "./index.ts"
|
||||
},
|
||||
|
||||
@@ -1,8 +0,0 @@
|
||||
---
|
||||
// Write your component code in this file!
|
||||
export interface Props {
|
||||
prefix?: string;
|
||||
}
|
||||
---
|
||||
|
||||
<div>{Astro.props.prefix} My special component</div>
|
||||
Reference in New Issue
Block a user