react-code-dataset / wp-calypso /packages /composite-checkout /src /components /checkout-next-step-button.tsx
react-code-dataset / wp-calypso /packages /composite-checkout /src /components /checkout-next-step-button.tsx
Download wp-calypso/packages/composite-checkout/src/components/checkout-next-step-button.tsx from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 592 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/packages/composite-checkout/src/components/checkout-next-step-button.tsx
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/packages/composite-checkout/src/components/checkout-next-step-button.tsx
-
curl -L -o checkout-next-step-button.tsx https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/packages/composite-checkout/src/components/checkout-next-step-button.tsx
592 Bytes
| import * as React from 'react'; | |
| import Button, { ButtonProps } from './button'; | |
| function CheckoutNextStepButton( { | |
| value, | |
| onClick, | |
| ariaLabel, | |
| ...props | |
| }: CheckoutNextStepButtonProps & ButtonProps & React.ButtonHTMLAttributes< HTMLButtonElement > ) { | |
| return ( | |
| <Button | |
| className="checkout-next-step-button" | |
| onClick={ onClick } | |
| buttonType="primary" | |
| aria-label={ ariaLabel } | |
| { ...props } | |
| > | |
| { value } | |
| </Button> | |
| ); | |
| } | |
| interface CheckoutNextStepButtonProps { | |
| value: React.ReactNode; | |
| onClick: () => void; | |
| ariaLabel: string; | |
| } | |
| export default CheckoutNextStepButton; | |