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

@sanity/ui

Package Overview
Dependencies
Maintainers
20
Versions
433
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sanity/ui

The Sanity UI components.

  • 1.0.0-alpha.12
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
193K
decreased by-17.54%
Maintainers
20
Weekly downloads
 
Created

What is @sanity/ui?

@sanity/ui is a React component library designed to help developers build user interfaces for Sanity.io applications. It provides a set of customizable and accessible UI components that are consistent with the Sanity design system.

What are @sanity/ui's main functionalities?

Button

The Button component allows you to create customizable buttons with different tones and styles.

import { Button } from '@sanity/ui';

function App() {
  return (
    <Button text="Click me" tone="primary" />
  );
}

Card

The Card component is used to create a container with padding and shadow, useful for grouping content.

import { Card } from '@sanity/ui';

function App() {
  return (
    <Card padding={4} shadow={1}>
      <p>This is a card</p>
    </Card>
  );
}

TextInput

The TextInput component provides a styled input field for user text input.

import { TextInput } from '@sanity/ui';

function App() {
  return (
    <TextInput placeholder="Enter text" />
  );
}

Stack

The Stack component helps in arranging children components in a vertical stack with specified spacing.

import { Stack } from '@sanity/ui';

function App() {
  return (
    <Stack space={3}>
      <div>Item 1</div>
      <div>Item 2</div>
      <div>Item 3</div>
    </Stack>
  );
}

Grid

The Grid component allows you to create a grid layout with specified columns and gaps between items.

import { Grid } from '@sanity/ui';

function App() {
  return (
    <Grid columns={3} gap={4}>
      <div>Item 1</div>
      <div>Item 2</div>
      <div>Item 3</div>
    </Grid>
  );
}

Other packages similar to @sanity/ui

Keywords

FAQs

Package last updated on 28 Oct 2020

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