DocsDocsHire usHire us (opens in a new tab)
GitHubGitHub (opens in a new tab) (opens in a new tab)
  • Introduction
  • Getting Started
    • Component Configuration
    • Root Configuration
    • Multi-column Layouts
    • Categories
    • Dynamic Props
    • Dynamic Fields
    • External Data Sources
    • Server Components
    • Data Migration
    • Viewports
    • Custom Fields
    • Custom Interfaces
    • Theming
    • Plugins
    • Components
      • <AutoField>
      • <Drawer>
      • <Drawer.Item>
      • <DropZone>
      • <FieldLabel>
      • <Puck>
      • <Puck.Components>
      • <Puck.Fields>
      • <Puck.Outline>
      • <Puck.Preview>
      • <Render>
    • Configuration
      • Config
      • ComponentConfig
    • Fields
      • Base
      • Array
      • Custom
      • External
      • Number
      • Object
      • Radio
      • Select
      • Text
      • Textarea
    • Functions
      • migrate
      • resolveAllData
      • transformProps
      • usePuck
    • Overrides
      • componentItem
      • components
      • fieldLabel
      • fieldTypes
      • fields
      • headerActions
      • header
      • iframe
      • outline
      • preview
      • puck
    • Actions
    • App State
    • Data
    • Plugin

On This Page

  • Params
  • Optional params
  • label
Question? Give us feedback → (opens in a new tab)Edit this page
Docs
API Reference
Fields
Base

Base

The base type shared by all fields.

Params

ParamExampleTypeStatus
labellabel: "Title"String-

Optional params

label

Set the label for the input. Puck will use the key if not provided.

const config = {
  components: {
    Example: {
      fields: {
        items: {
          label: "My Field",
          // ...
        },
      },
      // ...
    },
  },
};
FieldsArray

MIT © 2024 Measured Corporation Ltd.