Arjen Scherff-de Water
Creative Developer
Arjen is located at Netherlands
Add a title between fields for some visual grouping
import React from "react";
export function createHeading(title) {
return {
inputComponent: (field) => (
<div
style={{
borderBottom: "1px solid rgba(0,0,0,.1)",
fontSize: "2rem",
marginTop: "1em",
}}
>
{field.type.title}
</div>
),
name: `heading${title
.toLowerCase()
.replace(/\s/g, "")
.replace(/[^\w-]+/g, "")
.replace(/--+/g, "-")}`,
title,
type: "string",
};
}
import { createHeading } from "./helpers";
export default {
name: "mySchema",
title: "My Schema",
type: "document",
fields: [
createHeading("Hero"),
...,
createHeading("Media"),
]
}
Creative Developer
Recent studio styling has borders around icons in the desk structure. Here's a snippet to remove those.
Go to Remove studio desk icon bordersGet thumbnail and video by pasting vimeo/youtube url
Go to Vimeo/Youtube video id and thumbnail custom componentChoose a file from a searchable select
Go to File Searchable Select