Skip to content
This repository has been archived by the owner on Jul 16, 2022. It is now read-only.

Side-Bar is a customElement for creating sidebar on a webpage.

License

Notifications You must be signed in to change notification settings

anshu-krishna/Side-Bar-WebComponent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Side-Bar CustomElement

<side-bar> is a customElement for creating sidebar on a webpage.

Attributes:

<side-bar> has only one custom attribute

  • show

    When show attribute is present then the sidebar is visible else it is hidden.

Events:

<side-bar> emits two events

  • show

    This event is emitted when sidebar goes from hidden to visible.

  • hide

    This event is emitted when sidebar goes from visible to hidden.

Slots:

<side-bar> has two slots. Only one slot is a named slot.

  • title

    This slot corresponds to the sidebar's heading.

Example:

<sidebar show>
	<div slot="title">My Menu</div>
	The menu contents go here.
</sidebar>

About

Side-Bar is a customElement for creating sidebar on a webpage.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published