0.0.2 • Published 2 years ago

@mayumi-org/toc v0.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

@mayumi-org/toc

install

pnpm i @mayumi-org/toc mayumi

usage

import React from 'react'
import { TOC } from '@mayumi-org/toc'

const headings = [
  { title: 'Intro', id: 'intro' },
  { title: 'Goals', id: 'goals' },
  { title: 'Functions', id: 'functions' },
  { title: 'Stacks', id: 'stacks' },
  { title: 'Get Started', id: 'get-started' },
  { title: 'Last', id: 'last' },
]

const Home = () => {
  return (
    <TOC css={{ position: 'fixed' }} headings={headings} />
  )
}

export default Home
0.0.2

2 years ago

0.0.1

2 years ago