0.1.10 • Published 3 years ago

@vtex-components/divider v0.1.10

Weekly downloads
1
License
-
Repository
github
Last release
3 years ago

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"/>
0.1.10

3 years ago

0.1.9

3 years ago

0.1.8

3 years ago

0.1.7

3 years ago

0.1.4

3 years ago

0.1.5

3 years ago

0.1.4-alpha.0

4 years ago

0.1.3

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago