1.4.18 • Published 2 years ago
lgk v1.4.18
Projects that are using lgk
- thefink-asiw
- orange-asiw
- colorganize-with-react
- Neue St
- sm (Startmon)
- spongebob (Meme generator)
- html_bones
- tumblify
- skill-guide
- lgk-icons
- simon
Missing in list
Pill menu
The pill menu can get embedded in products and applications to have a nice bar, so the user can quickly see the other LGK projects.
There are two ways to use it: With old-school vanilla HTML / CSS / JavaScript and with React.
Directly
<!DOCTYPE html>
<html>
<head>
<!-- ... -->
<link rel="stylesheet" href="https://lib.lgkonline.com/pill-menu/style.min.css">
</head>
<body>
<!-- This is for the cookie message. If you don't set the legal link attr, it will get a default URL. -->
<div class="lgk-cookie-message cc_banner-wrapper" data-legal-link="./legal"></div>
<div class="lgk-pill">
<iframe class="lgk-pill-content" src=""></iframe>
</div>
<div class="lgk-pill-btn">
<span class="lgk-pill-icon"></span>
</div>
<div class="lgk-pill-wrapper"></div>
<!-- ... -->
<script src="https://lib.lgkonline.com/pill-menu/script.min.js"></script>
</body>
</html>
React
Install this package:
npm install -S lgk
Use it:
import React from "react";
import { LgkPillComponent } from "lgk";
class App extends React.Component {
render() {
return (
<div>
<LgkPillComponent legalLink="./link" black />
<div className="container">
<h1>Hello World</h1>
</div>
</div>
);
}
}
export default App;
1.4.18
2 years ago
1.4.4
5 years ago
1.4.3
5 years ago
1.4.2
5 years ago
1.4.1
5 years ago
1.4.0
5 years ago
1.3.0
5 years ago
1.2.3
7 years ago
1.2.2
7 years ago
1.2.1
7 years ago
1.2.0
7 years ago
1.1.3
7 years ago
1.1.2
7 years ago
1.1.1
7 years ago
1.1.0
7 years ago
1.0.10
7 years ago
1.0.9
7 years ago
1.0.8
7 years ago
1.0.7
7 years ago
1.0.6
7 years ago
1.0.5
7 years ago
1.0.4
7 years ago
1.0.3
7 years ago
1.0.2
7 years ago
1.0.1
7 years ago
1.0.0
7 years ago