UNPKG

@yamada-ui/react

Version:

React UI components of the Yamada, by the Yamada, for the Yamada built with React and Emotion

48 lines (47 loc) 2.05 kB
import { ThemeProps, WithoutThemeProps } from "../../core/system/index.types.js"; import { Component, HTMLStyledProps } from "../../core/components/index.types.js"; import "../../core/index.js"; import { InputProps } from "../input/input.js"; import { InputAddonProps } from "../input/input-addon.js"; import { InputElementProps } from "../input/input-element.js"; import { InputGroupRootProps } from "../input/input-group.js"; import { NumberInputStyle } from "./number-input.style.js"; import { UseNumberInputProps } from "./use-number-input.js"; import "../../index.js"; import * as react2635 from "react"; //#region src/components/number-input/number-input.d.ts interface NumberInputProps extends Omit<WithoutThemeProps<InputProps, NumberInputStyle>, keyof UseNumberInputProps>, ThemeProps<NumberInputStyle>, UseNumberInputProps { /** * The props for the control element. */ controlProps?: NumberInputControlProps; /** * The props for the decrement button element. */ decrementProps?: NumberInputDecrementButtonProps; /** * The props for the end element. */ elementProps?: InputElementProps; /** * The props for the increment button element. */ incrementProps?: NumberInputIncrementButtonProps; /** * The props for the root element. */ rootProps?: InputGroupRootProps; } declare const NumberInputPropsContext: react2635.Context<Partial<NumberInputProps> | undefined>, useNumberInputPropsContext: () => Partial<NumberInputProps> | undefined; /** * `NumberInput` is a component used to obtain numeric input from the user. * * @see https://yamada-ui.com/docs/components/number-input */ declare const NumberInput: Component<"input", NumberInputProps>; interface NumberInputControlProps extends InputAddonProps {} type NumberInputIncrementButtonProps = HTMLStyledProps<"button">; type NumberInputDecrementButtonProps = HTMLStyledProps<"button">; //#endregion export { NumberInput, NumberInputProps, NumberInputPropsContext, useNumberInputPropsContext }; //# sourceMappingURL=number-input.d.ts.map