@sur-la-table/slt-ui
Sur La Table UI Library
Last updated a year ago by leonardmeagher2 .
GPL-2.0+ · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @sur-la-table/slt-ui 
SYNC missed versions from official npm registry.

SLT's component library

master develop
Travis 'master' build status Travis 'develop' build status

slt-ui is a high performance, asynchronous, component library that is compatible with legacy systems, for more details on that, see our main README.

To use it in your project, just do:

yarn add @sur-la-table/slt-ui

Then you can grab any component using:

import { Button } from '@sur-la-table/slt-ui';

This includes Material UI components and also slt-ui components.

For injecting into a legacy system, use React Habitat's syntax:

<div data-component="Card">
    <div data-component="Button">Yo</div>
</div>

To register these components with Habitat, run:

ComponentManifest.bootstrapper.update();

Note that this differs from React Habitat's method (window.updateHabitat();). Both are functionally the same, but we expose the low level bootstrapper to have access to more of Habitat's internal methods.

Also, unlike vanilla React Habitat you can have nested components.

Dynamically registering components:

First build the component:

yarn build dynamic-registration ./src/--REPLACE_WITH_COMPONENT_DIRECTORY--/index.js

Then in your frontend environment:

var slt_dynamic_registration = function(e){var t={};function n(r) ...
$('<div data-component="TestButton">This is a test button</div>').prependTo('body');
ComponentManifest.register(slt_dynamic_registration);

Current Tags

  • 1.3.6-beta                                ...           beta (9 months ago)
  • 1.3.3                                ...           latest (a year ago)

54 Versions

  • 1.3.6-beta                                ...           9 months ago
  • 1.3.5-beta                                ...           9 months ago
  • 1.3.4-beta                                ...           10 months ago
  • 1.3.3                                ...           a year ago
  • 1.3.2                                ...           a year ago
  • 1.3.1                                ...           a year ago
  • 1.3.0                                ...           a year ago
  • 20180914.0.0-beta                                ...           a year ago
  • 20180913.0.0-beta                                ...           a year ago
  • 20180829.0.0-beta                                ...           a year ago
  • 20180822.0.1-beta                                ...           a year ago
  • 20180813.0.1-beta                                ...           a year ago
  • 2018.8.1-3.beta.0                                ...           a year ago
  • 2018.8.10-beta.2                                ...           a year ago
  • 2018.8.10-beta                                ...           a year ago
  • 1.2.0                                ...           a year ago
  • 1.2.1                                ...           a year ago
  • 2018.7.30                                ...           a year ago
  • 1.1.0                                ...           a year ago
  • 1.0.0                                ...           a year ago
  • 2018.6.29-beta                                ...           a year ago
  • 2018.6.1-beta.2                                ...           a year ago
  • 2018.6.1-beta                                ...           a year ago
  • 0.0.30                                ...           a year ago
  • 0.0.29                                ...           2 years ago
  • 0.0.28                                ...           2 years ago
  • 0.0.27                                ...           2 years ago
  • 0.0.26                                ...           2 years ago
  • 0.0.25                                ...           2 years ago
  • 0.0.24                                ...           2 years ago
  • 0.0.23                                ...           2 years ago
  • 0.0.22                                ...           2 years ago
  • 0.0.21                                ...           2 years ago
  • 0.0.20                                ...           2 years ago
  • 0.0.19                                ...           2 years ago
  • 0.0.18                                ...           2 years ago
  • 0.0.17                                ...           2 years ago
  • 0.0.16                                ...           2 years ago
  • 0.0.15                                ...           2 years ago
  • 0.0.14                                ...           2 years ago
  • 0.0.13                                ...           2 years ago
  • 0.0.12                                ...           2 years ago
  • 0.0.11                                ...           2 years ago
  • 0.0.10                                ...           2 years ago
  • 0.0.9                                ...           2 years ago
  • 0.0.8                                ...           2 years ago
  • 0.0.7                                ...           2 years ago
  • 0.0.6                                ...           2 years ago
  • 0.0.5                                ...           2 years ago
  • 0.0.4                                ...           2 years ago
  • 0.0.3                                ...           2 years ago
  • 0.0.2                                ...           2 years ago
  • 0.0.1                                ...           2 years ago
  • 0.0.0                                ...           2 years ago
Downloads
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 1
Last Month 55
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |