How to use LinkIconWithColorSubHeadline method in storybook-root

Best JavaScript code snippet using storybook-root

NotificationItem.stories.js

Source:NotificationItem.stories.js Github

copy

Full Screen

1"use strict";2require("core-js/modules/es.string.link.js");3Object.defineProperty(exports, "__esModule", {4 value: true5});6exports.accessibilityGoldIconLongHeadLineNoSubHeadline = exports.accessibilityGoldIconLongHeadLineNoSubHeadlineData = exports.accessibilityGoldIcon = exports.accessibilityGoldIconData = exports.accessibilityIcon = exports.accessibilityIconData = exports.bookIconLongSubHeadline = exports.bookIconLongSubHeadlineData = exports.bookIconSubHeadline = exports.bookIconSubHeadlineData = exports.strongEmphasizedSubHeadline = exports.strongEmphasizedSubHeadlineData = exports.strongSubHeadline = exports.strongSubHeadlineData = exports.bookIcon = exports.bookIconData = exports.linkIconWithColorSubHeadline = exports.linkIconWithColorSubHeadlineData = exports.linkIconWithColor = exports.linkIconWithColorData = exports.link = exports.linkData = exports.longHeadline = exports.longHeadlineData = exports.simple = exports.simpleData = exports.default = void 0;7var _react = _interopRequireDefault(require("react"));8var _NotificationItem = _interopRequireDefault(require("./NotificationItem"));9function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }10var _default = {11 component: _NotificationItem.default,12 title: 'UI/Notifications/NotificationItem',13 decorators: [function (storyFn) {14 return /*#__PURE__*/_react.default.createElement("div", {15 style: {16 width: '240px',17 margin: '1rem'18 }19 }, storyFn());20 }],21 excludeStories: /.*Data$/22};23exports.default = _default;24var onClear = function onClear() {};25var onDismissNotification = function onDismissNotification() {};26var Template = function Template(args) {27 return /*#__PURE__*/_react.default.createElement(_NotificationItem.default, args);28};29Template.displayName = "Template";30var simpleData = {31 id: '1',32 onClear: onClear,33 content: {34 headline: 'Storybook cool!'35 }36};37exports.simpleData = simpleData;38var simple = Template.bind({});39exports.simple = simple;40simple.args = {41 notification: simpleData,42 onDismissNotification: onDismissNotification43};44var longHeadlineData = {45 id: '2',46 onClear: onClear,47 content: {48 headline: 'This is a long message that extends over two lines!'49 }50};51exports.longHeadlineData = longHeadlineData;52var longHeadline = Template.bind({});53exports.longHeadline = longHeadline;54longHeadline.args = {55 notification: longHeadlineData,56 onDismissNotification: onDismissNotification57};58var linkData = {59 id: '3',60 onClear: onClear,61 content: {62 headline: 'Storybook X.X is available! Download now »'63 },64 link: '/some/path'65};66exports.linkData = linkData;67var link = Template.bind({});68exports.link = link;69link.args = {70 notification: linkData,71 onDismissNotification: onDismissNotification72};73var linkIconWithColorData = {74 id: '4',75 onClear: onClear,76 content: {77 headline: 'Storybook with a smile!'78 },79 icon: {80 name: 'facehappy',81 color: 'hotpink'82 },83 link: '/some/path'84};85exports.linkIconWithColorData = linkIconWithColorData;86var linkIconWithColor = Template.bind({});87exports.linkIconWithColor = linkIconWithColor;88linkIconWithColor.args = {89 notification: linkIconWithColorData,90 onDismissNotification: onDismissNotification91};92var linkIconWithColorSubHeadlineData = {93 id: '5',94 onClear: onClear,95 content: {96 headline: 'Storybook X.X is available with a smile! Download now »',97 subHeadline: 'This link also has a sub headline'98 },99 icon: {100 name: 'facehappy',101 color: 'tomato'102 },103 link: '/some/path'104};105exports.linkIconWithColorSubHeadlineData = linkIconWithColorSubHeadlineData;106var linkIconWithColorSubHeadline = Template.bind({});107exports.linkIconWithColorSubHeadline = linkIconWithColorSubHeadline;108linkIconWithColorSubHeadline.args = {109 notification: linkIconWithColorSubHeadlineData,110 onDismissNotification: onDismissNotification111};112var bookIconData = {113 id: '6',114 onClear: onClear,115 content: {116 headline: 'Storybook has a book icon!'117 },118 icon: {119 name: 'book'120 }121};122exports.bookIconData = bookIconData;123var bookIcon = Template.bind({});124exports.bookIcon = bookIcon;125bookIcon.args = {126 notification: bookIconData,127 onDismissNotification: onDismissNotification128};129var strongSubHeadlineData = {130 id: '7',131 onClear: onClear,132 content: {133 headline: 'Storybook has a book icon!',134 subHeadline: /*#__PURE__*/_react.default.createElement("strong", null, "Strong subHeadline")135 },136 icon: {137 name: 'book'138 }139};140exports.strongSubHeadlineData = strongSubHeadlineData;141var strongSubHeadline = Template.bind({});142exports.strongSubHeadline = strongSubHeadline;143strongSubHeadline.args = {144 notification: strongSubHeadlineData,145 onDismissNotification: onDismissNotification146};147var strongEmphasizedSubHeadlineData = {148 id: '8',149 onClear: onClear,150 content: {151 headline: 'Storybook cool!',152 subHeadline: /*#__PURE__*/_react.default.createElement("span", null, /*#__PURE__*/_react.default.createElement("em", null, "Emphasized"), " normal ", /*#__PURE__*/_react.default.createElement("strong", null, "strong Storybook!"))153 },154 icon: {155 name: 'book'156 }157};158exports.strongEmphasizedSubHeadlineData = strongEmphasizedSubHeadlineData;159var strongEmphasizedSubHeadline = Template.bind({});160exports.strongEmphasizedSubHeadline = strongEmphasizedSubHeadline;161strongEmphasizedSubHeadline.args = {162 notification: strongEmphasizedSubHeadlineData,163 onDismissNotification: onDismissNotification164};165var bookIconSubHeadlineData = {166 id: '9',167 onClear: onClear,168 content: {169 headline: 'Storybook has a book icon!',170 subHeadline: 'Find out more!'171 },172 icon: {173 name: 'book'174 }175};176exports.bookIconSubHeadlineData = bookIconSubHeadlineData;177var bookIconSubHeadline = Template.bind({});178exports.bookIconSubHeadline = bookIconSubHeadline;179bookIconSubHeadline.args = {180 notification: bookIconSubHeadlineData,181 onDismissNotification: onDismissNotification182};183var bookIconLongSubHeadlineData = {184 id: '10',185 onClear: onClear,186 content: {187 headline: 'Storybook has a book icon!',188 subHeadline: 'Find out more! by clicking on on buttons and downloading some applications. Find out more! by clicking on buttons and downloading some applications'189 },190 icon: {191 name: 'book'192 }193};194exports.bookIconLongSubHeadlineData = bookIconLongSubHeadlineData;195var bookIconLongSubHeadline = Template.bind({});196exports.bookIconLongSubHeadline = bookIconLongSubHeadline;197bookIconLongSubHeadline.args = {198 notification: bookIconLongSubHeadlineData,199 onDismissNotification: onDismissNotification200};201var accessibilityIconData = {202 id: '11',203 onClear: onClear,204 content: {205 headline: 'Storybook has a accessibility icon!',206 subHeadline: 'It is here!'207 },208 icon: {209 name: 'accessibility'210 }211};212exports.accessibilityIconData = accessibilityIconData;213var accessibilityIcon = Template.bind({});214exports.accessibilityIcon = accessibilityIcon;215accessibilityIcon.args = {216 notification: accessibilityIconData,217 onDismissNotification: onDismissNotification218};219var accessibilityGoldIconData = {220 id: '12',221 onClear: onClear,222 content: {223 headline: 'Accessibility icon!',224 subHeadline: 'It is gold!'225 },226 icon: {227 name: 'accessibility',228 color: 'gold'229 }230};231exports.accessibilityGoldIconData = accessibilityGoldIconData;232var accessibilityGoldIcon = Template.bind({});233exports.accessibilityGoldIcon = accessibilityGoldIcon;234accessibilityGoldIcon.args = {235 notification: accessibilityGoldIconData,236 onDismissNotification: onDismissNotification237};238var accessibilityGoldIconLongHeadLineNoSubHeadlineData = {239 id: '13',240 onClear: onClear,241 content: {242 headline: 'Storybook notifications has a accessibility icon it can be any color!'243 },244 icon: {245 name: 'accessibility',246 color: 'gold'247 }248};249exports.accessibilityGoldIconLongHeadLineNoSubHeadlineData = accessibilityGoldIconLongHeadLineNoSubHeadlineData;250var accessibilityGoldIconLongHeadLineNoSubHeadline = Template.bind({});251exports.accessibilityGoldIconLongHeadLineNoSubHeadline = accessibilityGoldIconLongHeadLineNoSubHeadline;252accessibilityGoldIconLongHeadLineNoSubHeadline.args = {253 notification: accessibilityGoldIconLongHeadLineNoSubHeadlineData,254 onDismissNotification: onDismissNotification...

Full Screen

Full Screen

Using AI Code Generation

copy

Full Screen

1import React from 'react';2import { LinkIconWithColorSubHeadline } from 'storybook-root';3const App = () => {4 return (5 );6};7export default App;8import React from 'react';9import ReactDOM from 'react-dom';10import App from './test.js';11import 'storybook-root/dist/index.css';12ReactDOM.render(<App />, document.getElementById('root'));13{14 "dependencies": {15 },16 "devDependencies": {17 },18 "scripts": {19 },20 "eslintConfig": {21 },22 "browserslist": {23 }24}

Full Screen

Using AI Code Generation

copy

Full Screen

1import { LinkIconWithColorSubHeadline } from "storybook-root-components";2import { LinkIconWithColorSubHeadline } from "storybook-root-components";3import { LinkIconWithColorSubHeadline } from "storybook-root-components";4import { LinkIconWithColorSubHeadline } from "storybook-root-components";5import { LinkIconWithColorSubHeadline } from "storybook-root-components";6import { LinkIconWithColorSubHeadline } from "storybook-root-components";7import { LinkIconWithColorSubHeadline } from "storybook-root-components";8import { LinkIconWithColorSubHeadline } from "storybook-root-components";9import { LinkIconWithColorSubHeadline } from "storybook-root-components";10import { LinkIconWithColorSubHeadline } from "storybook-root-components";11import { LinkIconWithColorSubHeadline } from "storybook-root-components";12import { LinkIconWithColorSubHeadline } from "storybook-root-components";

Full Screen

Using AI Code Generation

copy

Full Screen

1import { LinkIconWithColorSubHeadline } from 'storybook-root';2import { LinkIconWithColorSubHeadline } from 'storybook-root';3import { LinkIconWithColorSubHeadline } from 'storybook-root';4import { LinkIconWithColorSubHeadline } from 'storybook-root';5import { LinkIconWithColorSubHeadline } from 'storybook-root';6import { LinkIconWithColorSubHeadline } from 'storybook-root';7import { LinkIconWithColorSubHeadline } from 'storybook-root';8import { LinkIconWithColorSubHeadline } from 'storybook-root';

Full Screen

Using AI Code Generation

copy

Full Screen

1import { LinkIconWithColorSubHeadline } from 'storybook-root';2import { withKnobs, text, select } from "@storybook/addon-knobs";3export default {4};5export const linkIconWithColorSubHeadline = () => {6 const icon = select('Icon', ['none', 'arrow', 'arrowWithCircle', 'arrowWithCircleRight', 'arrowWithCircleLeft', 'arrowWithCircleDown', 'arrowWithCircleUp', 'arrowWithCircleRightLarge', 'arrowWithCircleLeftLarge', 'arrowWithCircleDownLarge', 'arrowWithCircleUpLarge', 'arrowWithCircleRightSmall', 'arrowWithCircleLeftSmall', 'arrowWithCircleDownSmall', 'arrowWithCircleUpSmall', 'arrowWithCircleRightLarge', 'arrowWithCircleLeftLarge', 'arrowWithCircleDownLarge', 'arrowWithCircleUpLarge', 'arrowWithCircleRightSmall', 'arrowWithCircleLeftSmall', 'arrowWithCircleDownSmall', 'arrowWithCircleUpSmall', 'arrowWithCircleRightLarge', 'arrowWithCircleLeftLarge', 'arrowWithCircleDownLarge', 'arrowWithCircleUpLarge', 'arrowWithCircleRightSmall', 'arrowWithCircleLeftSmall', 'arrowWithCircleDownSmall', 'arrowWithCircleUpSmall', 'arrowWithCircleRightLarge', 'arrowWithCircleLeftLarge', 'arrowWithCircleDownLarge', 'arrowWithCircleUpLarge', 'arrowWithCircleRightSmall', 'arrowWithCircleLeftSmall', 'arrowWithCircleDownSmall', 'arrowWithCircleUpSmall', 'arrowWithCircleRightLarge', 'arrowWithCircleLeftLarge', 'arrowWithCircleDownLarge', 'arrowWithCircleUpLarge', 'arrowWithCircleRightSmall', 'arrowWithCircleLeftSmall', 'arrowWithCircleDownSmall', 'arrowWithCircleUpSmall', 'arrowWithCircleRightLarge', 'arrowWithCircleLeftLarge', 'arrowWithCircleDownLarge', 'arrowWithCircleUpLarge', 'arrowWithCircleRightSmall', 'arrowWithCircleLeftSmall', 'arrowWithCircleDownSmall', 'arrowWithCircleUpSmall', 'arrowWithCircleRightLarge', 'arrowWithCircleLeftLarge', 'arrowWithCircleDownLarge', 'arrowWithCircleUpLarge', 'arrowWithCircleRightSmall', 'arrowWith

Full Screen

Using AI Code Generation

copy

Full Screen

1import { LinkIconWithColorSubHeadline } from 'storybook-root';2import React from 'react';3import ReactDOM from 'react-dom';4ReactDOM.render(5 document.getElementById('root')6);7{8 "dependencies": {9 }10}

Full Screen

Using AI Code Generation

copy

Full Screen

1import { LinkIconWithColorSubHeadline } from 'storybook-root-components/dist/esm/components/LinkIconWithColorSubHeadline/LinkIconWithColorSubHeadline';2const linkIconWithColorSubHeadline = LinkIconWithColorSubHeadline(3);4export default {5};6export const LinkIconWithColorSubHeadlineStory = () => {7 return linkIconWithColorSubHeadline;8};9LinkIconWithColorSubHeadlineStory.story = {10};11LinkIconWithColorSubHeadlineStory.parameters = {12};13LinkIconWithColorSubHeadlineStory.parameters = {14};15LinkIconWithColorSubHeadlineStory.parameters = {16 options: {17 },18};19LinkIconWithColorSubHeadlineStory.parameters = {20 docs: {21 },22};23LinkIconWithColorSubHeadlineStory.story = {24};

Full Screen

Using AI Code Generation

copy

Full Screen

1import React from 'react';2import { LinkIconWithColorSubHeadline } from 'storybook-root';3const Test = () => {4 return (5 );6};7export default Test;8import React from 'react';9import { render } from 'react-dom';10import Test from './test';11import { Root, LinkIconWithColorSubHeadline } from 'storybook-root';12render(13 document.getElementById('root')14);15{16 "dependencies": {17 },18 "scripts": {

Full Screen

Using AI Code Generation

copy

Full Screen

1import { LinkIconWithColorSubHeadline } from 'storybook-root';2const LinkIconWithColorSubHeadline = () => {3 return (4 color={'#FF0000'}5 subheading={'subheading'}6 heading={'Heading'}7}8export default LinkIconWithColorSubHeadline;9import LinkIconWithColorSubHeadline from './test';10export default LinkIconWithColorSubHeadline;11import LinkIconWithColorSubHeadline from './src/components/LinkIconWithColorSubHeadline/LinkIconWithColorSubHeadline';12export {13}14import React from 'react';15import PropTypes from 'prop-types';16import './LinkIconWithColorSubHeadline.scss';17const LinkIconWithColorSubHeadline = ({ icon, color, subheading, heading }) => {18 return (19 <div className="link-icon-with-color-sub-headline__icon" style={{ backgroundImage: `url(${icon})`, backgroundColor: `${color}` }}></div>20 <p className="link-icon-with-color-sub-headline__content__sub-heading">{subheading}</p>21 <h2 className="link-icon-with-color-sub-headline__content__heading">{heading}</h2>22}

Full Screen

Automation Testing Tutorials

Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.

LambdaTest Learning Hubs:

YouTube

You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.

Run storybook-root automation tests on LambdaTest cloud grid

Perform automation testing on 3000+ real desktop and mobile devices online.

Try LambdaTest Now !!

Get 100 minutes of automation test minutes FREE!!

Next-Gen App & Browser Testing Cloud

Was this article helpful?

Helpful

NotHelpful