@k8slens/lds-form
TypeScript icon, indicating that this package has built-in type declarations

0.40.3 • Public • Published

Lens Design System – React Form components

Documentation

Browse the documentation at lensapp.github.io/lens-design-system.

What is included?

ES Modules

  • ./lib/es/index.js - Main ES module
  • ./lib/es/ComponentName/ComponentName.js - Individual ES modules

CommonJS modules

  • ./lib/cjs/index.js - Main CommonJS module
  • ./lib/cjs/ComponentName/ComponentName.js - Individual CommonJS modules

Usage with React apps

  • run npm i -s @k8slens/lds @k8slens/lds-tokens
  • import @k8slens/lds-tokens/lib/web/font-imports.css in your React app to include fonts
  • import @k8slens/lds/index.css in your React app to include core styles
  • import @k8slens/lds-form/index.css in your React app to include form styles
  • Use in a component:
import { FormErrorComponent } from "@k8slens/lds-form";

export const Component = () => (
  <FormErrorComponent label="My Button" />
);

Readme

Keywords

none

Package Sidebar

Install

npm i @k8slens/lds-form

Weekly Downloads

127

Version

0.40.3

License

MIT

Unpacked Size

59 kB

Total Files

78

Last publish

Collaborators

  • mirantis_it
  • jakolehm
  • k8slens-bot