diff --git a/website/src/repl/components/incrementor/Incrementor.jsx b/website/src/repl/components/incrementor/Incrementor.jsx index f03a98da..5f722fb7 100644 --- a/website/src/repl/components/incrementor/Incrementor.jsx +++ b/website/src/repl/components/incrementor/Incrementor.jsx @@ -16,7 +16,16 @@ function IncButton({ children, className, ...buttonProps }) { ); } -export function Incrementor({ onChange, value, min = -Infinity, max = Infinity, className, ...incrementorProps }) { +export function Incrementor({ + onChange, + value, + min = -Infinity, + max = Infinity, + className, + incrementLabel = 'next page', + decrementLabel = 'prev page', + ...incrementorProps +}) { value = parseInt(value); value = isNaN(value) ? '' : value; return ( @@ -37,12 +46,17 @@ export function Incrementor({ onChange, value, min = -Infinity, max = Infinity, {...incrementorProps} />