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

@strapi/design-system

Package Overview
Dependencies
Maintainers
11
Versions
145
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@strapi/design-system

[![Version](https://img.shields.io/npm/v/@strapi/design-system?style=flat&colorA=4945ff&colorB=4945ff)](https://www.npmjs.com/package/@strapi/design-system) [![Downloads](https://img.shields.io/npm/dt/@strapi/design-system.svg?style=flat&colorA=4945ff&col

  • 1.19.0
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
175K
increased by5.85%
Maintainers
11
Weekly downloads
 
Created

What is @strapi/design-system?

@strapi/design-system is a design system package for Strapi, a popular open-source headless CMS. It provides a set of reusable React components and utilities to help developers build consistent and accessible user interfaces within the Strapi ecosystem.

What are @strapi/design-system's main functionalities?

Button

The Button component is a reusable button element that can be used to trigger actions or navigate within the application.

import { Button } from '@strapi/design-system/Button';

const MyButton = () => (
  <Button onClick={() => alert('Button clicked!')}>Click Me</Button>
);

Typography

The Typography component allows you to apply consistent text styles across your application, ensuring a uniform look and feel.

import { Typography } from '@strapi/design-system/Typography';

const MyText = () => (
  <Typography variant="alpha">Hello, World!</Typography>
);

Modal

The Modal component provides a way to display content in a dialog box that overlays the main content, useful for forms, alerts, and additional information.

import { Modal, ModalHeader, ModalBody, ModalFooter } from '@strapi/design-system/Modal';
import { Button } from '@strapi/design-system/Button';

const MyModal = ({ isOpen, onClose }) => (
  <Modal isOpen={isOpen} onClose={onClose}>
    <ModalHeader>Modal Title</ModalHeader>
    <ModalBody>
      <p>This is the modal content.</p>
    </ModalBody>
    <ModalFooter>
      <Button onClick={onClose}>Close</Button>
    </ModalFooter>
  </Modal>
);

Grid

The Grid component helps in creating responsive layouts by dividing the space into columns and rows, making it easier to align and distribute content.

import { Grid, GridItem } from '@strapi/design-system/Grid';

const MyGrid = () => (
  <Grid gap={4}>
    <GridItem col={6}>Item 1</GridItem>
    <GridItem col={6}>Item 2</GridItem>
  </Grid>
);

Other packages similar to @strapi/design-system

FAQs

Package last updated on 31 May 2024

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