Download wp-calypso/packages/components/src/plan-price/docs/example.jsx from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 1.86 kB
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/packages/components/src/plan-price/docs/example.jsx
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/packages/components/src/plan-price/docs/example.jsx
-
curl -L -o example.jsx https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/packages/components/src/plan-price/docs/example.jsx
1.86 kB
| import PlanPrice from '../'; | |
| function PlanPriceExample() { | |
| return ( | |
| <div> | |
| <h3>Plan with standard price</h3> | |
| <PlanPrice rawPrice={ 99.8 } /> | |
| <br /> | |
| <h3>Plan with a price range</h3> | |
| <PlanPrice rawPrice={ [ 99.99, 139.99 ] } /> | |
| <br /> | |
| <h3>Plan with a price of '0'</h3> | |
| <PlanPrice rawPrice={ 0 } /> | |
| <br /> | |
| <h3>Plan with discounted price</h3> | |
| <div style={ { display: 'flex' } }> | |
| <PlanPrice rawPrice={ 8.25 } original /> | |
| <PlanPrice rawPrice={ 2 } discounted /> | |
| </div> | |
| <br /> | |
| <h3>Plan with discounted price range</h3> | |
| <div style={ { display: 'flex' } }> | |
| <PlanPrice rawPrice={ [ 8.25, 20.23 ] } original /> | |
| <PlanPrice rawPrice={ [ 2.25, 3 ] } discounted /> | |
| </div> | |
| <br /> | |
| <h3>Plan with discounted price and tax</h3> | |
| <div style={ { display: 'flex' } }> | |
| <PlanPrice rawPrice={ 8.25 } original taxText="10%" /> | |
| <PlanPrice rawPrice={ 2 } discounted taxText="10%" /> | |
| </div> | |
| <br /> | |
| <h3>Plan with discounted price range and tax</h3> | |
| <div style={ { display: 'flex' } }> | |
| <PlanPrice rawPrice={ [ 8.25, 20.23 ] } original taxText="10%" /> | |
| <PlanPrice rawPrice={ [ 2.25, 3 ] } discounted taxText="10%" /> | |
| </div> | |
| <br /> | |
| <h3>Simple View (isInSignup) - Plan with discounted price and tax </h3> | |
| <div style={ { display: 'flex' } }> | |
| <PlanPrice rawPrice={ 8.25 } original taxText="10%" isInSignup /> | |
| <PlanPrice rawPrice={ 2 } discounted taxText="10%" isInSignup /> | |
| </div> | |
| <br /> | |
| <h3>Simple View (isInSignup) - Plan with discounted price range and tax </h3> | |
| <div style={ { display: 'flex' } }> | |
| <PlanPrice rawPrice={ [ 8.25, 20.23 ] } original taxText="10%" isInSignup /> | |
| <PlanPrice rawPrice={ [ 2.25, 3 ] } discounted taxText="10%" isInSignup /> | |
| </div> | |
| </div> | |
| ); | |
| } | |
| PlanPriceExample.displayName = 'PlanPrice'; | |
| export default PlanPriceExample; | |