---
title: "Options"
description: "Options for the whole app, and functions."
canonical_url: "https://kukson777.github.io/boneprint/docs/api/options"
---
# Options

> Options for the whole app, and functions.

## Setting them

<code-group>

```ts [nuxt.config.ts]
export default defineNuxtConfig({
  modules: ['boneprint/nuxt'],
  boneprint: {
    reveal: 'sequence',
  },
})
```

```ts [main.ts (Vue)]
import { boneprint } from 'boneprint'

app.use(boneprint, { reveal: 'sequence' })
```

</code-group>

<table>
<thead>
  <tr>
    <th>
      Option
    </th>
    
    <th>
      Default
    </th>
    
    <th>
      Purpose
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        persist
      </code>
    </td>
    
    <td>
      <code>
        true
      </code>
    </td>
    
    <td>
      remember shapes between visits
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        debug
      </code>
    </td>
    
    <td>
      <code>
        false
      </code>
    </td>
    
    <td>
      outline every skeleton and report whether the page moved, see <a href="https://kukson777.github.io/boneprint/docs/guide/debugging">
        Debugging
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        reveal
      </code>
    </td>
    
    <td>
      <code>
        fade
      </code>
    </td>
    
    <td>
      how content replaces the skeleton: <code>
        fade
      </code>
      
      , <code>
        sequence
      </code>
      
       or <code>
        sweep
      </code>
    </td>
  </tr>
</tbody>
</table>

`persist` and `reveal` can also be set on one skeleton as props.

## forgetSkeletons()

Clears the remembered shapes. Whatever is on screen won't be written back, even as it unmounts. Call it on sign-out.

```ts
forgetSkeletons()
```

Auto-imported in Nuxt. In Vue, `import { forgetSkeletons } from 'boneprint'`, or add it to auto-imports as shown in [Vue + Vite](https://kukson777.github.io/boneprint/docs/getting-started/vue#auto-import).

## useInSkeleton()

`true` inside the copy of the slot a skeleton is measured from, `false` everywhere else. Use it to keep a component in the slot from fetching or observing twice, see [Side effects in the slot](https://kukson777.github.io/boneprint/docs/guide/markup#side-effects-in-the-slot).

```ts
const inSkeleton = useInSkeleton()
```

Auto-imported in Nuxt. In Vue, `import { useInSkeleton } from 'boneprint'`.

## Entry points

<table>
<thead>
  <tr>
    <th>
      Import
    </th>
    
    <th>
      For
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        boneprint/nuxt
      </code>
    </td>
    
    <td>
      the Nuxt module
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        boneprint
      </code>
    </td>
    
    <td>
      Vue: the components, <code>
        forgetSkeletons
      </code>
      
      , <code>
        useInSkeleton
      </code>
      
       and the <code>
        boneprint
      </code>
      
       plugin
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        boneprint/resolver
      </code>
    </td>
    
    <td>
      <code>
        boneprintResolver()
      </code>
      
       for <code>
        unplugin-vue-components
      </code>
    </td>
  </tr>
</tbody>
</table>


## Sitemap

See the full [sitemap](https://kukson777.github.io/boneprint/sitemap.md) for all pages.
