![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
@paprika/data-field
Advanced tools
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
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
yarn add @paprika/data-field
or with npm:
npm install @paprika/data-field
Prop | Type | required | default | Description |
---|---|---|---|---|
children | node | true | - |
Prop | Type | required | default | Description |
---|---|---|---|---|
value | [string,number] | true | - | The value to be localize |
align | [ DataField.types.align.LEFT, DataField.types.align.RIGHT, DataField.types.align.CENTER] | false | DataField.types.align.RIGHT | Text alignment for the number default is right |
intl | object | false | {} | The window.Intl.numberFormat option object https://mzl.la/3iW0ioQ |
currency | string | false | null | When passing a currency string as 'EUR' or 'JPY' will display the correct currency symbol, is a short version instead of using the intl prop. |
color | string | false | null | Add a color to the number, accept any kind of html color #F60, rgba(100,100,100, 0.5), etc. |
hasOnlyRadixSeparator | bool | false | true | Controls 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.
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
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
The npm package @paprika/data-field receives a total of 96 weekly downloads. As such, @paprika/data-field popularity was classified as not popular.
We found that @paprika/data-field demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 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
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.