@sur-la-table/slt-ui
Sur La Table UI Library
Last updated 9 months 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 (6 months ago)
  • 1.3.3                                ...           latest (9 months ago)

54 Versions

  • 1.3.6-beta                                ...           6 months ago
  • 1.3.5-beta                                ...           6 months ago
  • 1.3.4-beta                                ...           7 months ago
  • 1.3.3                                ...           9 months ago
  • 1.3.2                                ...           9 months ago
  • 1.3.1                                ...           9 months ago
  • 1.3.0                                ...           9 months ago
  • 20180914.0.0-beta                                ...           10 months ago
  • 20180913.0.0-beta                                ...           10 months 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                                ...           a year ago
  • 0.0.28                                ...           a year ago
  • 0.0.27                                ...           a year ago
  • 0.0.26                                ...           a year ago
  • 0.0.25                                ...           a year ago
  • 0.0.24                                ...           a year ago
  • 0.0.23                                ...           a year ago
  • 0.0.22                                ...           a year ago
  • 0.0.21                                ...           a year ago
  • 0.0.20                                ...           a year ago
  • 0.0.19                                ...           a year ago
  • 0.0.18                                ...           a year ago
  • 0.0.17                                ...           a year ago
  • 0.0.16                                ...           a year ago
  • 0.0.15                                ...           a year ago
  • 0.0.14                                ...           a year ago
  • 0.0.13                                ...           a year ago
  • 0.0.12                                ...           a year ago
  • 0.0.11                                ...           a year ago
  • 0.0.10                                ...           a year ago
  • 0.0.9                                ...           a year ago
  • 0.0.8                                ...           a year ago
  • 0.0.7                                ...           a year ago
  • 0.0.6                                ...           a year ago
  • 0.0.5                                ...           a year ago
  • 0.0.4                                ...           a year ago
  • 0.0.3                                ...           a year ago
  • 0.0.2                                ...           a year ago
  • 0.0.1                                ...           a year ago
  • 0.0.0                                ...           a year ago
Downloads
Today 54
This Week 54
This Month 56
Last Day 0
Last Week 2
Last Month 0
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |