{"id":39487435,"url":"https://github.com/vtex-apps/formatted-price","last_synced_at":"2026-01-18T05:28:31.342Z","repository":{"id":42899994,"uuid":"204790208","full_name":"vtex-apps/formatted-price","owner":"vtex-apps","description":"Formatting utilities for displaying prices.","archived":false,"fork":false,"pushed_at":"2025-11-22T00:17:48.000Z","size":268,"stargazers_count":1,"open_issues_count":4,"forks_count":3,"subscribers_count":38,"default_branch":"master","last_synced_at":"2025-11-22T02:26:40.113Z","etag":null,"topics":["hacktoberfest","store-framework","vtex-io"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vtex-apps.png","metadata":{"files":{"readme":"docs/README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2019-08-27T21:03:59.000Z","updated_at":"2025-10-09T15:59:44.000Z","dependencies_parsed_at":"2025-09-29T22:35:40.213Z","dependency_job_id":null,"html_url":"https://github.com/vtex-apps/formatted-price","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/vtex-apps/formatted-price","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vtex-apps%2Fformatted-price","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vtex-apps%2Fformatted-price/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vtex-apps%2Fformatted-price/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vtex-apps%2Fformatted-price/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vtex-apps","download_url":"https://codeload.github.com/vtex-apps/formatted-price/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vtex-apps%2Fformatted-price/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28530817,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-18T00:39:45.795Z","status":"online","status_checked_at":"2026-01-18T02:00:07.578Z","response_time":98,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["hacktoberfest","store-framework","vtex-io"],"created_at":"2026-01-18T05:28:30.794Z","updated_at":"2026-01-18T05:28:31.335Z","avatar_url":"https://github.com/vtex-apps.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Price\n\n\u003e Formatting utilities for displaying prices.\n\n\u003ctable\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003ctd\u003e\n  \u003cimg width=\"60\" alt=\"free label\" src=\"https://user-images.githubusercontent.com/10223856/78281020-698c5900-74f0-11ea-96ae-c63d460e5f1c.png\"\u003e\n\u003c/td\u003e\n\u003ctd\u003e\n  \u003ccode\u003e\u0026lt;FormattedPrice value={0} /\u0026gt;\u003c/code\u003e\n\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\n  \u003cimg width=\"60\" alt=\"tbd label\" src=\"https://user-images.githubusercontent.com/10223856/78281021-6a24ef80-74f0-11ea-9ba4-aa0003c48ae4.png\"\u003e\n\u003c/td\u003e\n\u003ctd\u003e\n  \u003ccode\u003e\u0026lt;FormattedPrice value={null} /\u0026gt;\u003c/code\u003e\n\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\n  \u003cimg width=\"94\" alt=\"10 BRL label\" src=\"https://user-images.githubusercontent.com/10223856/78281024-6abd8600-74f0-11ea-92ff-ebe95f548016.png\"\u003e\n\u003c/td\u003e\n\u003ctd\u003e\n  \u003ccode\u003e\u0026lt;FormattedPrice value={10} /\u0026gt;\u003c/code\u003e\n\u003c/td\u003e\n\u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n\n## Usage\n\nTo use this app, you first need to add it in your `manifest.json` file, like so\n\n```json\n{\n  \"dependencies\": {\n    \"vtex.formatted-price\": \"0.x\"\n  }\n}\n```\n\n\u003e If you are using TypeScript, you may also want to run `vtex setup` after the step above\n\nNow you can import the component and use it\n\n```jsx\nimport React from 'react'\nimport { FormattedPrice } from 'vtex.formatted-price'\n\nconst ProductSummary = ({ productPrice }) =\u003e {\n  return (\n    \u003carticle\u003e\n      \u003ch3\u003eMy Awesome Product\u003c/h3\u003e\n\n      \u003cFormattedPrice value={productPrice} /\u003e\n    \u003c/article\u003e\n  )\n}\n```\n\n## Components\n\n### FormattedPrice\n\nResponsible for rendering and styling the value prop as a price\nwith the current store currency settings.\n\n#### Props\n\n| Prop name | Type | Required |\n| --- | --- | --- |\n| [`value`](#formattedprice-value) | `number` | `false` |\n\n##### FormattedPrice value\n\n`number | null | undefined`\n\nValue used in the formatting.\n\n### useFormattedPrice\n\n`(value: number | null | undefined) =\u003e string`\n\nUtility hook that formats the value parameter into a price string, using the\ncurrent store currency settings.\n\n## CSS Customization\n\nIn order to apply CSS customizations in this and other blocks, follow the instructions\ngiven in [this recipe](https://vtex.io/docs/recipes/style/using-css-handles-for-store-customization)\nregarding using CSS classes for store customization.\n\n| CSS Handle | Component |\n| --- | --- |\n| `price` | `FormattedPrice` |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvtex-apps%2Fformatted-price","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvtex-apps%2Fformatted-price","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvtex-apps%2Fformatted-price/lists"}