Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on Jul 21, 2025. It is now read-only.

IORoot/webcomponent-ldnpk-button

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

ldnpk-button WebComponent

This is a completely native javascript implementation of the component for the LondonParkour.com website. There are no dependencies for frameworks, react, vue, etc... and can be used in any HTML page.

How to use

You can load the javascript file like any normal javascript and then use the new tag on the page.

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <style>
	ldnpk-button {
	    --backgroundColour: #F3F4F6;
	    --foregroundColour: black;
	    --shadow:           0 4px 6px -1px rgb(0 0 0 / 0.1), 
                            0 2px 4px -2px rgb(0 0 0 / 0.1);
	  }
    </style>
    <ldnpk-button
        href="https://londonparkour.com"
        target="_self"
        rel="undefined"
        title="link"
        style="default"
        size="default">
        EXPLORE
    </ldnpk-button>

    <script src="./button.js"></script>

</body>
</html>

Storybook

You can use the button.stories.js file in storybook.js to dynamically describe the webcomponent.

Properties

  • title
  • label
  • target
  • rel
  • style
  • size
  • shadow

CSS Properties

  • --backgroundColour
  • --foregroundColour
  • --shadow

About

Custom vanilla WebComponent for the LondonParkour button.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
Morty Proxy This is a proxified and sanitized view of the page, visit original site.