@pikas-ui/multi-input-field

This package contains a multi input field component that can be used to put multiple values in a single input field.

Change Log

Requirements

To use this package, you must install the @pikas-ui/styles package.

Installation

You can install this package using npm, yarn, or pnpm.

npm install @pikas-ui/multi-input-field
yarn add @pikas-ui/multi-input-field
pnpm add @pikas-ui/multi-input-field

Usage

MultiInputField

This component is used to put multiple values in a single input field.

*

Eu est labore ea laborum laborum mollit non minim eu commodo.

import { MultiInputField } from '@pikas-ui/multi-input-field';

const Example: React.FC = () => {
  return (
    <MultiInputField
      label="Multi Input Field label"
      description="Eu est labore ea laborum laborum mollit non minim eu commodo."
      required
      id="multi-input-field"
      placeholder="Placeholder"
    />
  );
};

Props

Props extends InputHTMLAttributes<HTMLInputElement>

PropDescriptionTypeDefault
defaultValuesThe default-values of the componentstring[][]
cssThe css of the componentMultiInputFieldCSS-
idThe id of the componentstring-
labelThe label of the componentstring or ReactNode-
boxShadowThe box-shadow of the componentPikasShadow or 'none'"inner-md"
borderRadiusThe border-radius of the componentPikasRadius"md"
paddingThe padding of the componentMultiInputFieldPadding"md"
gapThe gap of the componentMultiInputFieldGap"sm"
fontSizeThe font-size of the componentPikasFontSize"em-base"
borderColorNameThe border-color-name of the componentPikasColor"transparent"
borderColorHexThe border-color-hex of the componentstring-
borderWidthThe border-width of the componentnumber0
colorNameThe color-name of the componentPikasColor-
colorHexThe color-hex of the componentstring-
placeholderColorNameThe placeholder-color-name of the componentPikasColor"black-light"
placeholderColorHexThe placeholder-color-hex of the componentstring-
backgroundColorNameThe background-color-name of the componentPikasColor"gray-lightest-1"
backgroundColorHexThe background-color-hex of the componentstring-
textErrorThe text-error of the componentstring-
onChangeThe on-change of the component(values: string[]) => void-
autoCompleteThe auto-complete of the componentstring-
LeftIconThe left-icon of the componentFC<IconProps>-
RightIconThe right-icon of the componentFC<IconProps>-
leftIconColorNameThe left-icon-color-name of the componentPikasColor-
leftIconColorHexThe left-icon-color-hex of the componentstring-
rightIconColorNameThe right-icon-color-name of the componentPikasColor-
rightIconColorHexThe right-icon-color-hex of the componentstring-
leftIconSizeThe left-icon-size of the componentnumber-
rightIconSizeThe right-icon-size of the componentnumber-
leftChildrenThe left-children of the componentReactNode-
rightChildrenThe right-children of the componentReactNode-
minThe min of the componentnumber-
maxThe max of the componentnumber-
outlineThe outline of the componentbooleantrue
descriptionThe description of the componentstring-
widthThe width of the componentnumber or string"100%"
maxWidthThe max-width of the componentnumber or string"100%"
minWidthThe min-width of the componentnumber or string-
infoThe info of the componentReactNode-
typeThe type of the componentMultiInputFieldType"text"
dataThe data of the componentDOMStringMap-

Contributing

This documentation can be edited on GitHub here