@workday/canvas-kit-react
Version:
The parent module that contains all Workday Canvas Kit React components
13 lines (12 loc) • 583 B
JavaScript
import { jsx as _jsx } from "react/jsx-runtime";
import * as React from 'react';
import { TextInput } from '@workday/canvas-kit-react/text-input';
import { createComponent } from '@workday/canvas-kit-react/common';
import { GoToContext } from './useGoToForm';
export const GoToTextInput = createComponent('input')({
displayName: 'Pagination.GoToTextInput',
Component(elemProps, ref, Element) {
const { inputProps } = React.useContext(GoToContext);
return _jsx(TextInput, { ref: ref, as: Element, size: 1, width: 55, ...inputProps, ...elemProps });
},
});