Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

sanity-plugin-latex-input

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sanity-plugin-latex-input

LaTeX input for Sanity

  • 0.0.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
794
decreased by-9.57%
Maintainers
1
Weekly downloads
 
Created
Source

unicorn-slider

Slider input for Sanity

https://sanity.io

Usage, standalone

git clone // this repo
npm install
npm run build
cd example/
npm install
sanity start
open http://localhost:3333

Usage as a Sanity plugin

cd my-sanity-studio
sanity install unicorn-slider
mkdir parts
touch parts/inputResolver.js

Add this to parts/inputResolver.js:

import Slider from 'part:@sanity/base/components/unicorn-slider'
export default function resolveInput(type) {
  if (type.name === 'number' && type.options && type.options.range) {
    return Slider
  }
}

Add this to the parts array in your sanity.json file:

{
  "implements": "part:@sanity/form-builder/input-resolver",
  "path": "./parts/inputResolver.js"
}

Add this to one of your schema types:

{
  name: 'unicornCount',
  title: 'Number of Unicorns',
  type: 'number',
  description: 'Half unicorns are okay',
  options: {
    range: {min: 0, max: 10, step: 0.5}
  }
}

Keywords

FAQs

Package last updated on 03 Oct 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc