Code Monkey home page Code Monkey logo

svelte_sidebar's People

Contributors

dependabot-preview[bot] avatar dependabot[bot] avatar kraftwurm avatar philipp-tailor avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

svelte_sidebar's Issues

Feature: Allow to customise active route matching

As user of the sidebar component, I want to easily use the sidebar when using query parameters and URL hashes in my application.

Currently, the sidebar will detect whether a navigation route is currently active in the application in SidebarLink.svelte with a straight equality comparison. This might not work well for applications which use query parameters and URL hashes in the application. Such applications could pass a cleaned activeUrl prop, but might prefer to customise the detection, which URL is active.
Users of the component could pass a new matchActiveUrl property.

Feature: add optional navigation route icon rendering.

As a user, I want to be able to quickly orient myself in the navigation sidebar. As a user, icons help me to grasp the navigation structure faster than by reading text.

Extend route object in the routes property with a property that, when being passed a URL, will render the URLs SVG as icon before a route link's name in NavigationLink.svelte.

Failed to resolve entry for package "svelte_sidebar"

Hello,

I am testing the latest version of the package 0.1.0. When I run the application with the new package it throw an error saying that it cant resolve svelte-sidebar. I think it could be related with the new version of package.json, there is a similar issue in the following github issue link. Any idea why this could be and how could be fixed?

indentjs/objectorarray#3

Terminal response when I try to run my application.


vite v2.9.5 dev server running at:

Local: http://localhost:3000/
Network: use --host to expose

ready in 291ms.

X [ERROR] [plugin vite:dep-scan] Failed to resolve entry for package "svelte_sidebar". The package may have incorrect main/module/exports specified in its package.json: Failed to resolve entry for package "svelte_sidebar". The package may have incorrect main/module/exports specified in its package.json.

front-end/src/components/Sidenav.svelte?id=0:4:24:
4 โ”‚ import Sidebar from 'svelte_sidebar'


Thank you.

Child routes default closed

As far as I could test, the child routes are all open as default, is there any way that the child tree could show closed as default?
Thanks for the library.

BUG: Sidebar is not fixed at the left side of the screen

Hi Mr. @philipp-tailor. I'm using sveltekit and did this...

import Sidebar from 'svelte_sidebar'

const props = {...}

<Sidebar {...props} />

...inside my __layout.svelte file. The sidebar is showing. But the problem is that when I put this Sidebar component (for example, at the top of my other elements and components), it just goes above all my other components; it doesn't get fixed at the side like what's shown in the playground site.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.