• Docs
  • Blog
    • 0.24.0

    • Switch to dark mode
    Get Started
    Components
    Styling
    Theming

    Concepts

    OverviewCompositionTesting

    Layout

    Aspect RatioBleedBoxCenterContainerDividerFlexFloatGridLink OverlayScrollableStackWrap

    Components

    AccordionAdmonitionAvatarButtonCarouselCheckboxClipboardCollapsibleComboboxConfirm ModalCTAModalDate PickerDialogFieldFieldsetFile UploaderIcon ButtonInputLoading StatesMenuNotificationsNumber InputPin InputProgressPrompt ModalRadioRatingSelectSplit ButtonSwitchTableTabsTagTextTextareaToggleTooltip

    Utilities

    Feature FlagsForLocal StoragePortalShowsplitPropsTheme

    Input

    The Input component displays a text-based input field.

    • npm
    • source
    • recipe
    • Ark
    import {
    Field,
    Input,
    } from '@cerberus/react'

    Usage

    The Input component displays a text-based input field.

    We'll never share your email with anyone else.
    A name is required to submit this form. It replaces the helper text.
    This will help us learn more about you.0/300

    With Icons

    You can utilize the startIcon or endIcon props to add icons to the input.

    Customizing

    You can customize the input by passing styles directly into the component. The Input is a re-export of the FieldInput primitive.

    Custom Helper Text

    API

    Props

    The Input accepts the following props in addition to any native input props:

    NameDefaultDescription
    startIconAn ElementType to display at the start of the input
    endIconAn ElementType to display at the end of the input
    sizeThis size variant of the input

    The Input component also accepts any of the props from the FieldParts.Input primitive.

    On this page

    • Edit this page on Github
    Cerberus Design System | Docs