iTwin / iTwinUI-react

A react component library for iTwinUI.
https://github.com/iTwin/iTwinUI
Other
84 stars 23 forks source link

(maintenance) Add examples to monorepo #929

Closed mayank99 closed 1 year ago

mayank99 commented 1 year ago

Not required for v2 release but it would be nice to have more than just a vite playground in the monorepo. At minimum we should have one playground for Nextjs and one for Astro.

This will allow us to test things like export maps and CSS imports, as well as have an example to show our users, especially because setup in SSR environments is not self-explanatory. Nextjs requires using next-global-css and Astro requires adding @itwin/itwinui-css to vite.ssr.noExternal. Also ThemeProvider goes in very specific places to make SSR work so it would be nice to show.