1.0.2 • Published 6 years ago

@rei/cdr-tabs v1.0.2

Weekly downloads
3
License
ISC
Repository
github
Last release
6 years ago

Props

For the most up-to-date information, see REI Cedar documentation.

CdrTabs

NameTypeDefault
heightstring'240px'

Sets height of the tabs container element. This is needed for managing content overflow and animations.

NameTypeN/A
modifierstringN/A

Modifies the style variants for this component. Possible values: { 'compact' | 'full-width' | 'no-border' }

CdrTabPanel

NameTypeDefault
namestringN/A

Sets tab display name. Required and must be unique for each tab. If id prop not provided, this value will be used as the reference identifier.

NameTypeDefault
idstringN/A

Sets reference identifier. Must be unique for each tab.

Installation

Resources are available within the cdr-tabs package:

  • Component: @rei/cdr-tabs
  • Component styles: cdr-tabs.css

To incorporate the required assets for a component, use the following steps:

#1. Install using NPM

Install the cdr-tabs package using npm in your terminal:

Terminal

npm i -s @rei/cdr-tabs

#2. Import Dependencies

main.js

// import your required css.
import "@rei/cdr-tabs/dist/cdr-tabs.css";

#3. Add component to a template

local.vue

<template>
  <cdr-tabs>
    <cdr-tab-panel name="tab1">TAB1 CONTENT GOES HERE</cdr-tab-panel>
    <cdr-tab-panel name="tab2">TAB2 CONTENT GOES HERE</cdr-tab-panel>
    <cdr-tab-panel name="tab3">TAB3 CONTENT GOES HERE</cdr-tab-panel>
  </cdr-tabs>
</template>

<script>
import { CdrTabs, CdrTabPanel } from '@rei/cdr-tabs';
export default {
  ...
  components: {
     CdrTabs,
     CdrTabPanel
  },
}
</script>

Usage

The cdr-tab name property sets the tab display value and is used for reference

<cdr-tabs>
  <cdr-tab name="tab1">Tab 1 Content</cdr-tab>
</cdr-tabs>

Modifiers

Set the visual presentation by passing the following variants to the modifier attribute of the CdrTabs component.

ValueDescription
compactSets the tabs styling for smaller screen sizes
full-widthSets the tab header to display evenly across the entire width instead of left justified
no-borderRemoves the bottom border of the tabs header
1.0.2

6 years ago

1.0.2-alpha.0

6 years ago

1.0.1

6 years ago

1.0.0

7 years ago

1.0.0-alpha.64

7 years ago

1.0.0-alpha.63

7 years ago

1.0.0-alpha.62

7 years ago

1.0.0-alpha.61

7 years ago

1.0.0-alpha.60

7 years ago

1.0.0-alpha.59

7 years ago

1.0.0-alpha.58

7 years ago

1.0.0-alpha.57

7 years ago

1.0.0-alpha.56

7 years ago

1.0.0-alpha.55

7 years ago

1.0.0-alpha.54

7 years ago

1.0.0-alpha.53

7 years ago

1.0.0-alpha.52

7 years ago

1.0.0-alpha.51

7 years ago

1.0.0-alpha.50

7 years ago

1.0.0-alpha.49

7 years ago

1.0.0-alpha.48

7 years ago

1.0.0-alpha.47

7 years ago

1.0.0-alpha.46

7 years ago

1.0.0-alpha.45

7 years ago

1.0.0-alpha.44

7 years ago

1.0.0-alpha.43

7 years ago

1.0.0-alpha.42

7 years ago

1.0.0-alpha.41

7 years ago

1.0.0-alpha.40

7 years ago

1.0.0-alpha.39

7 years ago

1.0.0-alpha.38

7 years ago

1.0.0-alpha.37

7 years ago

1.0.0-alpha.36

7 years ago

1.0.0-alpha.35

7 years ago

1.0.0-alpha.34

7 years ago

1.0.0-alpha.33

7 years ago

1.0.0-alpha.32

7 years ago

1.0.0-alpha.31

7 years ago

1.0.0-alpha.30

7 years ago

1.0.0-alpha.29

7 years ago

1.0.0-alpha.28

7 years ago

1.0.0-alpha.27

7 years ago

1.0.0-alpha.26

7 years ago

1.0.0-alpha.25

7 years ago

1.0.0-alpha.24

7 years ago

1.0.0-alpha.23

7 years ago

1.0.0-alpha.22

7 years ago

1.0.0-alpha.21

7 years ago

1.0.0-alpha.20

7 years ago

1.0.0-alpha.19

7 years ago

1.0.0-alpha.18

7 years ago

1.0.0-alpha.17

7 years ago

1.0.0-alpha.16

7 years ago

1.0.0-alpha.15

7 years ago

1.0.0-alpha.14

7 years ago

1.0.0-alpha.13

7 years ago

1.0.0-alpha.12

7 years ago

1.0.0-alpha.11

7 years ago

1.0.0-alpha.10

7 years ago

1.0.0-alpha.9

7 years ago

1.0.0-alpha.8

7 years ago

1.0.0-alpha.7

7 years ago

1.0.0-alpha.6

7 years ago

1.0.0-alpha.5

7 years ago

1.0.0-alpha.4

7 years ago

1.0.0-alpha.3

7 years ago

1.0.0-alpha.2

7 years ago

0.1.0-alpha.0

7 years ago

0.1.0

7 years ago

1.0.0-alpha.1

7 years ago

1.0.0-alpha.0

7 years ago