Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
@freshworks/crayons
Advanced tools
Crayons is a library of UI components that help create an intuitive and uniform user interface for all your apps. This collection of Web components helps developers build apps that adhere to the UX standards set by the Freshworks Design System.
These components are designed to be used in traditional frontend view libraries/frameworks or on their own through traditional JavaScript in the browser.
Easiest way to start using Crayons is by adding a script tag to the CDN. More details here
<script
type="module"
src="https://cdn.jsdelivr.net/npm/@freshworks/crayons/dist/crayons/crayons.esm.js"
></script>
<script
nomodule
src="https://cdn.jsdelivr.net/npm/@freshworks/crayons/dist/crayons/crayons.js"
></script>
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/@freshworks/crayons/css/crayons-min.css"
/>
Any Crayons component added to the webpage will automatically load. This includes writing the component tag directly in HTML, or using JavaScript such as document.createElement('fw-button')
.
The @freshworks/crayons
package can be used in simple HTML, or by vanilla JavaScript without any framework at all. Crayons also provides framework bindings that make it easier to integrate Crayons into a framework such as React. (However, at the lowest-level framework bindings are still just using Crayons core and Web Components).
To use React wrapper use below:
import { FwButton } from '@freshworks/crayons/react';
For more information please check here
When generating components, the custom element tags is prefixed with fw-
while the rest of the name is modified to support web component standards. For example, if a component is generated with the name Label, the component name would be <fw-label>
.
Check out the CONTRIBUTE guide
Built with ❤ at Freshworks
FAQs
Crayons for Developer Platform
The npm package @freshworks/crayons receives a total of 8,645 weekly downloads. As such, @freshworks/crayons popularity was classified as popular.
We found that @freshworks/crayons demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 16 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
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.