agrp.dev logo
Components
BadgeButtonCheckboxCollapseDatePickerIconIndicatorInputBasic usageSizesFull widthOther propsOther viewsHooks variantsKnown bugsMessageNotificationPaginationProgressRadioSelectSkeletonSwitchTabsTextAreaTimelineTooltipsTypography

Input

Alternative to basic HTML input

Basic usage

Sizes

Full width

Other props

isRound

Prefix & sufix

Other views

Floating label

Hooks variants

It's highly reccomended to use custom hooks instead default ones provided by this lib, for more info see know bugs section

import { Input, useInputChange, useInputClearable } from '@atlasgroup/react-atlantic';
import { wrap } from '@atlasgroup/react-wrap';
export const Inputs = {
Default: wrap(Input, useInputChange),
Clearable: wrap(Input, useInputClearable),
};

useInputChange

useInputClearable

Known bugs

  • useInputClearable clears value on input click
  • hooks do not accept nor pass props that are not handled by them
  • useInputFloatingLabel wraps useInputDefault nothing else
  • InputFloatingLabel label overlflows input value