https://github.com/jill64/svelte-page-tab
🎹 Tab menu component that uses page as a state
https://github.com/jill64/svelte-page-tab
library menu routing svelte tab
Last synced: 9 months ago
JSON representation
🎹 Tab menu component that uses page as a state
- Host: GitHub
- URL: https://github.com/jill64/svelte-page-tab
- Owner: jill64
- License: mit
- Created: 2023-12-12T14:49:09.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2025-04-04T21:53:51.000Z (9 months ago)
- Last Synced: 2025-04-05T00:01:57.917Z (9 months ago)
- Topics: library, menu, routing, svelte, tab
- Language: Svelte
- Homepage: https://svelte-page-tab.jill64.dev
- Size: 1.62 MB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# svelte-page-tab
🎹 Tab menu component that uses page as a state
## [Demo](https://svelte-page-tab.jill64.dev)
## Installation
```bash
npm i svelte-page-tab
```
## Usage
```svelte
import { TabItems } from 'svelte-page-tab'
ul {
/* list styles */
}
ul :global(li) {
/* list item styles */
}
ul :global(a) {
/* list item link styles */
}
ul :global(a[data-current-location]) {
/* list item link (current location) styles */
}
```
## License
[MIT](LICENSE)