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

@vtex-components/divider

Package Overview
Dependencies
Maintainers
5
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vtex-components/divider

Elementary accessible `hr`, that can be reused by all VTEX Styleguides. You can use reakit full features (except the 'as' prop) and theme-ui's sx. It renders a `hr` element by default.

  • 0.1.10
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
5
Weekly downloads
 
Created
Source

VTEX Components Divider

Elementary accessible hr, that can be reused by all VTEX Styleguides. You can use reakit full features (except the 'as' prop) and theme-ui's sx. It renders a hr element by default.

This is a styled base component, so any Styleguide can theme it. You may configure your components.divider property of the theme object (check the theming section).

Install

yarn add @vtex-components/divider

or

npm install @vtex-components/divider

Usage

import Divider from '@vtex-components/divider'

function UseCase() {
  return <Divider orientation="horizontal" />
}

🎨 Theming

ModifierDescription
stylesbase styles
orientationDivider orientation

Example

You can define the theme with:

const theme = {
  components: {
    divider: {
      styles: {...},
      orientation: {
        vertical: {...},
        horizontal: {...}
      }
    },
  },
}

Then use the Divider:

<Divider orientation="horizontal"/>
<Divider orientation="vertical"/>

FAQs

Package last updated on 27 Aug 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