diff --git a/packages/_site/src/App.tsx b/packages/_site/src/App.tsx index e479289..e33d67b 100644 --- a/packages/_site/src/App.tsx +++ b/packages/_site/src/App.tsx @@ -37,6 +37,8 @@ import DialogPage from "./pages/components/dialog"; import CollapsiblePage from "./pages/components/collapsible"; import TextareaPage from "./pages/components/textarea"; import DropdownMenuPage from "./pages/components/dropdown-menu"; +import PopoverPage from "./pages/components/popover"; + import InputPage from "./pages/components/input"; const styles = stylex.create({ @@ -193,9 +195,14 @@ export default function App() { } /> + + } /> + + } /> + } /> diff --git a/packages/_site/src/pages/components/popover/index.tsx b/packages/_site/src/pages/components/popover/index.tsx new file mode 100644 index 0000000..1282dc3 --- /dev/null +++ b/packages/_site/src/pages/components/popover/index.tsx @@ -0,0 +1,390 @@ +import ComponentHero from "../commons/component-hero"; +import stylex from "@stylexjs/stylex"; +import ExampleBlock from "../commons/example-block"; +import CodeBlock from "../commons/code-block"; +import { PreviewBlock } from "../commons/preview_block"; +import ComponentInfo from "../commons/component-info"; +import { Divider } from "@controlkit/divider"; +import { H2, H5 } from "@controlkit/headings"; +import { Tabs, TabsList, TabsTrigger, TabsContent } from "@controlkit/tabs"; +import { useRef } from "react"; +import { styles } from "../_layout/styles"; +import ContentsSidebar from "../commons/contents_sidebar"; +import { Popover, PopoverContent, PopoverTrigger } from "@controlkit/popover"; +import { Button } from "@controlkit/button"; + +export default function PopoverPage() { + const divRef = useRef(null); + + return ( + + + + + + + + Installation + + + + + Automatic + Manual + + + + + + + + + 1. Copy and paste the following code into your project. + + + + + + + + Examples + + + + + + + + + Open Top + + + + + Place content for the popover here. + + + + + + + + Open Top + + + + + Place content for the popover here. + + + + ); +}`} + /> + + + + + + + + + + Open Left + + + + + Place content for the popover here. + + + + + + + + Open left + + + + + Place content for the popover here. + + + + ); +}`} + /> + + + + + + + + + + Open Right + + + + + Place content for the popover here. + + + + + + + + Open right + + + + + Place content for the popover here. + + + + ); +}`} + /> + + + + + + + + + + Open Bottom + + + + + Place content for the popover here. + + + + + + + + Open bottom + + + + + Place content for the popover here. + + + + ); +}`} + /> + + + + + + ); +} diff --git a/packages/_site/src/pages/components/routes_list_docs_components.ts b/packages/_site/src/pages/components/routes_list_docs_components.ts index 0b2b2bb..c5ea2fd 100644 --- a/packages/_site/src/pages/components/routes_list_docs_components.ts +++ b/packages/_site/src/pages/components/routes_list_docs_components.ts @@ -113,11 +113,18 @@ export const componentsList: I_ComponentsList[] = [ link: "/components/hover_card/examples", }, + { + title: "Popover", + description: "Popover Element. Will remain hidden until opened by invoking an action from another element, such as a button click.", + link: "/components/popover/examples", + }, + { title: "Input", description: "An input lets users enter text.", link: "/components/input/examples", }, + { title: "Textarea", description: