Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update astro-toc #10

Merged
merged 12 commits into from
Oct 26, 2023
Merged

update astro-toc #10

merged 12 commits into from
Oct 26, 2023

Conversation

theisel
Copy link
Owner

@theisel theisel commented Oct 26, 2023

  • Features added
    • Apply scoped styles
    • depth prop to set initial depth
  • Refactored code
    • maxDepth prop type - BREAKING
    • use prop defaults to <ul> - BREAKING use as prop to define list type
  • Fixes
    • tsconfig
    • repo url
  • Update README

- BaseProps
- UseComponentProps
`as` prop defaults to `unordered list`

BREAKING CHANGE: `as` prop needs to be defined when using custom component
Apply styles on first iteration
Add `use` prop to BaseProps to allow custom component with Classic render mode
Use `depth` prop to set initial depth

Closes #6
Change `maxDepth` prop type to `number`
Add `lib` to include field
@theisel theisel merged commit fea06de into main Oct 26, 2023
2 checks passed
@theisel theisel deleted the next--astro-toc branch October 26, 2023 20:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant