본문으로 건너뛰기

Tip Box

약 2 분

Tip Box

문서 작성시 팁과 주의사항을 표기하는 방법을 설명합니다.
공식 문서open in new window

기본 사용법

::: tip
This is a tip
:::

::: warning
This is a warning
:::

::: danger
This is a dangerous warning
:::

::: details
This is a details block, which does not work in IE / Edge
:::

다음과 같이 표기됩니다.

This is a tip

경고

This is a warning

위험

This is a dangerous warning

세부사항

This is a details block, which does not work in IE / Edge

응용

타입 우측에 타이틀명을 추가하여 기본 값을 변경합니다.

::: danger STOP
Danger zone, do not proceed
Go to [here](https://vuepress.vuejs.org/guide/markdown.html#:~:text=markdown.toc%20option.-,%23,-Custom%20Containers)
:::

::: details Click me to view the code
```js
console.log('Hello, VuePress!')
```
:::

STOP

Danger zone, do not proceed
Go to hereopen in new window

Click me to view the code
console.log('Hello, VuePress!')