Reuse default components in custom components

default discord avatar
joschuadev
4 months ago
2

I would like to reuse the form from

collection-slug/create

inside my custom collection list view.



I know that I can overwrite any default components in the collection config, but is there a way to import and use the default components or do I have to build the form from scratch?

  • discord user avatar
    jesschow
    Payload Team
    2 months ago

    Hey @joschuadev sorry for the delay here - you can import the different fields individually from

    payload/components

    . We'll be making it easier to reuse Payload components in the near future, keep tabs on progress here

    https://github.com/payloadcms/payload/discussions/293
  • default discord avatar
    steadysnail
    last month

    @jesschow Any updates to the reusing of components?

Open the post
Continue the discussion in Discord
Like what we're doing?
Star us on GitHub!

Star

Connect with the Payload Community on Discord

Discord

online

Can't find what you're looking for?

Get help straight from the Payload team with an Enterprise License.