wix-style-react
Version:
wix-style-react
34 lines (33 loc) • 846 B
JavaScript
import React from 'react';
import Text from 'wix-style-react/Text';
export default (function () {
return React.createElement(
Text,
{ dataHook: 'storybook-text-link' },
'Text component applies link styles to anchor elements that are',
' ',
React.createElement(
'a',
{
href: 'https://developer.mozilla.org/en-US/docs/Web/CSS/Child_combinator',
target: '_blank',
rel: 'noopener noreferrer'
},
'direct children'
),
' ',
'only',
React.createElement('br', null),
React.createElement(
'span',
null,
React.createElement(
'a',
{ href: 'https://www.wix.com', target: '_blank', rel: 'noopener noreferrer' },
'Nested anchors'
)
),
' ',
'are not styled (what you see is the default browser styles)'
);
});