Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
@nib-components/prototype
Advanced tools
A single script and style bundle for prototyping. Includes react, react-dom and *almost* all our components.
A single script and style bundle for rapid prototyping. Includes react
, react-dom
and almost all our components.
Caution: NEVER use it in a real application!
Using it in production will add a lot of unnecessary bloat to your app and result in sub-optimal page-load times.
Create a new CodePen from our template CodePen.
<html class="flexbox">
<head>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>nib Prototype</title>
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Open+Sans:400,700,800|Roboto:300,400,700"/>
</head>
<body>
<div id="app"/>
<script src="https://unpkg.com/@nib-components/prototype/dist/prototype.js"></script>
<script type="text/babel">
ReactDOM.render(
<Padding all={6}>
<Heading size={1}>Hello World!</Heading>
<Margin top={3}>
<PrimaryButton>Click me!</Button>
</Margin>
</Padding>,
document.getElementById('app')
);
</script>
</body>
</html>
Packages that have a single default export will be accessible on the
window
using their display name e.g.@nib-components/heading
will be accessible viawindow.Heading
(or justHeading
)
Packages that do not have a single default export will be accessible on the
window
using their package name and will require a little extra effort to use with react e.g.@nib-components/table
will be accessible viawindow.table
(or justtable
and usable like:
const {Table, Row, Cell} = table;
<Table>...</Table>
When changes have been made to any of the components in the DLS, or a new component has been added to the DLS, this repo will require updating. To update this repo:
npm-check -u
is a helpful utility for updating package versions
Make sure you save the updated versions in
package.json
package.json
and increase the minor versionBumping the minor version also means resetting the patch version e.g.
0.2.3
to0.3.0
npm publish
unpkg.com
Settings > JavaScript
and update the version number in the URLUse the exact version number so existing CodePens will continue working regardless of recent breaking changes.
update
- bump all components to use monorepo components.update
- remove css dependency and bump all components to use styled-components versions.FAQs
A single script and style bundle for prototyping. Includes react, react-dom and *almost* all our components.
We found that @nib-components/prototype demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 89 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
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.