Socket
Book a DemoInstallSign in
Socket

@dfds-ui/react-components

Package Overview
Dependencies
Maintainers
1
Versions
2671
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dfds-ui/react-components

Shared react components within DFDS

latest
npmnpm
Version
2.0.29
Version published
Weekly downloads
451
2.97%
Maintainers
1
Weekly downloads
 
Created
Source

react-components

Collection of React components

Install

Install with npm:

npm install --save @dfds-ui/react-components

Install with yarn:

yarn add @dfds-ui/react-components

Development

Naming conventions

PropValuesDescription
Sizesmall, medium, largeUse Size when a prop controls the size of the component. Use t-shirt styles for values.
Alignleft, right, centerUse Align when a prop controls the horizontal alignment of the component
Orientationhorizontal, verticalUse Orientation when a prop control the direction the component (or children) will expand
Variation(what makes sense)Use Variation when a component supports different variations.

A common problem when using yarn link is that you end of with multiple versions of packages (eg. react). This is because dependencies are resolved upwards from within the symlinked react-components folder.

webpack

If you are using webpack you can try setting resolve.symlinks to false in your webpack.config.js to only resolve dependencies from the apps node_modules folder.

Gatsby

Gatsby uses webpack under the hood, so in order to set resolve.symlinks add the following to the gatsby-node.js file

exports.onCreateWebpackConfig = ({ getConfig, actions, stage }) => {
  const config = getConfig()
  config.resolve.symlinks = false
  actions.replaceWebpackConfig(config)
}

FAQs

Package last updated on 24 Jun 2025

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