docs: fix missing TextField import (#8688)
Fixes a missing import in field prop example in docs/beta/admin/fields.mdx. <!-- For external contributors, please include: - A summary of the pull request and any related issues it fixes. - Reasoning for the changes made or any additional context that may be useful. Ensure you have read and understand the [CONTRIBUTING.md](https://github.com/payloadcms/payload/blob/main/CONTRIBUTING.md) document in this repository. -->
This commit is contained in:
@@ -217,6 +217,7 @@ Client Component:
|
||||
'use client'
|
||||
import React from 'react'
|
||||
import type { TextFieldClientComponent } from 'payload'
|
||||
import { TextField } from '@payloadcms/ui'
|
||||
|
||||
export const MyTextField: TextFieldClientComponent = ({ field }) => {
|
||||
return <TextField field={field} />
|
||||
|
||||
Reference in New Issue
Block a user