
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
styled-components-ui-library
Advanced tools
> concept to create an UI library with styled components and [Storybook](https://storybook.js.org)
concept to create an UI library with styled components and Storybook
Add the UI library to your project:
npm i styled-components-ui-library
# OR
yarn add styled-components-ui-library
Use it in your React components (example written in TypeScript):
import * as React from 'react';
import { Modal } from 'styled-components-ui-library';
class App extends React.Component<{}, {}> {
render() {
return (
<div className="App">
<Modal
title="Do you like this demo?"
text="Lorem ipsum dolor sit amet, consectetur adipiscing elit."
saveButtonClickHandler={() => null}
/>
</div>
);
}
}
export default App;
You can find a simple example here (bootstrapped with react-create-app): https://github.com/HenrikFricke/styled-components-ui-lib-consumer
# clone repo
git clone git@github.com:HenrikFricke/styled-components-ui-library.git
cd styled-components-ui-library
# install dependencies
yarn
# fire up storybook
yarn start
Visit: http://localhost:6006/
Push your changes to master and create a new GitHub release (based on semver). CircleCI is in place to push a new version to npm, it will also create and upload a new version of the react storybook.
FAQs
> concept to create an UI library with styled components and [Storybook](https://storybook.js.org)
The npm package styled-components-ui-library receives a total of 1 weekly downloads. As such, styled-components-ui-library popularity was classified as not popular.
We found that styled-components-ui-library demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.