Simplify your stack and build anything. Or everything.
Build tomorrow’s web with a modern solution you truly own.
Code-based nature means you can build on top of it to power anything.
It’s time to take back your content infrastructure.

How do I get text fields to display side by side?

default discord avatar
philipusername6 months ago
2
    {
      name: 'happyContent',
      type: 'array',
      admin: {
        style: {
          flexDirection: 'row',
        },
      },
      fields: [
        {
          name: 'happyName',
          label: 'happyName',
          type: 'text',
          admin: {
            width: '50%',
          },
          required: false,
        },
        {
          name: 'happyTagID',
          label: 'happy Tag ID',
          type: 'text',
          admin: {
            width: '50%',
          },
          required: false,
        }
      ],
    }

Not working. The easiest for me seems to be to add a classname and style it, but wasn't sure if there's another way

Star on GitHub

Star

Chat on Discord

Discord

online

Can't find what you're looking for?

Get dedicated engineering support directly from the Payload team..