MCPcopy
hub / github.com/JosephusPaye/Keen-UI

github.com/JosephusPaye/Keen-UI @v1.4.0 sqlite

repository ↗ · DeepWiki ↗ · release v1.4.0 ↗
4,177 symbols 13,563 edges 90 files 1,688 documented · 40%
README

Keen UI

Keen UI is a Vue.js UI library with a simple API, inspired by Google's Material Design.

Keen UI is not a CSS framework. Therefore, it doesn't include styles for a grid system, typography, etc. Instead, the focus is on interactive components that require Javascript. You should be able to use Keen UI with any page layout, structure, or CSS framework.

Documentation and demo

http://josephuspaye.github.io/Keen-UI/

Requirements

Optional

Browser support

IE 10+ (due to Flexbox support).

Installation

npm install keen-ui --save

Usage

CSS Reset

Before using Keen UI, ensure that the following CSS resets are applied to your site.

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-size: 100%;
}

You can add the reset to your stylesheet (before other styles). If you are using a CSS framework, check to see if the framework already includes a reset (most CSS frameworks do). The root font size set on <html> can be customized to globally resize the components.

ES6

Use as a Vue plugin (globally registers all components):

import Vue from 'vue';
import KeenUI from 'keen-ui';
import 'keen-ui/dist/keen-ui.css';

Vue.use(KeenUI);

new Vue({
    components: {
        // all Keen UI components already registered
    }
});

Use individual components:

import Vue from 'vue';
import { UiAlert, UiButton } from 'keen-ui';

new Vue({
    components: {
        UiAlert,
        UiButton
    }
});

Script tag

First, add a stylesheet link to the Keen UI CSS file in dist/keen-ui.min.css. Then, add a script tag pointing to dist/keen-ui.min.js after adding Vue.

If Keen UI detects the global Vue object, all components will be registered automatically. The components will also be made available globally via window.KeenUI.

Example:


<link rel="stylesheet" href="https://github.com/JosephusPaye/Keen-UI/raw/v1.4.0/path/to/keen-ui.min.css">





    <ui-button>Hello world!</ui-button>




<script src="https://github.com/JosephusPaye/Keen-UI/raw/v1.4.0/path/to/vue.js"></script>
<script src="https://github.com/JosephusPaye/Keen-UI/raw/v1.4.0/path/to/keen-ui.min.js"></script>
<script>
    new Vue({
        el: '#app',
        components: {
            // all Keen UI components already registered
        }
    });
</script>

Customization

You can customize many aspects of Keen UI, including theme colors, component sizes, default props, and more.

See Customization.

Using standalone components

Each component is built into a standalone file with the necessary CSS included. You can use these individual standalone components without importing the rest of the library. The standalone components are located in the lib/ folder.

NOTE: Standalone component files each contain their own dependencies, and many contain overlapping dependencies. As a result, using multiple standalone files may increase the size of your bundle due to duplicate code.

import Vue from 'vue';
import 'keen-ui/src/bootstrap'; // Required when using standalone components, should be imported only once in your project
import UiButton from 'keen-ui/lib/UiButton';

new Vue({
    components: {
        UiButton
    }
});

Licence

Keen UI is open source and released under the MIT Licence.

Copyright (c) 2019 Josephus Paye II.

PS: Made something cool with Keen UI? I would love to know! Tweet to me at @JosephusPaye.

Core symbols most depended-on inside this repo

o
called by 7814
docs/docs.bundle.js
n
called by 175
docs/docs.bundle.js
update
called by 140
lib/UiFab.js
r
called by 105
docs/docs.bundle.js
i
called by 87
docs/docs.bundle.js
xt
called by 72
docs/docs.bundle.js
a
called by 65
docs/docs.bundle.js
t
called by 48
docs/docs.bundle.js

Shape

Function 4,177

Languages

TypeScript100%

Modules by API surface

docs/docs.bundle.js363 symbols
lib/UiDatepickerCalendar.js198 symbols
lib/UiDatepicker.js198 symbols
lib/UiCalendar.js195 symbols
lib/UiSelect.js186 symbols
lib/UiToolbar.js182 symbols
lib/UiSnackbarContainer.js182 symbols
lib/UiSnackbar.js182 symbols
lib/UiIconButton.js182 symbols
lib/UiConfirm.js182 symbols
lib/UiButton.js182 symbols
lib/UiPopover.js178 symbols

Dependencies from manifests, versioned

autoprefixer6.5.4 · 1×
autosize3.0.20 · 1×
babel-core6.0.0 · 1×
babel-loader6.0.0 · 1×
babel-plugin-transform-object-rest-spread6.26.0 · 1×
babel-preset-env1.6.1 · 1×
cross-env3.0.0 · 1×
css-loader0.25.0 · 1×
deepmerge2.0.1 · 1×
eslint3.12.0 · 1×
eslint-config-xo0.17.0 · 1×
eslint-formatter-pretty1.1.0 · 1×

For agents

$ claude mcp add Keen-UI \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact