Socket
Socket
Sign inDemoInstall

@ws-serenity/text-inputs

Package Overview
Dependencies
7
Maintainers
3
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @ws-serenity/text-inputs

React text inputs (input and textarea) component library


Version published
Maintainers
3
Created

Readme

Source

Простейшие компоненты ввода TextArea и TextInput

Суть в отсутствии каких-либо "лишних стилей", что позволяет без проблем настраивать под любой проект.

interface BaseInputProps {
    // подпись к инпуту
    label?: string;
    // флаг для расположения подписи сверху
    topLabel?: boolean;
    // сообщение об ошибке
    error?: string;
    // отображать поле как обязательное (красная звездочка)
    showRequired?: boolean;
    // зарезервировать место для ошибки
    reserveSpaceForError?: boolean;
}

Сообщение об ошибке всегда располагается под ипутом. Чтобы разметка "не прыгала", используется флаг reserveSpaceForError.

Keywords

FAQs

Last updated on 08 Nov 2022

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc