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

@paprika/data-field

Package Overview
Dependencies
Maintainers
4
Versions
123
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@paprika/data-field

Field Types package is a set of components that help the Table and DataGrid to enhance the cell property to display different value in a ease manner

  • 4.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
4
Created
Source

@paprika/data-field

Description

Field Types package is a set of components that help the Table and DataGrid to enhance the cell property to display different value in a ease manner

Installation

yarn add @paprika/data-field

or with npm:

npm install @paprika/data-field

Props

DataField

PropTyperequireddefaultDescription
childrennodetrue-

DataField.Numeric

PropTyperequireddefaultDescription
value[string,number]true-The value to be localize
align[ DataField.types.align.LEFT, DataField.types.align.RIGHT, DataField.types.align.CENTER]falseDataField.types.align.RIGHTText alignment for the number default is right
intlobjectfalse{}The window.Intl.numberFormat option object https://mzl.la/3iW0ioQ
currencystringfalsenullWhen passing a currency string as 'EUR' or 'JPY' will display the correct currency symbol, is a short version instead of using the intl prop.
colorstringfalsenullAdd a color to the number, accept any kind of html color #F60, rgba(100,100,100, 0.5), etc.
hasOnlyRadixSeparatorboolfalsetrueControls if the number should be display with full delimiter or only the decimal separators

#DataField

DataField component helps during your Table or DataGrid implementation providing you with small components that encapsulate specific stylings for specific types that adapts to our Design System.

Uses

Once the component is imported:

import DataField from "@paprika/data-field";

You can make use of different Fields in the following way:

/**
 *  Using the Numeric field. The following applies either for the <Table /> or <DataGrid /> component
 */

import DataField from "@paprika/data-field";

function App() {
  return <DataField.Numeric align={DataField.types.align.LEFT} currency="USD" number={1240} />;
}

FAQs

Package last updated on 06 Jan 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

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