![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
@planet/ui
Advanced tools
Planet UI is a library of simple React components made to help bootstrap new web apps. It follows the style of Planet Explorer and should be used in conjunction with the planet-css stylesheet reset and LESS variables package.
You can install Planet UI using npm:
$ npm install --save planet-css @planet/ui
Before you start using Planet UI components, you should be using React in your web project. Include the @planet/ui
package in your React app with import
or require
to use the individual components.
import React from 'react';
import createClass from 'create-react-class';
// require individual components
import Button from '@planet/ui/lib/button';
import Dropdown from '@planet/ui/lib/dropdown';
import Toggle from '@planet/ui/lib/toggle';
// ...or require the whole library and select components from it
import pui from '@planet/ui';
const Button = pui.Button;
const Dropdown = pui.Dropdown;
const Toggle = pui.Toggle;
const Component = createClass({
render: function() {
return (
<div className="pl-component">
<Button>Click me</Button>
<Dropdown items={['Option 1', 'Option 2', 'Option 3']}/>
<Toggle label="Toggle me"/>
</div>
);
}
});
export default Component;
In order for your components to look right, you'll also need to add a couple of lines to your app's main LESS file.
// import the planet-css variables and stylesheet reset
@import '../node_modules/planet-css/lib/main';
// import the compiled styles for each of the components that you want to use
@import (less) '../node_modules/@planet/ui/lib/button.css';
@import (less) '../node_modules/@planet/ui/lib/dropdown.css';
@import (less) '../node_modules/@planet/ui/lib/toggle.css';
And then you're done! Happy developing :)
FAQs
Reusable UI Component and Style library for Planet Apps built with React
The npm package @planet/ui receives a total of 2 weekly downloads. As such, @planet/ui popularity was classified as not popular.
We found that @planet/ui demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 9 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.