🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

@fintraffic/fds-coreui-components-react

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@fintraffic/fds-coreui-components-react

React wrappers for Fintraffic Design System Core UI (Web) Components

0.1.3
latest
Source
npm
Version published
Weekly downloads
2
-50%
Maintainers
1
Weekly downloads
 
Created
Source

fds-coreui-components-react

React wrappers for Fintraffic Design System's Core UI Components.

Install

npm i --save @fintraffic/fds-coreui-components-react

Usage

Usage of React component wrappers.

The simplest way to import and register a React component is importing it directly from the @fintraffic/fds-coreui-components-react package.

import { FdsButton, FdsButtonVariant } from '@fintraffic/fds-coreui-components-react'
<FdsButton
  label="My Button"
  icon="plus"
  variant={FdsButtonVariant.primary}
  onClick={handleMyButtonClick}
/>

However this will cause all of the components to be loaded and registered (not just the ones you import).

NOTE: when using React, make sure to import from the @fintraffic/fds-coreui-components-react package (note the -react suffix) to get the React components. If you import from @fintraffic/fds-coreui-components you will get the native web components instead.

If you want to load and register only a specific component (and its internal dependencies) you can do so by importing from a component specific path:

import { FdsButton, FdsButtonVariant } from '@fintraffic/fds-coreui-components-react/dist/button.js'

Licencing

Copyright © Fintraffic 2024 Source code of this program is licensed under the EUPL v1.2

FAQs

Package last updated on 02 Apr 2024

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