
Security News
PEP 810 Proposes Explicit Lazy Imports for Python 3.15
An opt-in lazy import keyword aims to speed up Python startups, especially CLIs, without the ecosystem-wide risks that sank PEP 690.
@times-components/article-summary
Advanced tools
An article summary contains optional information about an article such as headline, summary, publication date, author and label. Some of these components are passed in as render props, and others are passed in as a config object, either containing props t
An article summary contains optional information about an article such as headline, summary, publication date, author and label. Some of these components are passed in as render props, and others are passed in as a config object, either containing props to be passed on to the appropriate component, or an Abstract Syntax Tree ("AST") which a component can handle by itself.
These components make up the core of an article summary and so, although not required, are made up of specific components.
DatePublication
component and
simply passes on the date props it receivesArticleLabel
or
VideoLabel
Components that can be specified by the consumer can be passed in as render props.
ArticleSummaryHeadline
lays out an accessible article headlineArticleSummaryContent
handles an AST, but is passed into the
summary as a render propArticleByline
or ArticleBylineWithLinks
Please read CONTRIBUTING.md before contributing to this package
Please see our main README.md to get the project running locally
The code can be formatted and linted in accordance with the agreed standards.
yarn fmt
yarn lint
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 summary templates.
We intend to roll out type checking (TypeScript) throughout the Times Components repo. The components that are allowed within article summary props will be controlled with TypeScript.
FAQs
An article summary contains optional information about an article such as headline, summary, publication date, author and label. Some of these components are passed in as render props, and others are passed in as a config object, either containing props t
The npm package @times-components/article-summary receives a total of 3,489 weekly downloads. As such, @times-components/article-summary popularity was classified as popular.
We found that @times-components/article-summary demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 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.
Security News
An opt-in lazy import keyword aims to speed up Python startups, especially CLIs, without the ecosystem-wide risks that sank PEP 690.
Security News
Socket CEO Feross Aboukhadijeh discusses the recent npm supply chain attacks on PodRocket, covering novel attack vectors and how developers can protect themselves.
Security News
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.