keycloak-scim/stories/7-ScrollSpy.stories.js
Erik Jan de Wit de3d78384e
Initial version of scrollable form panel (#45)
* initial version of a scrollable form component

* added missing module parameter
2020-08-28 07:23:39 +02:00

13 lines
474 B
JavaScript

import React from "react";
import { storiesOf } from "@storybook/react";
import { ScrollForm } from "../src/components/scroll-form/ScrollForm";
storiesOf("Scroll Spy form", module).add("view", () => {
return (
<ScrollForm sections={["Revocation", "Clustering", "Fine grain stuff"]}>
<div style={{ height: "2400px" }}>One</div>
<div style={{ height: "2400px" }}>Two</div>
<div style={{ height: "2400px" }}>fine grain</div>
</ScrollForm>
);
});