@atlaskit/input

中文文档
8.0.9发布于 2023/04/21Apache-2.0ESM + CJS近 30 天下载 1842

Internal component used by field-base to create field-text. DO NOT USE DIRECTLY

此软件包已被标记为弃用

The package is deprecated and no longer actively maintained. Please use @atlaskit/textfield instead.

原始使用文档
文档目录7 节
  1. SingleLineTextInput
  2. SingleLineTextInput.value : string
  3. SingleLineTextInput.style : object
  4. SingleLineTextInput.isInitiallySelected : boolean
  5. SingleLineTextInput.isEditing : boolean
  6. SingleLineTextInput.onConfirm : function
  7. SingleLineTextInput.onKeyDown : function

Input

YOU SHOULD ALMOST DEFINITELY NOT BE USING THIS COMPONENT DIRECTLY. THE COMPONENT IS DEPRECATED AND NOT MAINTAINED ANYMORE

USE @atlaskit/textfield INSTEAD

SingleLineTextInput

A text input component with extremely basic styling that supports read/edit modes.

Designed for use within other components, e.g. for the read/edit views required by ak-inline-edit, or within table cells.

Note: In addition the props described below, all other props passed to this component will be forwarded to the underlying HTML 'input'. This allows change handlers, placeholders, etc, to be attached to it.

Kind: global variable

SingleLineTextInput.value : string

The value of the input field.

Kind: static property of SingleLineTextInput

SingleLineTextInput.style : object

Custom styles that will be applied to the read and edit views.

Typical use would be to specify a custom font size.

Kind: static property of SingleLineTextInput

SingleLineTextInput.isInitiallySelected : boolean

Whether the input text will initially be selected/highlighted.

Kind: static property of SingleLineTextInput Default: false

SingleLineTextInput.isEditing : boolean

Whether the component is in edit mode or read mode.

Kind: static property of SingleLineTextInput

SingleLineTextInput.onConfirm : function

Called when the user confirms input by pressing the enter key

Kind: static property of SingleLineTextInput

SingleLineTextInput.onKeyDown : function

Regular onKeyDown handler passed to the input

Kind: static property of SingleLineTextInput

版本与发布记录

@atlaskit/input 共发布 73 个版本,首次发布于 2017/01/30;过去 12 个月发布了 0 个版本。

版本发布日期距今
8.0.9latest2023/04/213 年前
8.0.82023/04/193 年前
8.0.72021/09/165 年前
8.0.62021/07/165 年前
8.0.52021/03/095 年前
8.0.42020/11/195 年前

关于 @atlaskit/input 的常见问题

@atlaskit/input 是什么?

Internal component used by field-base to create field-text. DO NOT USE DIRECTLY注意:该包已被作者标记为弃用——The package is deprecated and no longer actively maintained. Please use @atlaskit/textfield instead.

如何安装 @atlaskit/input?

在项目目录运行 npm install @atlaskit/input,或使用 pnpm add / yarn add / bun add。它还需要宿主项目提供 peer 依赖:react(^16.8.0)、react-dom(^16.8.0)、styled-components(^3.2.6)。npm 7 及以上与 pnpm 8 及以上默认会自动安装必需的 peer 依赖,Yarn 需要手动安装。

@atlaskit/input 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/atlaskit__input 是否存在。

@atlaskit/input 支持 ESM 还是 CommonJS?

同时提供 ES Module 与 CommonJS 入口,import 和 require() 都可以使用,打包工具会自动选择合适的版本。

@atlaskit/input 可以商用吗?

@atlaskit/input 使用 Apache-2.0 许可。宽松许可:允许商业使用、修改和再分发,并附带明确的专利授权;分发时需保留许可与 NOTICE 文件,修改过的文件要注明改动。以上为概括,不构成法律意见,请以许可原文为准。

@atlaskit/input 的下载量有多少?

根据 npm 官方下载统计,@atlaskit/input 在 2026/10/07 – 2026/11/05 这 30 天内被下载 1,842 次,日均约 61 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@atlaskit/input 还在维护吗?

最新版本 8.0.9 发布于 2023/04/21(3 年前);至今共发布 73 个版本,其中过去 12 个月发布了 0 个;首次发布于 2017/01/30。作者已将其标记为弃用,新项目建议寻找替代方案。