UNPKG

@workday/canvas-kit-react

Version:

The parent module that contains all Workday Canvas Kit React components

17 lines (16 loc) 915 B
import { jsx as _jsx } from "react/jsx-runtime"; import * as React from 'react'; import { createStencil, handleCsProp, px2rem } from '@workday/canvas-kit-styling'; import { createComponent } from '@workday/canvas-kit-react/common'; import { TextInput } from '@workday/canvas-kit-react/text-input'; import { GoToContext } from './useGoToForm'; export const paginationGoToTextInputStencil = createStencil({ base: { name: "48s2gv", styles: "box-sizing:border-box;min-width:3.4375rem;width:3.4375rem;" } }, "pagination-go-to-text-input-c73671"); 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, ...handleCsProp({ ...inputProps, ...elemProps }, paginationGoToTextInputStencil()) })); }, });