1.0.2 • Published 7 years ago

@rei/cdr-tabs v1.0.2

Weekly downloads
3
License
ISC
Repository
github
Last release
7 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

7 years ago

1.0.2-alpha.0

7 years ago

1.0.1

7 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

8 years ago

1.0.0-alpha.59

8 years ago

1.0.0-alpha.58

8 years ago

1.0.0-alpha.57

8 years ago

1.0.0-alpha.56

8 years ago

1.0.0-alpha.55

8 years ago

1.0.0-alpha.54

8 years ago

1.0.0-alpha.53

8 years ago

1.0.0-alpha.52

8 years ago

1.0.0-alpha.51

8 years ago

1.0.0-alpha.50

8 years ago

1.0.0-alpha.49

8 years ago

1.0.0-alpha.48

8 years ago

1.0.0-alpha.47

8 years ago

1.0.0-alpha.46

8 years ago

1.0.0-alpha.45

8 years ago

1.0.0-alpha.44

8 years ago

1.0.0-alpha.43

8 years ago

1.0.0-alpha.42

8 years ago

1.0.0-alpha.41

8 years ago

1.0.0-alpha.40

8 years ago

1.0.0-alpha.39

8 years ago

1.0.0-alpha.38

8 years ago

1.0.0-alpha.37

8 years ago

1.0.0-alpha.36

8 years ago

1.0.0-alpha.35

8 years ago

1.0.0-alpha.34

8 years ago

1.0.0-alpha.33

8 years ago

1.0.0-alpha.32

8 years ago

1.0.0-alpha.31

8 years ago

1.0.0-alpha.30

8 years ago

1.0.0-alpha.29

8 years ago

1.0.0-alpha.28

8 years ago

1.0.0-alpha.27

8 years ago

1.0.0-alpha.26

8 years ago

1.0.0-alpha.25

8 years ago

1.0.0-alpha.24

8 years ago

1.0.0-alpha.23

8 years ago

1.0.0-alpha.22

8 years ago

1.0.0-alpha.21

8 years ago

1.0.0-alpha.20

8 years ago

1.0.0-alpha.19

8 years ago

1.0.0-alpha.18

8 years ago

1.0.0-alpha.17

8 years ago

1.0.0-alpha.16

8 years ago

1.0.0-alpha.15

8 years ago

1.0.0-alpha.14

8 years ago

1.0.0-alpha.13

8 years ago

1.0.0-alpha.12

8 years ago

1.0.0-alpha.11

8 years ago

1.0.0-alpha.10

8 years ago

1.0.0-alpha.9

8 years ago

1.0.0-alpha.8

8 years ago

1.0.0-alpha.7

8 years ago

1.0.0-alpha.6

8 years ago

1.0.0-alpha.5

8 years ago

1.0.0-alpha.4

8 years ago

1.0.0-alpha.3

8 years ago

1.0.0-alpha.2

8 years ago

0.1.0-alpha.0

8 years ago

0.1.0

8 years ago

1.0.0-alpha.1

8 years ago

1.0.0-alpha.0

8 years ago