![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.
react-polymorph
Advanced tools
React Polymorph is a simple UI framework for React, that separates logic, markup and theming of components. It's powered by CSS Modules and harmoniously integrates with your webpack workflow, although you can use any other module bundler.
Separate monolithic React components into:
You already use a textarea component but need an advanced version with rich text editing toolbar in some cases …
however you also want to re-use the auto-resizing logic that is provided by the react-polymorph Textarea
component:
ExampleTextEditor.js
import TextArea from 'react-polymorph/lib/components/TextArea';
import TextAreaSkin from 'react-polymorph/lib/skins/simple/TextAreaSkin';
import MyRichTextAreaSkin from './components/MyRichTextAreaSkin';
export default (props) => (
<TextArea skin={props.canEditRichText ? MyRichTextAreaSkin : TextAreaSkin} />
);
The TextArea
component in this example only renders what is provided as skin
property, it does not
care about the details of its implementation. It handles the logic of auto-resizing the textarea without knowing
anything about the markup of the provided skin. To make this possible, the skin has to register certain skin
parts (elements) with the logic component:
MyRichTextAreaSkin.js
import TextArea from 'react-polymorph/lib/components/TextArea';
import RichTextEditingToolbar from './RichTextEditingToolbar';
export default (props) => (
<div>
<RichTextEditingToolbar />
<textarea ref={textarea => { props.component.registerSkinPart(TextArea.SKIN_PARTS.TEXT_AREA, textarea); }} />
</div>
);
more documentation coming soon …
FAQs
React components with highly customizable logic, markup and styles.
The npm package react-polymorph receives a total of 25 weekly downloads. As such, react-polymorph popularity was classified as not popular.
We found that react-polymorph 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.