
Grab your gear: The official Sanity swag store
Read Grab your gear: The official Sanity swag storeBased on the information I found, there is no built-in rows option for Portable Text (block) fields like there is for simple text fields. This is a known limitation that has been requested by the community.
However, there are a couple of approaches you can take:
You can limit the height of the Portable Text editor using CSS overrides. According to a community discussion, you can add this to your Studio styling overrides:
:global([class^="PortableTextInput_editorBoxContent"]) {
height: 8rem;
}Note: This approach will affect all block content fields in your Studio. To target a specific field, you'd need to find a way to add a custom class or use more specific CSS selectors based on the field's position in the DOM.
Since you mentioned:
You might want to reconsider whether you actually need a full Portable Text block. If you only need basic inline styling and no other block features (like headings, lists, custom blocks, etc.), you could use:
text field with rows option - This gives you the height control you wantstring field - For single-line textThe downside is you'd lose the ability to apply that pink decorator inline. However, you could potentially:
Since you only need one decorator, you might consider creating a custom input component that:
rows attributeThis would give you better control over the UI while keeping the data structure simpler for your specific use case.
The ability to control Portable Text editor height (or have a "single-line" block variant) has been requested multiple times in the community. Consider upvoting or creating a feature request on Sanity's feedback channels if this is important for your use case.
Bottom line: The CSS workaround is currently your best option if you need to stick with Portable Text, but given your simple requirements (one decorator, short text), you might want to explore using a regular text field with rows or creating a custom input component that better fits your specific needs.
Sanity is the developer-first content operating system that gives you complete control. Schema-as-code, GROQ queries, and real-time APIs mean no more workarounds or waiting for deployments. Free to start, scale as you grow.
Content operations
Content backend


The only platform powering content operations
By Industry


Tecovas strengthens their customer connections
Build and Share

Grab your gear: The official Sanity swag store
Read Grab your gear: The official Sanity swag store