import React, { useContext } from "react"; import { Page, PageHeader, PageHeaderTools, PageHeaderToolsItem, PageSection, FormGroup, Form, TextInput, } from "@patternfly/react-core"; import { Meta } from "@storybook/react"; import { HelpItem } from "../components/help-enabler/HelpItem"; import { Help, HelpContext, HelpHeader, } from "../components/help-enabler/HelpHeader"; export default { title: "Help System Example", component: HelpHeader, } as Meta; export const HelpSystem = () => ( ); export const HelpItems = () => ( ); export const FormFieldHelp = () => (
} fieldId="storybook-form-help" >
); const HelpSystemTest = () => { const { enabled } = useContext(HelpContext); return ( dummy user... } /> } > Help system is {enabled ? "enabled" : "not on"} ); };