@scalar/api-reference 1.2.7 → 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # @scalar/api-reference
2
2
 
3
+ ## 1.3.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 37b974c: feat: expose footer slot on standalone component
8
+
9
+ ### Patch Changes
10
+
11
+ - b77d087: feat: add a customCss property to the configuration object
12
+
3
13
  ## 1.2.7
4
14
 
5
15
  ### Patch Changes
package/README.md CHANGED
@@ -107,12 +107,20 @@ Whether the sidebar should be shown.
107
107
  <ApiReference :configuration="{ showSidebar: true} />
108
108
  ```
109
109
 
110
- #### footerBelowSidebar?: boolean
110
+ ### customCss?: string
111
111
 
112
- Whether the footer should be below the content or below both the content _and_ the sidebar.
112
+ You can pass custom CSS directly to the component. This is helpful for the integrations for Fastify, Express, Hono and others where you it’s easier to add CSS to the configuration.
113
+
114
+ In Vue or React you’d probably use other ways to add custom CSS.
113
115
 
114
116
  ```vue
115
- <ApiReference :configuration="{ footerBelowSidebar: true} />
117
+ <script setup>
118
+ const customCss = `* { font-family: "Comic Sans MS", cursive, sans-serif; }`
119
+ </script>
120
+
121
+ <template>
122
+ <ApiReference :configuration="{ customCss }" />
123
+ </template>
116
124
  ```
117
125
 
118
126
  #### searchHotKey?: string