Skip to content

Commit

Permalink
chore: added docs
Browse files Browse the repository at this point in the history
  • Loading branch information
amritk committed May 24, 2024
1 parent 4aa4401 commit 3d61d04
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -193,11 +193,12 @@ Install them via `npm`:
npm install @scalar/api-reference
```

And import the `ApiReference` component to your app:
And import the `ApiReference` component and style to your app:

```vue
<script setup lang="ts">
import { ApiReference } from '@scalar/api-reference'
import '@scalar/api-reference/style.css'
</script>
<template>
Expand All @@ -218,6 +219,7 @@ We have created a client side wrapper in React:
```ts
import { ApiReferenceReact } from '@scalar/api-reference-react'
import '@scalar/api-reference-react/style.css'
import React from 'react'

function App() {
Expand Down Expand Up @@ -455,7 +457,7 @@ use aide::{
`go-scalar-api-reference` by [@MarceloPetrucio](https://github.com/MarceloPetrucio/) offers a convenient way to generate
API references in Go:

https://github.com/MarceloPetrucio/go-scalar-api-reference/
<https://github.com/MarceloPetrucio/go-scalar-api-reference/>

### Free Hosting

Expand Down
1 change: 1 addition & 0 deletions packages/api-reference-react/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ npm install @scalar/api-reference-react

```ts
import { ApiReferenceReact } from '@scalar/api-reference-react'
import '@scalar/api-reference-react/style.css'
import React from 'react'

function App() {
Expand Down
1 change: 1 addition & 0 deletions packages/api-reference/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ npm install @scalar/api-reference
```vue
<script setup>
import { ApiReference } from '@scalar/api-reference'
import '@scalar/api-reference/style.css'
</script>
<template>
Expand Down

0 comments on commit 3d61d04

Please sign in to comment.