New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@yext/cobalt-core

Package Overview
Dependencies
Maintainers
106
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@yext/cobalt-core

Contains the Atoms, Molecules, Layout & other core components that make up the Cobalt UI library.

  • 0.1.10
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
106
Weekly downloads
 
Created
Source

Cobalt Core

This repo contains the immutable Cobalt components, namely the Atoms & Molecules.

Versioning

Versioning the commits correctly is extremely important. DO NOT modify the package.json or tags manually. Use yarn version -m [COMMIT MESSAGE] and specify the next logical version number. This will commit all changes & update both package.json AND the git tag.

SEMVAR

Use SEMVAR (semantic versioning)! There will be actual things using this repo as a dependency so SEMVAR matters!

For non-breaking changes (this means any repo can be upgraded without issues), increment the 3rd position. Ex. 0.0.1 -> 0.0.2 For breaking changes, increment the 2nd position. Ex. 0.1.0 -> 0.2.0 You should never need to increment the first position unless you are completely overhauling the cobalt system.

Usage

Soy

In your soy, simply call the components by their namespace and template name.

{call cobalt.molecules.Truncate data="all"}
  // Params here
{/call}

Sass

In your scss, you can import the sass modules at the directory level or by the indivdiual components.

Some examples:

  • Import all @import '~@yext/cobalt-core'

  • Import all molecules @import '~@yext/cobalt-core/molecules'

  • Import a single molecule @import '~@yext/cobalt-core/molecules/Truncate'

JS

import { Truncate } from "@yext/cobalt-core/molecules";
Truncate.init();

FAQs

Package last updated on 26 Sep 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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc