You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

@ds-kit/textfield

Package Overview
Dependencies
Maintainers
3
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ds-kit/textfield

Textfield component

3.1.1
latest
npmnpm
Version published
Weekly downloads
7
-12.5%
Maintainers
3
Weekly downloads
 
Created
Source

title: "Textfield" slug: "/packages/textfield" category: "control" componentNames:

  • "Textfield"

Textfield

The Textfield is a type of input field that users can type into.

import Textfield from "@ds-kit/textfield"

Basic Example

<Textfield />

Sizing

You can change the size of the text field to one of three sizes: sm, md, lg. The default size is size="md".

<>
  <Textfield size="sm" my="1rem" />
  <Textfield size="md" my="1rem" />
  <Textfield size="lg" my="1rem" />
</>

Shape

The textfield has rounded borders by default. You can change it to hafe fully round border by using the pill prop.

<Textfield pill />

Type

You can specify the type of textfield via the type prop. The default type is text.

<Textfield type="email" placeholder="youremail@email.com" />

FAQs

Package last updated on 29 Oct 2019

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