🚀 DAY 5 OF LAUNCH WEEK: Introducing Socket Firewall Enterprise.Learn more
Socket
Book a DemoInstallSign in
Socket

@nami-ui/textbox

Package Overview
Dependencies
Maintainers
2
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nami-ui/textbox

a input component.

latest
Source
npmnpm
Version
0.0.7
Version published
Maintainers
2
Created
Source

id: textbox title: TextBox subtitle: 文本框

用于输入一些简短的文本内容;

import { TextBox } from '@nami-ui/textbox'

export default () => {
  const [value, setValue] = useState('')

  return (
    <TextBox
      value={value}
      onChange={setValue}
      placeholder="Please enter some text ..."
    />
  )
}

占位符

通过设置 placeholder 属性,可以在文本框中值为空时显示一段占位文本(仅支持字符串):

import { TextBox } from '@nami-ui/textbox'

export default () => <TextBox placeholder="请输入一些文本" />

禁用

通过设置 disabled 属性,可以设置文本框为禁用状态:

import { TextBox } from '@nami-ui/textbox'

export default () => (
  <TextBox disabled defaultValue="disabled" />
)

Keywords

Input

FAQs

Package last updated on 31 Mar 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts