Skip to content

Commit

Permalink
docs: Add props info in readme
Browse files Browse the repository at this point in the history
  • Loading branch information
hanyujie2002 committed Sep 20, 2024
1 parent aa2b230 commit 364ed30
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,15 @@ npx nuxi module add nuxt-toc
</template>
```

## Props

| **Prop** | **Type** | **Default** | **Description** |
|--------------------|----------|-------------|-----------------------------------------------------------------------------------------------------|
| `path` | String | `''` | The path to the content for which the TOC is generated. **If not set, `nuxt-toc` will default to using the current URI as the path**. |
| `isSubListShown` | Boolean | `true` | Determines whether the sublist within the TOC is shown. |
| `title` | String | `'Table of Contents'` | The title of the TOC. |
| `isSublistNested` | Boolean | `true` | Determines whether the sublist within the TOC is nested. |

## Styling

| **ID/Class** | **Type** | **Description** |
Expand Down

0 comments on commit 364ed30

Please sign in to comment.