Skip to content
Mizen UI
Docs

IntroductionInstallationCLIStylingFoundationsThemingCompositionIntegrationsAccessibilityFor agents

useCopyToClipboard

AccordionAspect RatioCardCollapsibleFrameGridGroupInlineScroll AreaSectionSeparatorSpacerStack

BlockquoteCitationCodeHeadingKbdLabelLinkTextVisually Hidden

ButtonButton GroupToggleToggle groupToolbar

CalendarCheckboxCheckbox groupComboboxDate pickerDate range pickerDate-Time InputFieldFieldsetFile UploadFormInputInput groupNumber fieldOTP FieldRadio groupSelectSliderSwitchTextareaTime Input

BreadcrumbMenubarNavigation MenuPaginationSegmented ControlStepperTabs

Alert dialogCommandContext MenuDialogDrawerMenuPopoverPreview CardSheetTooltip

AlertBadgeEmptyError StateMeterProgressSkeletonSpinnerStatus dotToast

Activity FeedAvatarAvatar GroupData TableListMetricOverflow ListProperty ListTableTokenTree

Area ChartBar ListCalendar HeatmapCategory ComparisonChart FrameChart LegendChart TooltipDistributionFunnelHeatmapMetric TrendPart-to-WholeProgress RingsRadar ChartRadial BarsSankey ChartScatter ChartScore GaugeTime Series

Diagram

AttachmentCarouselCode BlockLightboxMarkdownThumbnailTimestamp

Agent ThinkingApproval CardComposerConversationInline CitationMessageMessage ScrollerQuestion CardSourcesStreaming TextSuggestionTask ListTerminalTool Call

On this page

  • Preview
  • Usage
  • Anatomy
  • Examples
  • Public profile
  • Workspace search
  • Team feedback
  • Control sizes
  • Permissions and validation
  • Recommendations
  • Usage boundaries
  • API reference

Forms

Input group

Composes inputs and textareas with contextual prefixes, suffixes, and actions.

idle

Usage

import {
	InputGroup,
	InputGroupAddon,
	InputGroupInput,
	InputGroupText,
} from "@mizen-labs/ui";

Anatomy

The parts and how they nest, taken from the preview above.

<InputGroup>
	<InputGroupInput />
	<InputGroupAddon>
		<InputGroupText />
	</InputGroupAddon>
</InputGroup>

Examples

Public profile

Prefixes and suffixes stay attached to their field.

Workspace search

Team feedback

Control sizes

Permissions and validation

Recommendations

GuidancePractice
Do

Use prefixes and suffixes for units or context. Give embedded action buttons accessible names.

Usage boundaries

GuidanceBoundary
Scope

Keep the field label outside the input group. Decorative content must not replace the control's accessible name.

API reference

Public props from @mizen-labs/ui. Use exported prop types for the complete TypeScript contract.

PropTypeDefaultDescription
childrenReactNode—Inner addons, text, input, or textarea controls.
refRef<HTMLDivElement>—Ref forwarded to the root group element.
align"inline-start" | "inline-end" | "block-start" | "block-end""inline-start"Positions InputGroupAddon around the control. Use block alignments with textarea.
InputGroupInput / InputGroupTextareaInputProps / TextareaProps—Inherit their control props, including size, value, disabled, validation, and native attributes.
PreviousInputNextNumber field
https://

Enter the public domain without the protocol.

https://

Enter your public profile URL.

.mizen.devVerified
⌘K
Markdown note
0/280 characters
!
#
#
#
git://
Locked
GET
Port
Please enter a valid numeric port.