Package Exports
- @salutejs/plasma-asdk
- @salutejs/plasma-asdk/es/index.js
- @salutejs/plasma-asdk/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@salutejs/plasma-asdk) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Библиотека компонентов Plasma ASDK
Реализация компонентов для создания веб-приложений.
Использование
Компоненты реализованы на typescript с помощью react и styled-components;
Использование данного пакета предполагает использование react & react-dom;
Использование styled-components на проект не обязательно, также как и использование typescript.
Но для того чтобы комопненты работали styled-components необходимо установить.
Установка пакета
$ npm install --save react react-dom
$ npm install --save styled-components
$ npm install --save @salutejs/plasma-asdk @salutejs/plasma-iconsИспользование компонентов
Все компоненты доступны из папки components или напрямую из пакета:
// App.tsx
import { Button } from '@salutejs/plasma-asdk';
export const App = () => {
return <Button>Hello, Plasma!</Button>;
};