1.0.2 • Published 5 years ago

@rei/cdr-tabs v1.0.2

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

5 years ago

1.0.2-alpha.0

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago

1.0.0-alpha.64

5 years ago

1.0.0-alpha.63

6 years ago

1.0.0-alpha.62

6 years ago

1.0.0-alpha.61

6 years ago

1.0.0-alpha.60

6 years ago

1.0.0-alpha.59

6 years ago

1.0.0-alpha.58

6 years ago

1.0.0-alpha.57

6 years ago

1.0.0-alpha.56

6 years ago

1.0.0-alpha.55

6 years ago

1.0.0-alpha.54

6 years ago

1.0.0-alpha.53

6 years ago

1.0.0-alpha.52

6 years ago

1.0.0-alpha.51

6 years ago

1.0.0-alpha.50

6 years ago

1.0.0-alpha.49

6 years ago

1.0.0-alpha.48

6 years ago

1.0.0-alpha.47

6 years ago

1.0.0-alpha.46

6 years ago

1.0.0-alpha.45

6 years ago

1.0.0-alpha.44

6 years ago

1.0.0-alpha.43

6 years ago

1.0.0-alpha.42

6 years ago

1.0.0-alpha.41

6 years ago

1.0.0-alpha.40

6 years ago

1.0.0-alpha.39

6 years ago

1.0.0-alpha.38

6 years ago

1.0.0-alpha.37

6 years ago

1.0.0-alpha.36

6 years ago

1.0.0-alpha.35

6 years ago

1.0.0-alpha.34

6 years ago

1.0.0-alpha.33

6 years ago

1.0.0-alpha.32

6 years ago

1.0.0-alpha.31

6 years ago

1.0.0-alpha.30

6 years ago

1.0.0-alpha.29

6 years ago

1.0.0-alpha.28

6 years ago

1.0.0-alpha.27

6 years ago

1.0.0-alpha.26

6 years ago

1.0.0-alpha.25

6 years ago

1.0.0-alpha.24

6 years ago

1.0.0-alpha.23

6 years ago

1.0.0-alpha.22

6 years ago

1.0.0-alpha.21

6 years ago

1.0.0-alpha.20

6 years ago

1.0.0-alpha.19

6 years ago

1.0.0-alpha.18

6 years ago

1.0.0-alpha.17

6 years ago

1.0.0-alpha.16

6 years ago

1.0.0-alpha.15

6 years ago

1.0.0-alpha.14

6 years ago

1.0.0-alpha.13

6 years ago

1.0.0-alpha.12

6 years ago

1.0.0-alpha.11

6 years ago

1.0.0-alpha.10

6 years ago

1.0.0-alpha.9

6 years ago

1.0.0-alpha.8

6 years ago

1.0.0-alpha.7

6 years ago

1.0.0-alpha.6

6 years ago

1.0.0-alpha.5

6 years ago

1.0.0-alpha.4

6 years ago

1.0.0-alpha.3

6 years ago

1.0.0-alpha.2

6 years ago

0.1.0-alpha.0

6 years ago

0.1.0

6 years ago

1.0.0-alpha.1

6 years ago

1.0.0-alpha.0

6 years ago