UNPKG

vcc-ui

Version:

VCC UI is a collection of React UI Components that can be used for developing front-end applications at Volvo Car Corporation.

25 lines 950 B
import React from "react"; import { storiesOf } from "@storybook/react"; import { NavItem } from "./"; storiesOf("Navigation/NavItem", module).addWithJSX("Default", function () { return React.createElement(NavItem, null, "Build & Price"); }).addWithJSX("isActive", function () { return React.createElement(NavItem, { isActive: true }, "Build & Price"); }).addWithJSX("isDropdown", function () { return React.createElement(NavItem, { isDropdown: true }, "Cars"); }).addWithJSX("isDropdown + isActive", function () { return React.createElement(NavItem, { isDropdown: true, isActive: true }, "Cars"); }).addWithJSX("With long label", function () { return React.createElement(NavItem, null, "Find A Dealer And Text That Might Span Two Rows"); }).addWithJSX("isDropdown with long label", function () { return React.createElement(NavItem, { isDropdown: true }, "Find A Dealer And Text That Might Span Two Rows"); });