Skip to content

Commit 981a1b8

Browse files
committed
docs: back top
1 parent 43890bf commit 981a1b8

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

docs/en/api/config-theme.mdx

+14
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,20 @@ export default defineConfig({
304304

305305
## backTop
306306

307+
:::tip
308+
To enable the back top, you need to install dependencies `@iconify-json/carbon`
309+
310+
```bash
311+
# npm
312+
npm install @iconify-json/carbon -D
313+
# yarn
314+
yarn add @iconify-json/carbon -D
315+
# pnpm
316+
pnpm add @iconify-json/carbon -D
317+
```
318+
319+
:::
320+
307321
- Typs: `boolean`
308322
- Default: `true`
309323

docs/zh/api/config-theme.mdx

+14
Original file line numberDiff line numberDiff line change
@@ -296,6 +296,20 @@ export default defineConfig({
296296

297297
## backTop
298298

299+
:::tip
300+
开启返回顶部功能需要安装依赖`@iconify-json/carbon`
301+
302+
```bash
303+
# npm
304+
npm install @iconify-json/carbon -D
305+
# yarn
306+
yarn add @iconify-json/carbon -D
307+
# pnpm
308+
pnpm add @iconify-json/carbon -D
309+
```
310+
311+
:::
312+
299313
- Typs: `boolean`
300314
- Default: `true`
301315

0 commit comments

Comments
 (0)