diff --git a/app/src/components/ThemeSamplePage.js b/app/src/components/ThemeSamplePage.js index bd33d0b2..f418da63 100644 --- a/app/src/components/ThemeSamplePage.js +++ b/app/src/components/ThemeSamplePage.js @@ -1,15 +1,19 @@ import React, {useContext, useState} from 'react'; import {ThemeContext} from '../contexts/contexts'; import { + ActionInput, Button, Card, CardGroup, Confirm, + Header, Icon, IconButton, Label, Loader, + Loading, Message, + Modal, Panel, Placeholder, Progress, @@ -52,10 +56,12 @@ const Row = ({children}) =>
; export function ThemeSamplePage() { - const {theme, setTheme} = useContext(ThemeContext); + const {theme} = useContext(ThemeContext); const [confirmOpen, setConfirmOpen] = useState(false); const [comments, setComments] = useState(true); const [hotspot, setHotspot] = useState(true); + const [dismissed, setDismissed] = useState(false); + const [modalOpen, setModalOpen] = useState(false); return

Component gallery

@@ -74,6 +80,20 @@ export function ThemeSamplePage() { +
+ +
Page title (h1)
+
Section (h2)
+
With an icon and a divider (h3)
+
Subsection (h4)
+
Smallest (h5)
+

+ The level picks the size, so the type scale stays a scale: call sites + choose a heading level for the document outline, never a font size. +

+
+
+
@@ -130,6 +150,12 @@ export function ThemeSamplePage() { HTTP 403 from the remote server after 3 attempts. Retry, or check the URL. + setDismissed(true)}> + {dismissed + ? 'Dismissed — it would be gone in the real interface.' + : 'A nudge the user can clear. Only offer dismiss when clearing it is harmless.'} +
@@ -200,6 +226,14 @@ export function ThemeSamplePage() {