Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/enactjs/moonstone
https://github.com/enactjs/moonstone
Last synced: 24 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/enactjs/moonstone
- Owner: enactjs
- License: apache-2.0
- Created: 2020-01-09T19:33:49.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2024-04-29T06:15:16.000Z (8 months ago)
- Last Synced: 2024-04-29T20:06:36.729Z (8 months ago)
- Language: JavaScript
- Size: 18.4 MB
- Stars: 6
- Watchers: 20
- Forks: 3
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# @enact/moonstone [![npm (scoped)](https://img.shields.io/npm/v/@enact/moonstone.svg?style=flat-square)](https://www.npmjs.com/package/@enact/moonstone)
> The set of components for an Enact-based application targeting smart TVs.
## Usage
```
import kind from '@enact/core/kind';
import Button from '@enact/moonstone/Button';
import MoonstoneDecorator from '@enact/moonstone/MoonstoneDecorator';
import React from 'react';const MyApp = kind({
name: 'MyApp',
render: () => (Hello, Enact!)
});const MyMoonstoneApp = MoonstoneDecorator(MyApp);
export default MyMoonstoneApp;
```> Note: The moonstone decorator must be applied to the base component. This decorator also applies
`@enact/i18n/I18nDecorator`, `@enact/spotlight` and `@enact/ui/resolution` decorators.## Install
```
npm install --save @enact/moonstone
```## Test
Tests are implemented in mocha and are run with the Karma runner.
```
npm test
```## Let's create your own Moonstone App
The Enact CLI itself can install the moonstone template via NPM or git URI.
```
enact template install @enact/template-moonstone
```Once installed, you can specify the `moonstone` template during new application creation:
```
enact create -t moonstone MyApp
```## Copyright and License Information
Unless otherwise specified, all content, including all source code files and documentation files in this repository are:
Copyright (c) 2012-2024 LG Electronics
Unless otherwise specified or set forth in the NOTICE file, all content, including all source code files and documentation files in this repository are: Licensed under the Apache License, Version 2.0 (the "License"); you may not use this content except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.