-
Notifications
You must be signed in to change notification settings - Fork 834
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
70 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
import { ReactSdkContext } from "@webstudio-is/react-sdk/runtime"; | ||
import { XmlNode } from "./xml-node"; | ||
|
||
const Component = () => { | ||
return ( | ||
<ReactSdkContext.Provider | ||
value={{ | ||
renderer: "canvas", | ||
assetBaseUrl: "/", | ||
imageLoader: ({ src }) => src, | ||
resources: {}, | ||
}} | ||
> | ||
<XmlNode tag="root"> | ||
<XmlNode tag="hello" rel="hihi" hreflang="joajoajoaja aokaoja aojaoj"> | ||
Hi All Hi All Hi All Hi AllHi AllHi All Hi AllHi AllHi All | ||
</XmlNode> | ||
<XmlNode tag="hello" rel="hihi"></XmlNode> | ||
</XmlNode> | ||
</ReactSdkContext.Provider> | ||
); | ||
}; | ||
|
||
export default { | ||
title: "Components/XmlNode", | ||
}; | ||
|
||
const Story = { | ||
render() { | ||
return ( | ||
<> | ||
<Component /> | ||
</> | ||
); | ||
}, | ||
}; | ||
|
||
export { Story as XmlNode }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters