2022-06-17 19:25:36 +00:00
|
|
|
import { SquigglePlayground } from "../components/SquigglePlayground";
|
2022-04-01 00:26:26 +00:00
|
|
|
import { Canvas, Meta, Story, Props } from "@storybook/addon-docs";
|
|
|
|
|
|
|
|
<Meta title="Squiggle/SquigglePlayground" component={SquigglePlayground} />
|
|
|
|
|
|
|
|
export const Template = (props) => <SquigglePlayground {...props} />;
|
|
|
|
|
|
|
|
# Squiggle Playground
|
|
|
|
|
|
|
|
A Squiggle playground is an environment where you can play around with all settings,
|
|
|
|
including sampling settings, in squiggle.
|
|
|
|
|
|
|
|
<Canvas>
|
|
|
|
<Story
|
|
|
|
name="Normal"
|
|
|
|
args={{
|
2022-07-05 07:32:02 +00:00
|
|
|
defaultCode: "normal(5,2)",
|
2022-05-26 22:39:06 +00:00
|
|
|
height: 800,
|
2022-04-01 00:26:26 +00:00
|
|
|
}}
|
|
|
|
>
|
|
|
|
{Template.bind({})}
|
|
|
|
</Story>
|
|
|
|
</Canvas>
|
2022-07-28 15:14:39 +00:00
|
|
|
|
|
|
|
<Canvas>
|
|
|
|
<Story
|
|
|
|
name="With share button"
|
|
|
|
args={{
|
|
|
|
defaultCode: "normal(5,2)",
|
|
|
|
height: 800,
|
|
|
|
showShareButton: true,
|
|
|
|
}}
|
|
|
|
>
|
|
|
|
{Template.bind({})}
|
|
|
|
</Story>
|
|
|
|
</Canvas>
|