Security News
CISA Brings KEV Data to GitHub
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.
github.com/buttercup/ui
React UI Components used in Buttercup product series.
npm install
npm run storybook
Then head to http://localhost:6006/.
yarn add @buttercup/ui
# or
npm install @buttercup/ui --save
import { Button } from '@buttercup/ui';
const MyComponent = () => (
<Button danger>Delete</Button>
);
The password generator comes bundled in a popover, which can be used like so:
import { Generator } from "@buttercup/ui";
const Comp = () => (
<Generator
onGenerate={handleGenerated}
isOpen={isOpen}
>
<div>
<Button onClick={toggleGenerator}>
Generate Password
</Button>
</div>
</Generator>
);
If you just require the body of the generator, you can import GeneratorUserInterface
instead.
The indicator can be used like so:
import { Meter } from "@buttercup/ui";
const Comp = () => (
<Meter input={inputValue} />
);
Available as Button
.
TBA.
Available as Input
.
TBA.
Available as Center
.
TBA.
Available as SmallType
.
TBA.
Parts of this UI library are internationalised. You can find the translations at src/i18n/translations
. When adding new translations, make sure to update the index at src/i18n/translations/index.js
so that the language is made available.
To change the language, import changeLanguage
and call it with a 2-character language code, such as en
.
Run npm t
to execute the tests.
To update component snapshots run npm run test:updateSnapshots
.
FAQs
Unknown package
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
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.
Security News
Opengrep forks Semgrep to preserve open source SAST in response to controversial licensing changes.
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.