Update docs examples + Add Select component + Add Card, Base, Title classes

This commit is contained in:
venashial
2022-03-29 00:44:23 -07:00
parent 8c5bf55b51
commit 98baab4d03
41 changed files with 1374 additions and 849 deletions

View File

@@ -22,15 +22,14 @@ pnpm add omorphia
### Components
Import a component with:
```js
import { Button } from "omorphia"
```
Use a component by importing from `omorphia`. For example, use the [Button component](/components/Button) like so:
Then, use it in your HTML:
```svelte example
<script lang="ts">
import Button from "omorphia/components/Button.svelte"
</script>
```html
<Button color="primary">Click me!</Button>
<Button color="primary">I'm a button!</Button>
```
For more information on each component, check out the pages on the sidebar navigation.