
Product
Introducing Webhook Events for Alert Changes
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.
@lightspeed/cirrus-flag
Advanced tools
A set of small and readable flags.
First, make sure you have been through the Getting Started steps of adding Cirrus in your application.
If using Yarn:
yarn add @lightspeed/cirrus-flag
Or using npm:
npm i -S @lightspeed/cirrus-flag
Flags as React components are automatically generated with a build script.
To see changes when adding/updating a flag, add your .svg in the svg folder,
navigate to this directory in the terminal, and run this command to re-generate the build:
yarn prepublish
This script will generate the React components and the Flag sprite.
Note that this command will be run automatically when in local development and when we publish to npm.
Import required styles in your .scss:
@import '@lightspeed/cirrus-flag/Flag.scss';
Color properties can be any Cirrus color token, ex
green-100or any CSS value.
| Prop | Type | Description |
|---|---|---|
code | string | ISO 3166-2 Country code (case is insensitive) |
name | string | Country / Region / Other name (case is insensitive) |
size | string | Default 16 by 12, can be set to any custom value, the height will scale to be 75% |
import React from 'react';
import Icon from '@lightspeed/cirrus-flag';
const MyComponent = () => (
<div>
<Flag code="CA" />
<Flag name="Canada" />
<Flag code="CA-QC" />
<Flag name="Quebec" />
<Flag code="nl" size="1.75rem" />
</div>
);
export default MyComponent;
FAQs
Cirrus Flag Component
We found that @lightspeed/cirrus-flag demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 9 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.

Product
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.

Security News
ENISA has become a CVE Program Root, giving the EU a central authority for coordinating vulnerability reporting, disclosure, and cross-border response.

Product
Socket now scans OpenVSX extensions, giving teams early detection of risky behaviors, hidden capabilities, and supply chain threats in developer tools.