@basementuniverse/e2
v1.5.4
Published
A set of web components for building game editors.
Readme
E2 - Editor Elements
A lightweight, portable collection of custom HTML elements designed for building desktop-like web applications such as level editors, sprite editors, and similar development tools.
Quick Start
Using in HTML (CDN/Direct)
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>My App</title>
<link rel="stylesheet" href="main.css" />
<script src="e2.min.js"></script>
</head>
<body>
<main>
<e2-app id="my-app" theme="dark">
<!-- Your app UI -->
</e2-app>
</main>
</body>
</html>Using with NPM/Webpack/TypeScript
npm install @basementuniverse/e2import '@basementuniverse/e2';Components
- App
- Toolbar
- Toolbar Menu
- Context Menu
- Collapsible Panel
- Split Panel
- Tabs
- Dialog
- Notifications
- Status Bar
- List View
- Tree View
- KeyValue Editor
Notes
Some useful additional libraries for building web-based editors:
Theming
All components support three theme modes:
light- Light themedark- Dark themeauto- System preference
