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

@radix-ui/react-separator

Package Overview
Dependencies
Maintainers
8
Versions
161
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@radix-ui/react-separator

  • 0.1.1-rc.3
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2.2M
decreased by-24.38%
Maintainers
8
Weekly downloads
 
Created

What is @radix-ui/react-separator?

The @radix-ui/react-separator package provides a primitive component for creating visual separators in UIs. It is designed to be used in various orientations and can be styled according to the needs of the design system. It's part of the Radix UI design system, which offers unstyled, accessible components for building high-quality, accessible design systems and web apps.

What are @radix-ui/react-separator's main functionalities?

Horizontal Separator

Creates a horizontal line that can be used to separate content or groups of elements horizontally. This is useful in layouts, menus, or as a visual divider in content.

"<Separator orientation='horizontal' />"

Vertical Separator

Generates a vertical line for separating items or groups of elements vertically. Ideal for use in sidebars, navigation menus, or to divide sections in a layout vertically.

"<Separator orientation='vertical' />"

Custom Styling

Allows for custom styling of the separator. This example demonstrates customizing the margin, background color, and height of a horizontal separator. It showcases the flexibility of the component in adapting to various design requirements.

"<Separator style={{ margin: '20px 0', backgroundColor: 'black', height: '1px' }} />"

Other packages similar to @radix-ui/react-separator

FAQs

Package last updated on 16 Sep 2021

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