Socket
Book a DemoInstallSign in
Socket

@times-components/article-flag

Package Overview
Dependencies
Maintainers
3
Versions
428
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@times-components/article-flag

The article flag (sponsored, new, updated, etc)

latest
Source
npmnpm
Version
2.12.7
Version published
Weekly downloads
16
Maintainers
3
Weekly downloads
 
Created
Source

Article Flag

Article flags are attached to an article like a label to indicate the article's status. There are some common statuses that are exported as components from this package, such as "new", "updated", "exclusive" or "sponsored", but the default component also takes a bespoke title prop to enable a bespoke status.

The flags are currently added to an article by an editor using the CMS. These flags "expire" server side.

Contributing

Please read CONTRIBUTING.md before contributing to this package

Running the code

Please see our main README.md to get the project running locally

Development

The code can be formatted and linted in accordance with the agreed standards.

yarn fmt
yarn lint

Testing

This package uses yarn (latest) to run unit tests on each platform with jest.

yarn test:web

Visit the official storybook to see our available article flag templates.

Keywords

react-native-web

FAQs

Package last updated on 12 Jan 2022

Did you know?

Socket

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.

Install

Related posts