Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/talves/astro-flex-components

Astro Starter (Typescript, fast-components)
https://github.com/talves/astro-flex-components

Last synced: about 2 months ago
JSON representation

Astro Starter (Typescript, fast-components)

Awesome Lists containing this project

README

        

# Astro Starter (Typescript, fast-components)

```
yarn create astro@latest -- --template minimal
// Use typescript with strict mode
yarn add @microsoft/fast-components @microsoft/fast-foundation @microsoft/fast-element
```

Add the config options to the `astro.config.mjs` for vite

```js
export default defineConfig({
vite: {
plugins: [],
rollupOptions: {
external: /^@microsoft\/fast-(element|components)/,
},
},
});
```

Add any client script imports on your page or in your layout to use the components

```html

import {
provideFASTDesignSystem,
fastCard,
fastButton,
} from "@microsoft/fast-components";

provideFASTDesignSystem().register(fastCard(), fastButton());

```