Skip to Content
ComponentsFieldPanel

FieldPanel

FieldPanel frames content with the sunken inset border used by list boxes, file panes, and output areas.

Because FieldPanel is a frame primitive, place text inside padded content rather than directly against the inset border.

Props

PropTypeDefaultDescription
variant'field' | 'sunken''field'field uses the window background; sunken uses the button-face background for output/display panels.
disabledbooleanfalseSwitches to disabled field colors and exposes aria-disabled.
classNamestring-Sets dimensions or extra layout classes.
childrenReactNode-Content rendered inside the panel.

Examples

File list field

  • AUTOEXEC.BAT
  • COMMAND.COM
  • CONFIG.SYS
  • README.TXT
  • SETUP.EXE
  • WIN.COM

Sunken output panel

Output

The operation completed successfully.

ARIA

FieldPanel does not assign a role. Add role="listbox", role="region", or labels when the content needs semantics.

Keyboard

FieldPanel does not add keyboard behavior. Keyboard interaction belongs to the content it frames.

SSR

FieldPanel owns no state. Its custom scrollbars hydrate from measured overflow after mount.

Last updated on