
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
suomifi-ui-components
Advanced tools
Suomi.fi-styleguide in React components. Living styleguide (latest release/master-branch).
Works with React >= 16.8.0 (React 18 supported) and Styled Components >= 5.2.1. Supports TypeScript. CJS and ESM builds provided via the npm package.
Operating system | Browsers | Screen reader |
---|---|---|
macOS | Safari, Chrome, Edge | VoiceOver |
Windows | Chrome, Firefox, Edge | NVDA |
iOS | Safari | VoiceOver |
Android | Chrome | TalkBack |
To install the component library
npm install suomifi-ui-components
Include required fonts as best suited for your project. You can, for example, use the following import with your global css.
@import url('https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600&display=swap');
The following fonts and variants are required: Font-family: 'Source Sans Pro', Font-weight: 300, 400, 600
You should also install the following peer dependencies.
React version >=16.8.0 and related dependencies and typings.
styled-components version >=5.2.1 and related dependencies and typings.
The aim is to keep dependencies up to date and use the latest available versions. We encourage you to use the latest available versions of peer dependencies.
npm install styled-components
If using TypeScript, version 3.8 or above is required.
In case TypeScript is used and skipLibCheck compiler option is set to false, also add typings for styled-components as well as react and react-dom as required by the React version used.
npm install @types/styled-components @types/react @types/react-dom
import { Button } from 'suomifi-ui-components';
<Button>Suomi.fi button</Button>;
Component variants
Components have a variant
property for different versions of the component.
import { Button } from 'suomifi-ui-components';
<Button variant="secondary">This is a seconday button</Button>;
Components' styles can be customized with Styled Components:
styled(Button)...
or using CSS-ClassName:
<Button className="button--custom">Example</Button>
.fi-button.button--custom {
...;
}
Don't use !important
. If really, really needed you can define styles using classNames multiple times .fi-button.button--custom.button--custom {...}
for a specificity hack.
See FAQ.md.
See DEVELOPMENT.md.
We welcome all contributions. Please read our CONTRIBUTING.md first.
MIT LICENSE
FAQs
Suomi.fi UI component library
The npm package suomifi-ui-components receives a total of 621 weekly downloads. As such, suomifi-ui-components popularity was classified as not popular.
We found that suomifi-ui-components demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 5 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.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.