@workday/canvas-kit-react
Version:
The parent module that contains all Workday Canvas Kit React components
12 lines (11 loc) • 549 B
JavaScript
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 React.createElement(TextInput, { ref: ref, as: Element, size: 1, width: 55, ...inputProps, ...elemProps });
},
});