Asset source for Cloudinary
Featured contribution
Access and select photos from your Cloudinary account within the Sanity Studio.
Go to Asset source for CloudinaryCode input for Sanity.
Currently only a subset of languages and features are exposed, over time we will implement a richer set of options.
sanity install @sanity/code-input
Use it in your schema types:
// [...]
{
fields: [
// [...]
{
name: 'exampleUsage',
title: 'Example usage',
type: 'code'
}
]
}
Note that the above only works if you import and use the all:part:@sanity/base/schema-type
part in your schema.
language
- Default language for this code fieldlanguageAlternatives
- Array of languages that should be availabletheme
- Name of the theme to use. Possible values: ['github', 'monokai', 'terminal', 'tomorrow']
withFilename
- Boolean option to display input field for filename// ...fields...
{
name: 'exampleUsage',
title: 'Example usage',
type: 'code',
options: {
language: 'js'
}
}
{
_type: 'code',
language: 'js',
highlightedLines: [1, 2],
code: 'const foo = "bar"\nconsole.log(foo.toUpperCase())\n// BAR'
}
MIT-licensed. See LICENSE.
Access and select photos from your Cloudinary account within the Sanity Studio.
Go to Asset source for CloudinarySearch photos on Unsplash and insert them directly inside of your Sanity Studio.
Go to Asset source for UnsplashUpload videos to Mux directly from the studio.
Go to Mux inputHelper library to generate URLs for image transformation
Go to Image URL