bestax-mcp 1.18.83 → 1.18.84

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -7,7 +7,8 @@
7
7
  "examples": [
8
8
  {
9
9
  "title": "Default Card (Header, Image, Content, Footer)",
10
- "code": "<Card\n header=\"Card Header\"\n image=\"/img/carousel/carousel-banner-1-4by3.jpg\"\n imageAlt=\"Vibrant galaxy with purple and gold tones\"\n footer={[\n <Card.FooterItem key=\"save\">Save</Card.FooterItem>,\n <Card.FooterItem key=\"cancel\">Cancel</Card.FooterItem>,\n ]}\n>\n Card content goes here.\n</Card>"
10
+ "code": "<Card\n header=\"Card Header\"\n image=\"/img/carousel/carousel-banner-1-4by3.jpg\"\n imageAlt=\"Vibrant galaxy with purple and gold tones\"\n footer={[\n <Card.FooterItem key=\"save\">Save</Card.FooterItem>,\n <Card.FooterItem key=\"cancel\">Cancel</Card.FooterItem>,\n ]}\n>\n Card content goes here.\n</Card>",
11
+ "note": "A path under /img/ here stands for a picture your own app serves, such as a file in its public/img/ folder."
11
12
  },
12
13
  {
13
14
  "title": "With Header Only",
@@ -19,11 +20,13 @@
19
20
  },
20
21
  {
21
22
  "title": "With Image Only",
22
- "code": "<Card\n image=\"/img/carousel/carousel-banner-1-4by3.jpg\"\n imageAlt=\"Vibrant galaxy with purple and gold tones\"\n/>"
23
+ "code": "<Card\n image=\"/img/carousel/carousel-banner-1-4by3.jpg\"\n imageAlt=\"Vibrant galaxy with purple and gold tones\"\n/>",
24
+ "note": "A path under /img/ here stands for a picture your own app serves, such as a file in its public/img/ folder."
23
25
  },
24
26
  {
25
27
  "title": "With Image and Content",
26
- "code": "<Card\n image=\"/img/carousel/carousel-banner-1-4by3.jpg\"\n imageAlt=\"Vibrant galaxy with purple and gold tones\"\n>\n Quando in rerum natura cursu fit ut populus aliquis inter nationes terrae...\n</Card>"
28
+ "code": "<Card\n image=\"/img/carousel/carousel-banner-1-4by3.jpg\"\n imageAlt=\"Vibrant galaxy with purple and gold tones\"\n>\n Quando in rerum natura cursu fit ut populus aliquis inter nationes terrae...\n</Card>",
29
+ "note": "A path under /img/ here stands for a picture your own app serves, such as a file in its public/img/ folder."
27
30
  },
28
31
  {
29
32
  "title": "No Shadow",
@@ -39,11 +42,13 @@
39
42
  },
40
43
  {
41
44
  "title": "Interactive (Colors, Spacing, Alignment, Footer)",
42
- "code": "<Card\n header=\"Upgrade to Pro\"\n headerIcon={\n <button className=\"card-header-icon\">\n <Icon library=\"fa\" name=\"bolt\" textColor=\"warning\" ariaLabel=\"Pro\" />\n </button>\n }\n image=\"/img/carousel/carousel-banner-3-4by3.jpg\"\n imageAlt=\"Starry night sky over mountain silhouettes\"\n m=\"3\"\n textAlign=\"centered\"\n hasShadow\n footer={[\n <Button key=\"upgrade\" color=\"success\">\n Upgrade Now\n </Button>,\n <Button key=\"learn\" color=\"info\" isOutlined>\n Learn More\n </Button>,\n ]}\n>\n Unlock advanced analytics, priority support, and unlimited exports for your\n team.\n</Card>"
45
+ "code": "<Card\n header=\"Upgrade to Pro\"\n headerIcon={\n <button className=\"card-header-icon\">\n <Icon library=\"fa\" name=\"bolt\" textColor=\"warning\" ariaLabel=\"Pro\" />\n </button>\n }\n image=\"/img/carousel/carousel-banner-3-4by3.jpg\"\n imageAlt=\"Starry night sky over mountain silhouettes\"\n m=\"3\"\n textAlign=\"centered\"\n hasShadow\n footer={[\n <Button key=\"upgrade\" color=\"success\">\n Upgrade Now\n </Button>,\n <Button key=\"learn\" color=\"info\" isOutlined>\n Learn More\n </Button>,\n ]}\n>\n Unlock advanced analytics, priority support, and unlimited exports for your\n team.\n</Card>",
46
+ "note": "A path under /img/ here stands for a picture your own app serves, such as a file in its public/img/ folder."
43
47
  },
44
48
  {
45
49
  "title": "Compound (dot-notation) usage › Complete Card with Compound Components",
46
- "code": "import { Icon, Image } from '@allxsmith/bestax-bulma';\n\n<Card>\n <Card.Header>\n <Card.Header.Title>Compound Component Card</Card.Header.Title>\n <Card.Header.Icon aria-label=\"more options\">\n <Icon name=\"angle-down\" variant=\"solid\" ariaLabel=\"expand\" />\n </Card.Header.Icon>\n </Card.Header>\n <Card.Image>\n <Image\n src=\"/img/carousel/carousel-banner-1-4by3.jpg\"\n alt=\"Vibrant galaxy with purple and gold tones\"\n size=\"4by3\"\n />\n </Card.Image>\n <Card.Content>\n <Content>\n This card is built using compound components for maximum flexibility.\n </Content>\n </Card.Content>\n <Card.Footer>\n <Card.FooterItem>\n <Button color=\"primary\">Save</Button>\n </Card.FooterItem>\n <Card.FooterItem>\n <Button>Cancel</Button>\n </Card.FooterItem>\n </Card.Footer>\n</Card>;"
50
+ "code": "import { Icon, Image } from '@allxsmith/bestax-bulma';\n\n<Card>\n <Card.Header>\n <Card.Header.Title>Compound Component Card</Card.Header.Title>\n <Card.Header.Icon aria-label=\"more options\">\n <Icon name=\"angle-down\" variant=\"solid\" ariaLabel=\"expand\" />\n </Card.Header.Icon>\n </Card.Header>\n <Card.Image>\n <Image\n src=\"/img/carousel/carousel-banner-1-4by3.jpg\"\n alt=\"Vibrant galaxy with purple and gold tones\"\n size=\"4by3\"\n />\n </Card.Image>\n <Card.Content>\n <Content>\n This card is built using compound components for maximum flexibility.\n </Content>\n </Card.Content>\n <Card.Footer>\n <Card.FooterItem>\n <Button color=\"primary\">Save</Button>\n </Card.FooterItem>\n <Card.FooterItem>\n <Button>Cancel</Button>\n </Card.FooterItem>\n </Card.Footer>\n</Card>;",
51
+ "note": "A path under /img/ here stands for a picture your own app serves, such as a file in its public/img/ folder."
47
52
  },
48
53
  {
49
54
  "title": "Compound (dot-notation) usage › Minimal Compound Card",
@@ -7,23 +7,28 @@
7
7
  "examples": [
8
8
  {
9
9
  "title": "Default Figure",
10
- "code": "<Figure>\n <Image src=\"/img/bestax-solar-system-3d.png\" alt=\"Placeholder\" />\n</Figure>"
10
+ "code": "<Figure>\n <Image src=\"/img/bestax-solar-system-3d.png\" alt=\"Placeholder\" />\n</Figure>",
11
+ "note": "A path under /img/ here stands for a picture your own app serves, such as a file in its public/img/ folder."
11
12
  },
12
13
  {
13
14
  "title": "Figure with Caption",
14
- "code": "<Figure>\n <Image src=\"/img/bestax-solar-system-3d.png\" alt=\"Placeholder\" />\n <Figure.Caption>This is a caption for the image</Figure.Caption>\n</Figure>"
15
+ "code": "<Figure>\n <Image src=\"/img/bestax-solar-system-3d.png\" alt=\"Placeholder\" />\n <Figure.Caption>This is a caption for the image</Figure.Caption>\n</Figure>",
16
+ "note": "A path under /img/ here stands for a picture your own app serves, such as a file in its public/img/ folder."
15
17
  },
16
18
  {
17
19
  "title": "Styled Caption",
18
- "code": "<Figure>\n <Image src=\"/img/bestax-solar-system-3d.png\" alt=\"Placeholder\" />\n <Figure.Caption textColor=\"grey\" textSize=\"7\" mt=\"2\">\n Grey caption with smaller text\n </Figure.Caption>\n</Figure>"
20
+ "code": "<Figure>\n <Image src=\"/img/bestax-solar-system-3d.png\" alt=\"Placeholder\" />\n <Figure.Caption textColor=\"grey\" textSize=\"7\" mt=\"2\">\n Grey caption with smaller text\n </Figure.Caption>\n</Figure>",
21
+ "note": "A path under /img/ here stands for a picture your own app serves, such as a file in its public/img/ folder."
19
22
  },
20
23
  {
21
24
  "title": "Figure with Background",
22
- "code": "<Figure bgColor=\"light\" textColor=\"dark\" p=\"4\">\n <Image src=\"/img/bestax-solar-system-3d.png\" alt=\"Placeholder\" />\n <Figure.Caption mt=\"2\">Figure with background and padding</Figure.Caption>\n</Figure>"
25
+ "code": "<Figure bgColor=\"light\" textColor=\"dark\" p=\"4\">\n <Image src=\"/img/bestax-solar-system-3d.png\" alt=\"Placeholder\" />\n <Figure.Caption mt=\"2\">Figure with background and padding</Figure.Caption>\n</Figure>",
26
+ "note": "A path under /img/ here stands for a picture your own app serves, such as a file in its public/img/ folder."
23
27
  },
24
28
  {
25
29
  "title": "Centered Caption",
26
- "code": "<Figure textAlign=\"centered\">\n <Image src=\"/img/bestax-solar-system-3d.png\" alt=\"Placeholder\" />\n <Figure.Caption textSize=\"7\" mt=\"2\">\n Centered caption\n </Figure.Caption>\n</Figure>"
30
+ "code": "<Figure textAlign=\"centered\">\n <Image src=\"/img/bestax-solar-system-3d.png\" alt=\"Placeholder\" />\n <Figure.Caption textSize=\"7\" mt=\"2\">\n Centered caption\n </Figure.Caption>\n</Figure>",
31
+ "note": "A path under /img/ here stands for a picture your own app serves, such as a file in its public/img/ folder."
27
32
  },
28
33
  {
29
34
  "title": "Code Figure",
@@ -31,7 +36,8 @@
31
36
  },
32
37
  {
33
38
  "title": "Compound (dot-notation) usage",
34
- "code": "<Figure>\n <Image src=\"/img/bestax-solar-system-3d.png\" alt=\"Placeholder\" />\n <Figure.Caption>Caption via the Figure.Caption static</Figure.Caption>\n</Figure>"
39
+ "code": "<Figure>\n <Image src=\"/img/bestax-solar-system-3d.png\" alt=\"Placeholder\" />\n <Figure.Caption>Caption via the Figure.Caption static</Figure.Caption>\n</Figure>",
40
+ "note": "A path under /img/ here stands for a picture your own app serves, such as a file in its public/img/ folder."
35
41
  }
36
42
  ],
37
43
  "accessibility": "- **Image Alt Text:** Always provide meaningful alt text for images within figures.\n- **Figure Semantics:** The `<figure>` element groups content that is referenced from the main flow but could be moved without affecting the document's meaning.\n- **Caption Association:** Screen readers associate `<figcaption>` content with the figure automatically.\n\n:::info\nThe `<figure>` element is ideal for images, illustrations, diagrams, code listings, or anything that is referenced as a unit from the main content.\n:::",
@@ -23,7 +23,8 @@
23
23
  },
24
24
  {
25
25
  "title": "Fullheight with Head, Body, and Foot",
26
- "code": "function example() {\n const [open, setOpen] = useState(false);\n return (\n <Hero color=\"primary\" size=\"medium\">\n <Hero.Head>\n <Navbar>\n <Container>\n <Navbar.Brand>\n <Navbar.Item as=\"a\" href=\"#home\">\n <Image src=\"/img/bestax-type-white.svg\" alt=\"Bestax\" mx=\"2\" />\n </Navbar.Item>\n <Navbar.Burger\n active={open}\n aria-controls=\"navbarMenuHeroA\"\n onClick={() => setOpen(o => !o)}\n />\n </Navbar.Brand>\n <Navbar.Menu id=\"navbarMenuHeroA\" active={open}>\n <Navbar.End>\n <Navbar.Item as=\"a\" href=\"#getting-started\" active>\n Getting Started\n </Navbar.Item>\n <Navbar.Item as=\"a\" href=\"#apis\">\n APIs\n </Navbar.Item>\n <Navbar.Item as=\"a\" href=\"#blog\">\n Blog\n </Navbar.Item>\n <Navbar.Item as=\"span\">\n <Button\n color=\"primary\"\n isInverted\n as=\"a\"\n href=\"#github\"\n mx=\"2\"\n >\n <Icon library=\"fa\" name=\"github\" variant=\"brands\" />\n <Span>Github</Span>\n </Button>\n </Navbar.Item>\n </Navbar.End>\n </Navbar.Menu>\n </Container>\n </Navbar>\n </Hero.Head>\n\n <Hero.Body>\n <Container textAlign=\"centered\">\n <Title>Bestax</Title>\n <SubTitle>A Bulma Component Library</SubTitle>\n </Container>\n </Hero.Body>\n\n <Hero.Foot>\n <Tabs>\n <Container>\n <ul>\n <Tabs.Item>\n <a href=\"#elements\">Elements</a>\n </Tabs.Item>\n <Tabs.Item>\n <a href=\"#components\">Components</a>\n </Tabs.Item>\n <Tabs.Item>\n <a href=\"#columns\">Columns</a>\n </Tabs.Item>\n <Tabs.Item>\n <a href=\"#grid\">Grid</a>\n </Tabs.Item>\n <Tabs.Item>\n <a href=\"#layout\">Layout</a>\n </Tabs.Item>\n </ul>\n </Container>\n </Tabs>\n </Hero.Foot>\n </Hero>\n );\n}"
26
+ "code": "function example() {\n const [open, setOpen] = useState(false);\n return (\n <Hero color=\"primary\" size=\"medium\">\n <Hero.Head>\n <Navbar>\n <Container>\n <Navbar.Brand>\n <Navbar.Item as=\"a\" href=\"#home\">\n <Image src=\"/img/bestax-type-white.svg\" alt=\"Bestax\" mx=\"2\" />\n </Navbar.Item>\n <Navbar.Burger\n active={open}\n aria-controls=\"navbarMenuHeroA\"\n onClick={() => setOpen(o => !o)}\n />\n </Navbar.Brand>\n <Navbar.Menu id=\"navbarMenuHeroA\" active={open}>\n <Navbar.End>\n <Navbar.Item as=\"a\" href=\"#getting-started\" active>\n Getting Started\n </Navbar.Item>\n <Navbar.Item as=\"a\" href=\"#apis\">\n APIs\n </Navbar.Item>\n <Navbar.Item as=\"a\" href=\"#blog\">\n Blog\n </Navbar.Item>\n <Navbar.Item as=\"span\">\n <Button\n color=\"primary\"\n isInverted\n as=\"a\"\n href=\"#github\"\n mx=\"2\"\n >\n <Icon library=\"fa\" name=\"github\" variant=\"brands\" />\n <Span>Github</Span>\n </Button>\n </Navbar.Item>\n </Navbar.End>\n </Navbar.Menu>\n </Container>\n </Navbar>\n </Hero.Head>\n\n <Hero.Body>\n <Container textAlign=\"centered\">\n <Title>Bestax</Title>\n <SubTitle>A Bulma Component Library</SubTitle>\n </Container>\n </Hero.Body>\n\n <Hero.Foot>\n <Tabs>\n <Container>\n <ul>\n <Tabs.Item>\n <a href=\"#elements\">Elements</a>\n </Tabs.Item>\n <Tabs.Item>\n <a href=\"#components\">Components</a>\n </Tabs.Item>\n <Tabs.Item>\n <a href=\"#columns\">Columns</a>\n </Tabs.Item>\n <Tabs.Item>\n <a href=\"#grid\">Grid</a>\n </Tabs.Item>\n <Tabs.Item>\n <a href=\"#layout\">Layout</a>\n </Tabs.Item>\n </ul>\n </Container>\n </Tabs>\n </Hero.Foot>\n </Hero>\n );\n}",
27
+ "note": "A path under /img/ here stands for a picture your own app serves, such as a file in its public/img/ folder."
27
28
  },
28
29
  {
29
30
  "title": "Landmark Tags",
@@ -7,27 +7,33 @@
7
7
  "examples": [
8
8
  {
9
9
  "title": "Default Image",
10
- "code": "<Image\n src=\"/img/bestax-solar-system-3d.png\"\n alt=\"Sample image\"\n size=\"128x128\"\n/>"
10
+ "code": "<Image\n src=\"/img/bestax-solar-system-3d.png\"\n alt=\"Sample image\"\n size=\"128x128\"\n/>",
11
+ "note": "A path under /img/ here stands for a picture your own app serves, such as a file in its public/img/ folder."
11
12
  },
12
13
  {
13
14
  "title": "Rounded Image",
14
- "code": "<Image\n src=\"/img/bestax-solar-system-3d.png\"\n alt=\"Rounded image\"\n size=\"128x128\"\n isRounded\n/>"
15
+ "code": "<Image\n src=\"/img/bestax-solar-system-3d.png\"\n alt=\"Rounded image\"\n size=\"128x128\"\n isRounded\n/>",
16
+ "note": "A path under /img/ here stands for a picture your own app serves, such as a file in its public/img/ folder."
15
17
  },
16
18
  {
17
19
  "title": "Retina Image",
18
- "code": "<Image\n src=\"/img/bestax-solar-system-3d.png\"\n alt=\"Retina image\"\n size=\"128x128\"\n isRetina\n/>"
20
+ "code": "<Image\n src=\"/img/bestax-solar-system-3d.png\"\n alt=\"Retina image\"\n size=\"128x128\"\n isRetina\n/>",
21
+ "note": "A path under /img/ here stands for a picture your own app serves, such as a file in its public/img/ folder."
19
22
  },
20
23
  {
21
24
  "title": "Aspect Ratio 16:9",
22
- "code": "<Image\n src=\"/img/bestax-solar-system-3d.png\"\n alt=\"16:9 aspect ratio image\"\n size=\"16by9\"\n/>"
25
+ "code": "<Image\n src=\"/img/bestax-solar-system-3d.png\"\n alt=\"16:9 aspect ratio image\"\n size=\"16by9\"\n/>",
26
+ "note": "A path under /img/ here stands for a picture your own app serves, such as a file in its public/img/ folder."
23
27
  },
24
28
  {
25
29
  "title": "Aspect Ratio 4:3",
26
- "code": "<Image\n src=\"/img/bestax-solar-system-3d.png\"\n alt=\"4:3 aspect ratio image\"\n size=\"4by3\"\n/>"
30
+ "code": "<Image\n src=\"/img/bestax-solar-system-3d.png\"\n alt=\"4:3 aspect ratio image\"\n size=\"4by3\"\n/>",
31
+ "note": "A path under /img/ here stands for a picture your own app serves, such as a file in its public/img/ folder."
27
32
  },
28
33
  {
29
34
  "title": "With Margin",
30
- "code": "<Image\n src=\"/img/bestax-solar-system-3d.png\"\n alt=\"Image with margin\"\n size=\"128x128\"\n m=\"4\"\n/>"
35
+ "code": "<Image\n src=\"/img/bestax-solar-system-3d.png\"\n alt=\"Image with margin\"\n size=\"128x128\"\n m=\"4\"\n/>",
36
+ "note": "A path under /img/ here stands for a picture your own app serves, such as a file in its public/img/ folder."
31
37
  },
32
38
  {
33
39
  "title": "With Iframe",
@@ -39,7 +45,8 @@
39
45
  },
40
46
  {
41
47
  "title": "With Text Color and Background",
42
- "code": "<Image\n src=\"/img/bestax-solar-system-3d.png\"\n alt=\"Image with text and background color\"\n size=\"128x128\"\n textColor=\"primary\"\n bgColor=\"light\"\n/>"
48
+ "code": "<Image\n src=\"/img/bestax-solar-system-3d.png\"\n alt=\"Image with text and background color\"\n size=\"128x128\"\n textColor=\"primary\"\n bgColor=\"light\"\n/>",
49
+ "note": "A path under /img/ here stands for a picture your own app serves, such as a file in its public/img/ folder."
43
50
  }
44
51
  ],
45
52
  "accessibility": "- **Alt Text:** Always provide a descriptive `alt` attribute for images.\n- **Aspect Ratios:** Maintains the correct aspect ratio for images, iframes, or any child.\n- **Custom Content:** When embedding iframes or custom children, ensure accessibility via proper ARIA labeling or content.\n\n:::warning\nDo not use `Image` for decorative images without `alt=\"\"`, unless purely presentational.\n:::",
@@ -15,7 +15,8 @@
15
15
  },
16
16
  {
17
17
  "title": "Centered Level Menu",
18
- "code": "<Level>\n <Level.Item as=\"p\" hasTextCentered>\n <Link href=\"#getting-started\" textColor=\"info\">\n Getting Started\n </Link>\n </Level.Item>\n <Level.Item as=\"p\" hasTextCentered>\n <Link href=\"#apis\" textColor=\"info\">\n APIs\n </Link>\n </Level.Item>\n <Level.Item as=\"p\" hasTextCentered>\n <img src=\"/img/bestax-type.svg\" alt=\"Bestax\" style={{ height: 30 }} />\n </Level.Item>\n <Level.Item as=\"p\" hasTextCentered>\n <Link href=\"#versions\" textColor=\"info\">\n Versions\n </Link>\n </Level.Item>\n <Level.Item as=\"p\" hasTextCentered>\n <Link href=\"#faq\" textColor=\"info\">\n FAQ\n </Link>\n </Level.Item>\n</Level>"
18
+ "code": "<Level>\n <Level.Item as=\"p\" hasTextCentered>\n <Link href=\"#getting-started\" textColor=\"info\">\n Getting Started\n </Link>\n </Level.Item>\n <Level.Item as=\"p\" hasTextCentered>\n <Link href=\"#apis\" textColor=\"info\">\n APIs\n </Link>\n </Level.Item>\n <Level.Item as=\"p\" hasTextCentered>\n <img src=\"/img/bestax-type.svg\" alt=\"Bestax\" style={{ height: 30 }} />\n </Level.Item>\n <Level.Item as=\"p\" hasTextCentered>\n <Link href=\"#versions\" textColor=\"info\">\n Versions\n </Link>\n </Level.Item>\n <Level.Item as=\"p\" hasTextCentered>\n <Link href=\"#faq\" textColor=\"info\">\n FAQ\n </Link>\n </Level.Item>\n</Level>",
19
+ "note": "A path under /img/ here stands for a picture your own app serves, such as a file in its public/img/ folder."
19
20
  },
20
21
  {
21
22
  "title": "Mobile Level",
@@ -7,19 +7,23 @@
7
7
  "examples": [
8
8
  {
9
9
  "title": "Basic Usage",
10
- "code": "function example() {\n const photos = [\n {\n src: '/img/carousel/carousel-banner-1.jpg',\n alt: 'Vibrant galaxy with purple and gold tones',\n caption: 'A galaxy in purple and gold',\n },\n {\n src: '/img/carousel/carousel-banner-2.jpg',\n alt: 'Milky Way over silhouetted mountains',\n },\n {\n src: '/img/carousel/carousel-banner-3.jpg',\n alt: 'Starry night sky over mountain silhouettes',\n },\n ];\n\n return (\n <Lightbox items={photos}>\n <Columns isMobile>\n {photos.map((photo, i) => (\n <Column key={photo.src} size=\"one-third\">\n <Lightbox.Trigger index={i}>\n <Image as=\"div\" src={photo.src} alt={photo.alt} size=\"4by3\" />\n </Lightbox.Trigger>\n </Column>\n ))}\n </Columns>\n </Lightbox>\n );\n}"
10
+ "code": "function example() {\n const photos = [\n {\n src: '/img/carousel/carousel-banner-1.jpg',\n alt: 'Vibrant galaxy with purple and gold tones',\n caption: 'A galaxy in purple and gold',\n },\n {\n src: '/img/carousel/carousel-banner-2.jpg',\n alt: 'Milky Way over silhouetted mountains',\n },\n {\n src: '/img/carousel/carousel-banner-3.jpg',\n alt: 'Starry night sky over mountain silhouettes',\n },\n ];\n\n return (\n <Lightbox items={photos}>\n <Columns isMobile>\n {photos.map((photo, i) => (\n <Column key={photo.src} size=\"one-third\">\n <Lightbox.Trigger index={i}>\n <Image as=\"div\" src={photo.src} alt={photo.alt} size=\"4by3\" />\n </Lightbox.Trigger>\n </Column>\n ))}\n </Columns>\n </Lightbox>\n );\n}",
11
+ "note": "A path under /img/ here stands for a picture your own app serves, such as a file in its public/img/ folder."
11
12
  },
12
13
  {
13
14
  "title": "A Button That Opens the Album",
14
- "code": "function example() {\n const photos = [\n {\n src: '/img/carousel/carousel-banner-3.jpg',\n alt: 'Starry night sky over mountain silhouettes',\n },\n {\n src: '/img/carousel/carousel-banner-2.jpg',\n alt: 'Milky Way over silhouetted mountains',\n },\n {\n src: '/img/carousel/carousel-banner-1.jpg',\n alt: 'Vibrant galaxy with purple and gold tones',\n },\n ];\n\n return (\n <Lightbox items={photos}>\n <Lightbox.Trigger index={0}>\n <Image as=\"div\" src={photos[0].src} alt=\"\" size=\"16by9\" />\n <Span display=\"block\" mt=\"2\" textWeight=\"semibold\">\n View all {photos.length} photos\n </Span>\n </Lightbox.Trigger>\n </Lightbox>\n );\n}"
15
+ "code": "function example() {\n const photos = [\n {\n src: '/img/carousel/carousel-banner-3.jpg',\n alt: 'Starry night sky over mountain silhouettes',\n },\n {\n src: '/img/carousel/carousel-banner-2.jpg',\n alt: 'Milky Way over silhouetted mountains',\n },\n {\n src: '/img/carousel/carousel-banner-1.jpg',\n alt: 'Vibrant galaxy with purple and gold tones',\n },\n ];\n\n return (\n <Lightbox items={photos}>\n <Lightbox.Trigger index={0}>\n <Image as=\"div\" src={photos[0].src} alt=\"\" size=\"16by9\" />\n <Span display=\"block\" mt=\"2\" textWeight=\"semibold\">\n View all {photos.length} photos\n </Span>\n </Lightbox.Trigger>\n </Lightbox>\n );\n}",
16
+ "note": "A path under /img/ here stands for a picture your own app serves, such as a file in its public/img/ folder."
15
17
  },
16
18
  {
17
19
  "title": "A Button That Opens the Album",
18
- "code": "<Lightbox\n items={[\n {\n src: '/img/carousel/carousel-banner-2.jpg',\n alt: 'Milky Way over silhouetted mountains',\n },\n ]}\n>\n <Lightbox.Trigger as={Button} color=\"link\" index={0}>\n Open the photo\n </Lightbox.Trigger>\n</Lightbox>"
20
+ "code": "<Lightbox\n items={[\n {\n src: '/img/carousel/carousel-banner-2.jpg',\n alt: 'Milky Way over silhouetted mountains',\n },\n ]}\n>\n <Lightbox.Trigger as={Button} color=\"link\" index={0}>\n Open the photo\n </Lightbox.Trigger>\n</Lightbox>",
21
+ "note": "A path under /img/ here stands for a picture your own app serves, such as a file in its public/img/ folder."
19
22
  },
20
23
  {
21
24
  "title": "Captions and Sizes",
22
- "code": "function example() {\n const photos = [\n {\n src: '/img/carousel/carousel-banner-2.jpg',\n alt: 'Milky Way over silhouetted mountains',\n caption: (\n <>\n <strong>The Milky Way</strong>, over a line of peaks\n </>\n ),\n },\n {\n src: '/img/carousel/carousel-banner-3.jpg',\n alt: 'Starry night sky over mountain silhouettes',\n caption: 'Stars over the mountains',\n },\n ];\n\n return (\n <Lightbox items={photos}>\n <Buttons>\n {photos.map((photo, i) => (\n <Lightbox.Trigger key={photo.src} as={Button} index={i}>\n Photo {i + 1}\n </Lightbox.Trigger>\n ))}\n </Buttons>\n </Lightbox>\n );\n}"
25
+ "code": "function example() {\n const photos = [\n {\n src: '/img/carousel/carousel-banner-2.jpg',\n alt: 'Milky Way over silhouetted mountains',\n caption: (\n <>\n <strong>The Milky Way</strong>, over a line of peaks\n </>\n ),\n },\n {\n src: '/img/carousel/carousel-banner-3.jpg',\n alt: 'Starry night sky over mountain silhouettes',\n caption: 'Stars over the mountains',\n },\n ];\n\n return (\n <Lightbox items={photos}>\n <Buttons>\n {photos.map((photo, i) => (\n <Lightbox.Trigger key={photo.src} as={Button} index={i}>\n Photo {i + 1}\n </Lightbox.Trigger>\n ))}\n </Buttons>\n </Lightbox>\n );\n}",
26
+ "note": "A path under /img/ here stands for a picture your own app serves, such as a file in its public/img/ folder."
23
27
  },
24
28
  {
25
29
  "title": "Captions and Sizes",
@@ -27,19 +31,23 @@
27
31
  },
28
32
  {
29
33
  "title": "Keeping the Image in the URL",
30
- "code": "function example() {\n const [photo, setPhoto] = useState<number>();\n const photos = [\n {\n src: '/img/carousel/carousel-banner-1.jpg',\n alt: 'Vibrant galaxy with purple and gold tones',\n },\n {\n src: '/img/carousel/carousel-banner-2.jpg',\n alt: 'Milky Way over silhouetted mountains',\n },\n {\n src: '/img/carousel/carousel-banner-3.jpg',\n alt: 'Starry night sky over mountain silhouettes',\n },\n ];\n\n return (\n <>\n <Paragraph mb=\"3\">\n {photo === undefined ? 'No photo open.' : `?photo=${photo + 1}`}\n </Paragraph>\n <Button onClick={() => setPhoto(2)}>Open the third photo</Button>\n <Lightbox\n items={photos}\n open={photo !== undefined}\n onOpenChange={open => !open && setPhoto(undefined)}\n value={photo ?? 0}\n onChange={setPhoto}\n />\n </>\n );\n}"
34
+ "code": "function example() {\n const [photo, setPhoto] = useState<number>();\n const photos = [\n {\n src: '/img/carousel/carousel-banner-1.jpg',\n alt: 'Vibrant galaxy with purple and gold tones',\n },\n {\n src: '/img/carousel/carousel-banner-2.jpg',\n alt: 'Milky Way over silhouetted mountains',\n },\n {\n src: '/img/carousel/carousel-banner-3.jpg',\n alt: 'Starry night sky over mountain silhouettes',\n },\n ];\n\n return (\n <>\n <Paragraph mb=\"3\">\n {photo === undefined ? 'No photo open.' : `?photo=${photo + 1}`}\n </Paragraph>\n <Button onClick={() => setPhoto(2)}>Open the third photo</Button>\n <Lightbox\n items={photos}\n open={photo !== undefined}\n onOpenChange={open => !open && setPhoto(undefined)}\n value={photo ?? 0}\n onChange={setPhoto}\n />\n </>\n );\n}",
35
+ "note": "A path under /img/ here stands for a picture your own app serves, such as a file in its public/img/ folder."
31
36
  },
32
37
  {
33
38
  "title": "Zoom",
34
- "code": "<Lightbox\n maxZoom={6}\n items={[\n {\n src: '/img/carousel/carousel-banner-2.jpg',\n alt: 'Milky Way over silhouetted mountains',\n caption: 'Zoom in on the stars',\n },\n ]}\n>\n <Lightbox.Trigger as={Button} index={0}>\n Open the tall photo\n </Lightbox.Trigger>\n</Lightbox>"
39
+ "code": "<Lightbox\n maxZoom={6}\n items={[\n {\n src: '/img/carousel/carousel-banner-2.jpg',\n alt: 'Milky Way over silhouetted mountains',\n caption: 'Zoom in on the stars',\n },\n ]}\n>\n <Lightbox.Trigger as={Button} index={0}>\n Open the tall photo\n </Lightbox.Trigger>\n</Lightbox>",
40
+ "note": "A path under /img/ here stands for a picture your own app serves, such as a file in its public/img/ folder."
35
41
  },
36
42
  {
37
43
  "title": "Other Languages and Right to Left",
38
- "code": "function example() {\n const arabic = new Intl.NumberFormat('ar-EG');\n const photos = [\n {\n src: '/img/carousel/carousel-banner-2.jpg',\n alt: 'درب التبانة فوق ظلال الجبال',\n },\n {\n src: '/img/carousel/carousel-banner-3.jpg',\n alt: 'سماء ليلية مرصعة بالنجوم فوق قمم الجبال',\n },\n ];\n\n return (\n <LocaleProvider dir=\"rtl\" locale=\"ar-EG\">\n <Lightbox\n items={photos}\n ariaLabel=\"عارض الصور\"\n labels={{\n close: 'إغلاق',\n previous: 'الصورة السابقة',\n next: 'الصورة التالية',\n zoomIn: 'تكبير',\n zoomOut: 'تصغير',\n resetZoom: 'إعادة الحجم',\n loading: 'جارٍ تحميل الصورة',\n loadError: 'تعذّر تحميل هذه الصورة.',\n retry: 'إعادة المحاولة',\n progress: (current, total) =>\n `الصورة ${arabic.format(current)} من ${arabic.format(total)}`,\n }}\n >\n <Lightbox.Trigger as={Button} index={0}>\n عرض الصور\n </Lightbox.Trigger>\n </Lightbox>\n </LocaleProvider>\n );\n}"
44
+ "code": "function example() {\n const arabic = new Intl.NumberFormat('ar-EG');\n const photos = [\n {\n src: '/img/carousel/carousel-banner-2.jpg',\n alt: 'درب التبانة فوق ظلال الجبال',\n },\n {\n src: '/img/carousel/carousel-banner-3.jpg',\n alt: 'سماء ليلية مرصعة بالنجوم فوق قمم الجبال',\n },\n ];\n\n return (\n <LocaleProvider dir=\"rtl\" locale=\"ar-EG\">\n <Lightbox\n items={photos}\n ariaLabel=\"عارض الصور\"\n labels={{\n close: 'إغلاق',\n previous: 'الصورة السابقة',\n next: 'الصورة التالية',\n zoomIn: 'تكبير',\n zoomOut: 'تصغير',\n resetZoom: 'إعادة الحجم',\n loading: 'جارٍ تحميل الصورة',\n loadError: 'تعذّر تحميل هذه الصورة.',\n retry: 'إعادة المحاولة',\n progress: (current, total) =>\n `الصورة ${arabic.format(current)} من ${arabic.format(total)}`,\n }}\n >\n <Lightbox.Trigger as={Button} index={0}>\n عرض الصور\n </Lightbox.Trigger>\n </Lightbox>\n </LocaleProvider>\n );\n}",
45
+ "note": "A path under /img/ here stands for a picture your own app serves, such as a file in its public/img/ folder."
39
46
  },
40
47
  {
41
48
  "title": "Compound (dot-notation) usage",
42
- "code": "<Lightbox\n items={[\n {\n src: '/img/carousel/carousel-banner-1.jpg',\n alt: 'Vibrant galaxy with purple and gold tones',\n },\n {\n src: '/img/carousel/carousel-banner-3.jpg',\n alt: 'Starry night sky over mountain silhouettes',\n },\n ]}\n>\n <Buttons>\n <LightboxTrigger as={Button} index={0}>\n LightboxTrigger\n </LightboxTrigger>\n <Lightbox.Trigger as={Button} index={1}>\n Lightbox.Trigger\n </Lightbox.Trigger>\n </Buttons>\n</Lightbox>"
49
+ "code": "<Lightbox\n items={[\n {\n src: '/img/carousel/carousel-banner-1.jpg',\n alt: 'Vibrant galaxy with purple and gold tones',\n },\n {\n src: '/img/carousel/carousel-banner-3.jpg',\n alt: 'Starry night sky over mountain silhouettes',\n },\n ]}\n>\n <Buttons>\n <LightboxTrigger as={Button} index={0}>\n LightboxTrigger\n </LightboxTrigger>\n <Lightbox.Trigger as={Button} index={1}>\n Lightbox.Trigger\n </Lightbox.Trigger>\n </Buttons>\n</Lightbox>",
50
+ "note": "A path under /img/ here stands for a picture your own app serves, such as a file in its public/img/ folder."
43
51
  }
44
52
  ],
45
53
  "accessibility": "- **A modal dialog:** the viewer is a `Modal` with `role=\"dialog\"` and `aria-modal`, named by\n `ariaLabel` (\"Image viewer\" by default) rather than by the image's alt, which changes with every\n image. Focus moves to the close button when it opens, Tab stays inside, Escape closes it when\n it's the topmost overlay, and focus goes back to the trigger, or to whatever had it when `open`\n was set.\n- **Real triggers:** each `Lightbox.Trigger` is a `<button type=\"button\" aria-haspopup=\"dialog\">`,\n or the button `Button` renders with `as={Button}`, named by its content. So the thumbnail's `alt`\n is the button's name, as long as it isn't inside a `<figure>` (give a ratio `Image` `as=\"div\"`).\n- **Every image has an alt:** `alt` is required in the type, a development build warns once for an\n item without one, and the caption is the `<figure>`'s `<figcaption>`, which names it.\n- **Moves are announced:** after the viewer opens and after each move, a polite status line says\n \"Image 3 of 10: Harbour at dusk\", from `labels.progress` and the image's alt. The visible counter\n is hidden from screen readers, so it isn't read twice. For an image that fails to load, the line\n starts with `labels.loadError`: \"This image didn't load. Image 3 of 10: Harbour at dusk\", and a\n Retry that fails again is announced again.\n- **At the ends:** with `repeat={false}`, the previous or next button is `aria-disabled` but stays in\n the tab order, so focus isn't dropped when it stops working. The zoom buttons do the same at their\n limits.\n- **Single-pointer alternatives:** pinch has the zoom buttons and a double click or tap. Panning a\n zoomed image is a drag, so zoom-out and reset are always one press away, and the arrow keys pan.\n- **Right to left:** the arrows, the keys and swipes follow the reading direction, so the next\n image is always the way the next arrow points.\n- **Contrast:** the counter, the caption and the buttons' icons are white on Bulma's near-black\n modal background in both schemes, well over the 4.5:1 WCAG asks of text.\n- **Forced colors:** the buttons draw their borders in the system's colors and the focus ring\n shows. A button that does nothing at an end or a zoom limit draws in the system's color for a\n disabled control, at full strength rather than faded.\n- **Motion:** the open fade, the crossfade between images and the zoom transition stop under\n `prefers-reduced-motion: reduce`.",
@@ -7,23 +7,28 @@
7
7
  "examples": [
8
8
  {
9
9
  "title": "Default Media",
10
- "code": "<Media>\n <Media.Left>\n <Image\n as=\"p\"\n size=\"64x64\"\n src=\"/img/carousel/carousel-banner-1-1by1.jpg\"\n alt=\"\"\n />\n </Media.Left>\n <Media.Content>\n <Content>\n <Paragraph>\n <Strong>Alexander Hamilton</Strong> <small>@hamilton</small>{' '}\n <small>31m</small>\n <br />\n If men were angels, no government would be necessary. If angels were to\n govern men, neither external nor internal controls on government would\n be necessary.\n </Paragraph>\n </Content>\n <Level as=\"div\" isMobile>\n <Level.Left>\n <Level.Item>\n <IconButton\n color=\"text\"\n size=\"small\"\n icon=\"reply\"\n aria-label=\"Reply\"\n />\n </Level.Item>\n <Level.Item>\n <IconButton\n color=\"text\"\n size=\"small\"\n icon=\"retweet\"\n aria-label=\"Retweet\"\n />\n </Level.Item>\n <Level.Item>\n <IconButton\n color=\"text\"\n size=\"small\"\n icon=\"heart\"\n aria-label=\"Like\"\n />\n </Level.Item>\n </Level.Left>\n </Level>\n </Media.Content>\n <Media.Right>\n <Delete aria-label=\"delete\" />\n </Media.Right>\n</Media>"
10
+ "code": "<Media>\n <Media.Left>\n <Image\n as=\"p\"\n size=\"64x64\"\n src=\"/img/carousel/carousel-banner-1-1by1.jpg\"\n alt=\"\"\n />\n </Media.Left>\n <Media.Content>\n <Content>\n <Paragraph>\n <Strong>Alexander Hamilton</Strong> <small>@hamilton</small>{' '}\n <small>31m</small>\n <br />\n If men were angels, no government would be necessary. If angels were to\n govern men, neither external nor internal controls on government would\n be necessary.\n </Paragraph>\n </Content>\n <Level as=\"div\" isMobile>\n <Level.Left>\n <Level.Item>\n <IconButton\n color=\"text\"\n size=\"small\"\n icon=\"reply\"\n aria-label=\"Reply\"\n />\n </Level.Item>\n <Level.Item>\n <IconButton\n color=\"text\"\n size=\"small\"\n icon=\"retweet\"\n aria-label=\"Retweet\"\n />\n </Level.Item>\n <Level.Item>\n <IconButton\n color=\"text\"\n size=\"small\"\n icon=\"heart\"\n aria-label=\"Like\"\n />\n </Level.Item>\n </Level.Left>\n </Level>\n </Media.Content>\n <Media.Right>\n <Delete aria-label=\"delete\" />\n </Media.Right>\n</Media>",
11
+ "note": "A path under /img/ here stands for a picture your own app serves, such as a file in its public/img/ folder."
11
12
  },
12
13
  {
13
14
  "title": "Media With Inputs",
14
- "code": "<Media>\n <Media.Left>\n <Image\n as=\"p\"\n size=\"64x64\"\n src=\"/img/carousel/carousel-banner-1-1by1.jpg\"\n alt=\"\"\n />\n </Media.Left>\n <Media.Content>\n <Field>\n <Control as=\"p\">\n <TextArea placeholder=\"Add a comment...\" />\n </Control>\n </Field>\n <Level as=\"div\">\n <Level.Left>\n <Level.Item>\n <Button color=\"info\">Submit</Button>\n </Level.Item>\n </Level.Left>\n <Level.Right>\n <Level.Item>\n <Checkbox>Press enter to submit</Checkbox>\n </Level.Item>\n </Level.Right>\n </Level>\n </Media.Content>\n</Media>"
15
+ "code": "<Media>\n <Media.Left>\n <Image\n as=\"p\"\n size=\"64x64\"\n src=\"/img/carousel/carousel-banner-1-1by1.jpg\"\n alt=\"\"\n />\n </Media.Left>\n <Media.Content>\n <Field>\n <Control as=\"p\">\n <TextArea placeholder=\"Add a comment...\" />\n </Control>\n </Field>\n <Level as=\"div\">\n <Level.Left>\n <Level.Item>\n <Button color=\"info\">Submit</Button>\n </Level.Item>\n </Level.Left>\n <Level.Right>\n <Level.Item>\n <Checkbox>Press enter to submit</Checkbox>\n </Level.Item>\n </Level.Right>\n </Level>\n </Media.Content>\n</Media>",
16
+ "note": "A path under /img/ here stands for a picture your own app serves, such as a file in its public/img/ folder."
15
17
  },
16
18
  {
17
19
  "title": "Nested Media",
18
- "code": "<Media>\n <Media.Left>\n <Image\n as=\"p\"\n size=\"64x64\"\n src=\"/img/carousel/carousel-banner-1-1by1.jpg\"\n alt=\"\"\n />\n </Media.Left>\n <Media.Content>\n <Content>\n <Paragraph>\n <Strong>John Jay</Strong>\n <br />\n The people, in their collective capacity, are the ultimate authority.\n The Union is essential to the security of the people of America against\n foreign danger.\n <br />\n <small>\n <LinkButton variant=\"underline\" size=\"small\" color=\"link\">\n Like\n </LinkButton>{' '}\n &middot;{' '}\n <LinkButton variant=\"underline\" size=\"small\" color=\"link\">\n Reply\n </LinkButton>{' '}\n &middot; 3 hrs\n </small>\n </Paragraph>\n </Content>\n {/* First nested media */}\n <Media>\n <Media.Left>\n <Image\n as=\"p\"\n size=\"48x48\"\n src=\"/img/carousel/carousel-banner-2-1by1.jpg\"\n alt=\"\"\n />\n </Media.Left>\n <Media.Content>\n <Content>\n <Paragraph>\n <Strong>James Madison</Strong>\n <br />\n The accumulation of all powers, legislative, executive, and\n judiciary, in the same hands, may justly be pronounced the very\n definition of tyranny.\n <br />\n <small>\n <LinkButton variant=\"underline\" size=\"small\" color=\"link\">\n Like\n </LinkButton>{' '}\n &middot;{' '}\n <LinkButton variant=\"underline\" size=\"small\" color=\"link\">\n Reply\n </LinkButton>{' '}\n &middot; 2 hrs\n </small>\n </Paragraph>\n </Content>\n {/* 2nd nested media (two siblings) */}\n <Media>\n Experience has taught mankind the necessity of auxiliary precautions.\n </Media>\n <Media>Ambition must be made to counteract ambition.</Media>\n </Media.Content>\n </Media>\n {/* Second nested media */}\n <Media>\n <Media.Left>\n <Image\n as=\"p\"\n size=\"48x48\"\n src=\"/img/carousel/carousel-banner-3-1by1.jpg\"\n alt=\"\"\n />\n </Media.Left>\n <Media.Content>\n <Content>\n <Paragraph>\n <Strong>Alexander Hamilton</Strong>\n <br />\n Safety from external danger is the most powerful director of\n national conduct. The desire for respect and security will always\n influence the policy of nations.\n <br />\n <small>\n <LinkButton variant=\"underline\" size=\"small\" color=\"link\">\n Like\n </LinkButton>{' '}\n &middot;{' '}\n <LinkButton variant=\"underline\" size=\"small\" color=\"link\">\n Reply\n </LinkButton>{' '}\n &middot; 2 hrs\n </small>\n </Paragraph>\n </Content>\n </Media.Content>\n </Media>\n </Media.Content>\n</Media>"
20
+ "code": "<Media>\n <Media.Left>\n <Image\n as=\"p\"\n size=\"64x64\"\n src=\"/img/carousel/carousel-banner-1-1by1.jpg\"\n alt=\"\"\n />\n </Media.Left>\n <Media.Content>\n <Content>\n <Paragraph>\n <Strong>John Jay</Strong>\n <br />\n The people, in their collective capacity, are the ultimate authority.\n The Union is essential to the security of the people of America against\n foreign danger.\n <br />\n <small>\n <LinkButton variant=\"underline\" size=\"small\" color=\"link\">\n Like\n </LinkButton>{' '}\n &middot;{' '}\n <LinkButton variant=\"underline\" size=\"small\" color=\"link\">\n Reply\n </LinkButton>{' '}\n &middot; 3 hrs\n </small>\n </Paragraph>\n </Content>\n {/* First nested media */}\n <Media>\n <Media.Left>\n <Image\n as=\"p\"\n size=\"48x48\"\n src=\"/img/carousel/carousel-banner-2-1by1.jpg\"\n alt=\"\"\n />\n </Media.Left>\n <Media.Content>\n <Content>\n <Paragraph>\n <Strong>James Madison</Strong>\n <br />\n The accumulation of all powers, legislative, executive, and\n judiciary, in the same hands, may justly be pronounced the very\n definition of tyranny.\n <br />\n <small>\n <LinkButton variant=\"underline\" size=\"small\" color=\"link\">\n Like\n </LinkButton>{' '}\n &middot;{' '}\n <LinkButton variant=\"underline\" size=\"small\" color=\"link\">\n Reply\n </LinkButton>{' '}\n &middot; 2 hrs\n </small>\n </Paragraph>\n </Content>\n {/* 2nd nested media (two siblings) */}\n <Media>\n Experience has taught mankind the necessity of auxiliary precautions.\n </Media>\n <Media>Ambition must be made to counteract ambition.</Media>\n </Media.Content>\n </Media>\n {/* Second nested media */}\n <Media>\n <Media.Left>\n <Image\n as=\"p\"\n size=\"48x48\"\n src=\"/img/carousel/carousel-banner-3-1by1.jpg\"\n alt=\"\"\n />\n </Media.Left>\n <Media.Content>\n <Content>\n <Paragraph>\n <Strong>Alexander Hamilton</Strong>\n <br />\n Safety from external danger is the most powerful director of\n national conduct. The desire for respect and security will always\n influence the policy of nations.\n <br />\n <small>\n <LinkButton variant=\"underline\" size=\"small\" color=\"link\">\n Like\n </LinkButton>{' '}\n &middot;{' '}\n <LinkButton variant=\"underline\" size=\"small\" color=\"link\">\n Reply\n </LinkButton>{' '}\n &middot; 2 hrs\n </small>\n </Paragraph>\n </Content>\n </Media.Content>\n </Media>\n </Media.Content>\n</Media>",
21
+ "note": "A path under /img/ here stands for a picture your own app serves, such as a file in its public/img/ folder."
19
22
  },
20
23
  {
21
24
  "title": "Media With Button Below",
22
- "code": "<Media>\n <Media.Left>\n <Image\n as=\"p\"\n size=\"64x64\"\n src=\"/img/carousel/carousel-banner-1-1by1.jpg\"\n alt=\"\"\n />\n </Media.Left>\n <Media.Content>\n <Field>\n <Control as=\"p\">\n <TextArea placeholder=\"Add a comment...\" />\n </Control>\n </Field>\n <Field>\n <Control as=\"p\">\n <Button>Post comment</Button>\n </Control>\n </Field>\n </Media.Content>\n</Media>"
25
+ "code": "<Media>\n <Media.Left>\n <Image\n as=\"p\"\n size=\"64x64\"\n src=\"/img/carousel/carousel-banner-1-1by1.jpg\"\n alt=\"\"\n />\n </Media.Left>\n <Media.Content>\n <Field>\n <Control as=\"p\">\n <TextArea placeholder=\"Add a comment...\" />\n </Control>\n </Field>\n <Field>\n <Control as=\"p\">\n <Button>Post comment</Button>\n </Control>\n </Field>\n </Media.Content>\n</Media>",
26
+ "note": "A path under /img/ here stands for a picture your own app serves, such as a file in its public/img/ folder."
23
27
  },
24
28
  {
25
29
  "title": "Compound (dot-notation) usage",
26
- "code": "<Media>\n <Media.Left>\n <Image\n as=\"p\"\n size=\"64x64\"\n src=\"/img/carousel/carousel-banner-1-1by1.jpg\"\n alt=\"\"\n />\n </Media.Left>\n <Media.Content>\n <Content>\n <p>\n <strong>John Smith</strong> <small>@johnsmith</small>\n <br />\n Composed entirely from the single Media import via dot notation.\n </p>\n </Content>\n </Media.Content>\n <Media.Right>\n <Button size=\"small\">Reply</Button>\n </Media.Right>\n</Media>"
30
+ "code": "<Media>\n <Media.Left>\n <Image\n as=\"p\"\n size=\"64x64\"\n src=\"/img/carousel/carousel-banner-1-1by1.jpg\"\n alt=\"\"\n />\n </Media.Left>\n <Media.Content>\n <Content>\n <p>\n <strong>John Smith</strong> <small>@johnsmith</small>\n <br />\n Composed entirely from the single Media import via dot notation.\n </p>\n </Content>\n </Media.Content>\n <Media.Right>\n <Button size=\"small\">Reply</Button>\n </Media.Right>\n</Media>",
31
+ "note": "A path under /img/ here stands for a picture your own app serves, such as a file in its public/img/ folder."
27
32
  }
28
33
  ],
29
34
  "accessibility": "- The Media root renders as a semantic `<article>` by default. Use `as=\"div\"` for a generic container.\n- The left section is commonly used for avatars (as `<figure>`) and is screen-reader accessible.\n- Use clear and descriptive text in content and actions for best accessibility.\n- The `Level` rows in these examples hold actions, not navigation, so they pass `as=\"div\"` rather than render Level's default `<nav>`, a navigation landmark.\n- Make an action a `<button>`, like the icon-only [`IconButton`](https://bestax.io/docs/api/elements/iconbutton)s in the first example, which require a name (`aria-label`) and hide their glyph from assistive technology. Make it a link only when it goes somewhere, with an `href`: an `<a>` without one takes no keyboard focus and isn't announced as anything to activate.\n\n:::note\nWhen using only icons or controls, provide `aria-label` or screen-reader-only content as appropriate.\n:::",
@@ -7,11 +7,13 @@
7
7
  "examples": [
8
8
  {
9
9
  "title": "Complete Navbar with Burger and Menu",
10
- "code": "function example() {\n const [active, setActive] = useState(false);\n\n return (\n <Navbar>\n <Navbar.Brand>\n <Navbar.Item href=\"#\">\n <img src=\"/img/logo.svg\" alt=\"Logo\" width=\"28\" height=\"28\" />\n </Navbar.Item>\n <Navbar.Burger\n active={active}\n onClick={() => setActive(a => !a)}\n aria-label=\"menu\"\n aria-expanded={active}\n />\n </Navbar.Brand>\n <Navbar.Menu active={active}>\n <Navbar.Start>\n <Navbar.Item href=\"#\">Home</Navbar.Item>\n <Navbar.Item href=\"#\">Docs</Navbar.Item>\n <Navbar.Item href=\"#\">About</Navbar.Item>\n <Navbar.Item href=\"#\">Contact</Navbar.Item>\n </Navbar.Start>\n <Navbar.End>\n <Navbar.Item href=\"#\">Login</Navbar.Item>\n </Navbar.End>\n </Navbar.Menu>\n </Navbar>\n );\n}"
10
+ "code": "function example() {\n const [active, setActive] = useState(false);\n\n return (\n <Navbar>\n <Navbar.Brand>\n <Navbar.Item href=\"#\">\n <img src=\"/img/logo.svg\" alt=\"Logo\" width=\"28\" height=\"28\" />\n </Navbar.Item>\n <Navbar.Burger\n active={active}\n onClick={() => setActive(a => !a)}\n aria-label=\"menu\"\n aria-expanded={active}\n />\n </Navbar.Brand>\n <Navbar.Menu active={active}>\n <Navbar.Start>\n <Navbar.Item href=\"#\">Home</Navbar.Item>\n <Navbar.Item href=\"#\">Docs</Navbar.Item>\n <Navbar.Item href=\"#\">About</Navbar.Item>\n <Navbar.Item href=\"#\">Contact</Navbar.Item>\n </Navbar.Start>\n <Navbar.End>\n <Navbar.Item href=\"#\">Login</Navbar.Item>\n </Navbar.End>\n </Navbar.Menu>\n </Navbar>\n );\n}",
11
+ "note": "A path under /img/ here stands for a picture your own app serves, such as a file in its public/img/ folder."
11
12
  },
12
13
  {
13
14
  "title": "Brand Only",
14
- "code": "<Navbar>\n <Navbar.Brand>\n <Navbar.Item href=\"#\">\n <img src=\"/img/logo.svg\" alt=\"Logo\" width=\"28\" height=\"28\" />\n </Navbar.Item>\n </Navbar.Brand>\n</Navbar>"
15
+ "code": "<Navbar>\n <Navbar.Brand>\n <Navbar.Item href=\"#\">\n <img src=\"/img/logo.svg\" alt=\"Logo\" width=\"28\" height=\"28\" />\n </Navbar.Item>\n </Navbar.Brand>\n</Navbar>",
16
+ "note": "A path under /img/ here stands for a picture your own app serves, such as a file in its public/img/ folder."
15
17
  },
16
18
  {
17
19
  "title": "Burger Only",
@@ -27,7 +29,8 @@
27
29
  },
28
30
  {
29
31
  "title": "Navigation Links and Dropdowns",
30
- "code": "<Navbar>\n <Navbar.Brand>\n <Navbar.Item href=\"#\">\n <img src=\"/img/logo.svg\" alt=\"Logo\" width=\"28\" height=\"28\" />\n </Navbar.Item>\n </Navbar.Brand>\n <Navbar.Menu active>\n <Navbar.Start>\n <Navbar.Item href=\"#\">Home</Navbar.Item>\n <Navbar.Item href=\"#\">Docs</Navbar.Item>\n <Navbar.Dropdown hoverable>\n <Navbar.Link>More</Navbar.Link>\n <Navbar.DropdownMenu>\n <Navbar.Item href=\"#\">About</Navbar.Item>\n <Navbar.Item href=\"#\">Jobs</Navbar.Item>\n <Navbar.Item href=\"#\">Contact</Navbar.Item>\n <Navbar.Divider />\n <Navbar.Item href=\"#\">Report an issue</Navbar.Item>\n </Navbar.DropdownMenu>\n </Navbar.Dropdown>\n </Navbar.Start>\n </Navbar.Menu>\n</Navbar>"
32
+ "code": "<Navbar>\n <Navbar.Brand>\n <Navbar.Item href=\"#\">\n <img src=\"/img/logo.svg\" alt=\"Logo\" width=\"28\" height=\"28\" />\n </Navbar.Item>\n </Navbar.Brand>\n <Navbar.Menu active>\n <Navbar.Start>\n <Navbar.Item href=\"#\">Home</Navbar.Item>\n <Navbar.Item href=\"#\">Docs</Navbar.Item>\n <Navbar.Dropdown hoverable>\n <Navbar.Link>More</Navbar.Link>\n <Navbar.DropdownMenu>\n <Navbar.Item href=\"#\">About</Navbar.Item>\n <Navbar.Item href=\"#\">Jobs</Navbar.Item>\n <Navbar.Item href=\"#\">Contact</Navbar.Item>\n <Navbar.Divider />\n <Navbar.Item href=\"#\">Report an issue</Navbar.Item>\n </Navbar.DropdownMenu>\n </Navbar.Dropdown>\n </Navbar.Start>\n </Navbar.Menu>\n</Navbar>",
33
+ "note": "A path under /img/ here stands for a picture your own app serves, such as a file in its public/img/ folder."
31
34
  },
32
35
  {
33
36
  "title": "Custom Link Component",
@@ -39,11 +42,13 @@
39
42
  },
40
43
  {
41
44
  "title": "Spaced Navbar",
42
- "code": "<Navbar isSpaced>\n <Navbar.Brand>\n <Navbar.Item href=\"#\">\n <img src=\"/img/logo.svg\" alt=\"Logo\" width=\"28\" height=\"28\" />\n </Navbar.Item>\n </Navbar.Brand>\n <Navbar.Menu active>\n <Navbar.Start>\n <Navbar.Item href=\"#\">Home</Navbar.Item>\n <Navbar.Item href=\"#\">Docs</Navbar.Item>\n <Navbar.Dropdown hoverable>\n <Navbar.Link>More</Navbar.Link>\n <Navbar.DropdownMenu>\n <Navbar.Item href=\"#\">About</Navbar.Item>\n <Navbar.Item href=\"#\">Contact</Navbar.Item>\n </Navbar.DropdownMenu>\n </Navbar.Dropdown>\n </Navbar.Start>\n </Navbar.Menu>\n</Navbar>"
45
+ "code": "<Navbar isSpaced>\n <Navbar.Brand>\n <Navbar.Item href=\"#\">\n <img src=\"/img/logo.svg\" alt=\"Logo\" width=\"28\" height=\"28\" />\n </Navbar.Item>\n </Navbar.Brand>\n <Navbar.Menu active>\n <Navbar.Start>\n <Navbar.Item href=\"#\">Home</Navbar.Item>\n <Navbar.Item href=\"#\">Docs</Navbar.Item>\n <Navbar.Dropdown hoverable>\n <Navbar.Link>More</Navbar.Link>\n <Navbar.DropdownMenu>\n <Navbar.Item href=\"#\">About</Navbar.Item>\n <Navbar.Item href=\"#\">Contact</Navbar.Item>\n </Navbar.DropdownMenu>\n </Navbar.Dropdown>\n </Navbar.Start>\n </Navbar.Menu>\n</Navbar>",
46
+ "note": "A path under /img/ here stands for a picture your own app serves, such as a file in its public/img/ folder."
43
47
  },
44
48
  {
45
49
  "title": "Navbar with a Shadow",
46
- "code": "<Navbar hasShadow>\n <Navbar.Brand>\n <Navbar.Item href=\"#\">\n <img src=\"/img/logo.svg\" alt=\"Logo\" width=\"28\" height=\"28\" />\n </Navbar.Item>\n </Navbar.Brand>\n <Navbar.Menu active>\n <Navbar.Start>\n <Navbar.Item href=\"#\">Home</Navbar.Item>\n <Navbar.Item href=\"#\">Docs</Navbar.Item>\n </Navbar.Start>\n </Navbar.Menu>\n</Navbar>"
50
+ "code": "<Navbar hasShadow>\n <Navbar.Brand>\n <Navbar.Item href=\"#\">\n <img src=\"/img/logo.svg\" alt=\"Logo\" width=\"28\" height=\"28\" />\n </Navbar.Item>\n </Navbar.Brand>\n <Navbar.Menu active>\n <Navbar.Start>\n <Navbar.Item href=\"#\">Home</Navbar.Item>\n <Navbar.Item href=\"#\">Docs</Navbar.Item>\n </Navbar.Start>\n </Navbar.Menu>\n</Navbar>",
51
+ "note": "A path under /img/ here stands for a picture your own app serves, such as a file in its public/img/ folder."
47
52
  },
48
53
  {
49
54
  "title": "Fixed Navbar",
@@ -71,7 +76,8 @@
71
76
  },
72
77
  {
73
78
  "title": "Color Modifiers",
74
- "code": "function example() {\n const colors = [\n 'primary',\n 'link',\n 'info',\n 'success',\n 'warning',\n 'danger',\n 'black',\n 'dark',\n 'light',\n 'white',\n ] as const;\n return (\n <>\n {colors.map(color => (\n <Navbar key={color} color={color} mb=\"2\">\n <Navbar.Brand>\n <Navbar.Item href=\"#\">\n <img src=\"/img/logo.svg\" alt=\"Logo\" width=\"28\" height=\"28\" />\n </Navbar.Item>\n </Navbar.Brand>\n <Navbar.Menu active>\n <Navbar.Start>\n <Navbar.Item href=\"#\">Home</Navbar.Item>\n <Navbar.Item href=\"#\">Docs</Navbar.Item>\n <Navbar.Item href=\"#\">Components</Navbar.Item>\n </Navbar.Start>\n </Navbar.Menu>\n </Navbar>\n ))}\n </>\n );\n}"
79
+ "code": "function example() {\n const colors = [\n 'primary',\n 'link',\n 'info',\n 'success',\n 'warning',\n 'danger',\n 'black',\n 'dark',\n 'light',\n 'white',\n ] as const;\n return (\n <>\n {colors.map(color => (\n <Navbar key={color} color={color} mb=\"2\">\n <Navbar.Brand>\n <Navbar.Item href=\"#\">\n <img src=\"/img/logo.svg\" alt=\"Logo\" width=\"28\" height=\"28\" />\n </Navbar.Item>\n </Navbar.Brand>\n <Navbar.Menu active>\n <Navbar.Start>\n <Navbar.Item href=\"#\">Home</Navbar.Item>\n <Navbar.Item href=\"#\">Docs</Navbar.Item>\n <Navbar.Item href=\"#\">Components</Navbar.Item>\n </Navbar.Start>\n </Navbar.Menu>\n </Navbar>\n ))}\n </>\n );\n}",
80
+ "note": "A path under /img/ here stands for a picture your own app serves, such as a file in its public/img/ folder."
75
81
  },
76
82
  {
77
83
  "title": "Forwarded ref",
@@ -79,7 +85,8 @@
79
85
  },
80
86
  {
81
87
  "title": "Compound (dot-notation) usage",
82
- "code": "<Navbar>\n <Navbar.Brand>\n <Navbar.Item href=\"#\">\n <img src=\"/img/logo.svg\" alt=\"Logo\" width=\"28\" height=\"28\" />\n </Navbar.Item>\n <Navbar.Burger aria-label=\"menu\" />\n </Navbar.Brand>\n <Navbar.Menu active>\n <Navbar.Start>\n <Navbar.Item href=\"#\">Home</Navbar.Item>\n <Navbar.Item href=\"#\">Docs</Navbar.Item>\n </Navbar.Start>\n <Navbar.End>\n <Navbar.Item href=\"#\">Log in</Navbar.Item>\n </Navbar.End>\n </Navbar.Menu>\n</Navbar>"
88
+ "code": "<Navbar>\n <Navbar.Brand>\n <Navbar.Item href=\"#\">\n <img src=\"/img/logo.svg\" alt=\"Logo\" width=\"28\" height=\"28\" />\n </Navbar.Item>\n <Navbar.Burger aria-label=\"menu\" />\n </Navbar.Brand>\n <Navbar.Menu active>\n <Navbar.Start>\n <Navbar.Item href=\"#\">Home</Navbar.Item>\n <Navbar.Item href=\"#\">Docs</Navbar.Item>\n </Navbar.Start>\n <Navbar.End>\n <Navbar.Item href=\"#\">Log in</Navbar.Item>\n </Navbar.End>\n </Navbar.Menu>\n</Navbar>",
89
+ "note": "A path under /img/ here stands for a picture your own app serves, such as a file in its public/img/ folder."
83
90
  }
84
91
  ],
85
92
  "accessibility": "- The root `Navbar` renders as `<nav role=\"navigation\" aria-label=\"main navigation\">`.\n The default accessible name is `main navigation`. A screen reader announces it with\n the role, and since the name holds the role word, \"navigation\" is heard twice.\n Pass a name without the role word (`aria-label=\"Site\"`), and a different name\n on each Navbar when a page has more than one. A passed `aria-label` replaces\n the default.\n- `Navbar.Item active` sets `aria-current=\"page\"` on the element `as` renders, the link by\n default, so the current item isn't only a color. An `aria-current` you pass wins: a navbar of\n sections on one page can say `\"location\"`, and `aria-current={false}` turns it off.\n- Bulma fills an active link item with its selected color, the link color in a navbar with no\n `color`, and bestax's styles give its text the color Bulma picks to read on that fill,\n `--bulma-navbar-item-selected-color-l`. Bulma's own stylesheet leaves the text in the navbar's\n normal text color, dark gray on blue on the light scheme, so the rule ships in `bestax.css` and\n `extras.css`. A `--bulma-navbar-item-color` you set on the item itself still wins, and an item\n with a `bgColor` keeps the navbar's text color. A rule of your own that takes the fill off\n restates `color` too.\n- Use semantic links (`<a>`) and buttons, and provide clear `aria-label` and `aria-expanded` for the burger toggle.\n- `Navbar.Link` inside a `Navbar.Dropdown` automatically gets `aria-haspopup=\"true\"` and\n `aria-expanded` synced to the dropdown's open state — no manual wiring required.\n <kbd>Enter</kbd>/<kbd>Space</kbd> toggle the dropdown open/closed, and <kbd>Escape</kbd>\n closes it and keeps focus on the link. <kbd>Escape</kbd> anywhere else in the open dropdown, its\n menu included, puts focus back on the link and closes it too, unless a control there marks the\n key used, the key comes from a dialog or from content opened from the menu into a portal, or\n focus can't go back to the link. Focus landing outside an open dropdown, as <kbd>Tab</kbd> past\n its last item or <kbd>Shift</kbd>+<kbd>Tab</kbd> back past its link does, closes it too, so its\n menu isn't left over the page. A controlled one is told through `onActiveChange` and keeps its\n `active`. Focus moving into content opened from the menu into a portal or into a dialog marked\n `aria-modal`, such as a `Modal` an item opens, which gives focus back to the item when it closes, focus going\n nowhere, as the window losing focus does, and a press outside that doesn't move focus leave it\n open. When the trigger isn't interactive on its own — no\n `href`, not `as=\"button\"`, and not a custom component — it also gets `role=\"button\"` and\n `tabIndex={0}` so it's reachable and operable by keyboard, and a mouse/touch click on it\n toggles the dropdown too (a caller-supplied `onClick` still runs, and can\n `preventDefault()` to opt out).\n- A custom component passed to `as` keeps its own semantics, because a router link takes `to`\n rather than `href` and so can't be recognised from the props it's given. If yours renders\n something non-interactive instead, pass `role=\"button\"` and it takes the fallback above —\n `tabIndex` and click included. The keyboard path is wired either way.\n- `hoverable` dropdowns keep working with a mouse (hover-to-open); the keyboard path above\n opens and closes them independently of hover. Bulma shows a `hoverable` dropdown's menu while\n the pointer is on it and while focus is in it, the link included, on a desktop-wide window.\n <kbd>Escape</kbd> puts a menu shown that way away, and it stays away until the pointer has left\n the dropdown and focus has too, or until the pointer comes back or focus moves onto something in\n it. From the page, the key goes on to what has focus; from inside\n the dropdown, focus moves to the link, with the same exceptions as for an open one, such as focus\n that can't go back to the link, where the menu stays. Below the desktop breakpoint, where the menu always\n shows under the burger, Escape doesn't put it away, though it still closes an open one.\n- **Forced colors:** Bulma draws the burger's bars as a background color, which forced colors\n (Windows' contrast themes) replaces, so the burger would vanish there while it still works and\n takes focus. bestax's styles keep its bars visible in the system's button text color. That rule\n ships in `bestax.css` and `extras.css`, not in Bulma's own stylesheet, and an\n [`AppFrame`](https://bestax.io/docs/api/layout/appframe)'s burger gets it too. Bulma marks an active or selected\n link item, `Navbar.Link` and dropdown row with a fill and a text color alone, which forced\n colors replaces, so bestax's styles draw a bar in the system's highlight color inside it there:\n along its bottom in a row, and down its start edge where the items stack, in a dropdown and in\n the menu the burger opens. The item and everything in it stay in the contrast theme's colors,\n and an active tab gets the bar above Bulma's thicker underline. This ships in the same\n stylesheets.\n- **`Navbar.Divider` in forced colors:** Bulma draws it as a background color too, which forced\n colors paints in the dropdown's own color, so the line would vanish. bestax's styles draw it in\n the system's text color there, from the same stylesheets.\n- **An open dropdown's edge in forced colors:** from the desktop breakpoint up, Bulma draws\n `Navbar.DropdownMenu` as a box over the page, edged with a shadow and, for some, a line on the\n side it opens from. Forced colors drops the shadow and paints the box in the page's own color, so\n bestax's styles draw a one pixel line in the system's text color around it there, outside the\n box, so nothing moves. Under the burger its rows sit in the menu, with no box to edge. This\n ships in the same stylesheets.\n- **In a colored [`Hero`](https://bestax.io/docs/api/layout/hero):** Bulma's hero sets the colors its navbar's items\n take on hover and when active, but Bulma's navbar doesn't read them, so a focused or hovered\n item took the scheme's fill under the hero's text, and the active item and the burger took the\n link color. For a `Navbar` with no `color` of its own, bestax's styles draw a focused, hovered or\n active item in the hero's text color with the hero's background color as its text, the burger\n and a tab in the hero's text color, and the dropdown arrow in its link's text color. The menu the\n burger opens, and the dropdown's rows in it, take the hero's background and text, except an\n active row, which keeps Bulma's selected fill and the text that reads on it, and on a phone a bold hero's menu takes the hero's\n own gradient. Where `Navbar.DropdownMenu` is a box of its own, on a desktop, its links keep\n Bulma's colors. That rule ships in `bestax.css` and `extras.css`, not in Bulma's own stylesheet.\n\n:::note\nThere's no arrow-key roving between navbar items, and a press outside an open `Navbar.Dropdown`\ncloses it only when it moves focus there. A press on a field moves focus in every browser, and\none on a button or a link does in some, such as Chrome, and not in others, such as Safari. Bulma navbar dropdowns are hover/click surfaces, so this is\nintentionally kept simple.\n:::",
@@ -28,11 +28,13 @@
28
28
  },
29
29
  {
30
30
  "title": "Skeleton Examples from useBulmaClasses.stories.tsx › Skeleton Image",
31
- "code": "<Image skeleton src=\"/img/react-logo.png\" alt=\"Skeleton image\" size=\"128x128\" />"
31
+ "code": "<Image skeleton src=\"/img/react-logo.png\" alt=\"Skeleton image\" size=\"128x128\" />",
32
+ "note": "A path under /img/ here stands for a picture your own app serves, such as a file in its public/img/ folder."
32
33
  },
33
34
  {
34
35
  "title": "Skeleton Examples from useBulmaClasses.stories.tsx › Skeleton Media",
35
- "code": "<Media skeleton aria-hidden=\"true\">\n <Media.Left>\n <Image\n skeleton\n as=\"p\"\n size=\"64x64\"\n src=\"/img/carousel/carousel-banner-1-1by1.jpg\"\n alt=\"\"\n />\n </Media.Left>\n <Media.Content>\n <Content>\n <Paragraph>\n <Strong>Skeleton Name</Strong> <small>@skelly</small> <small>1m</small>\n <br />\n This is a skeleton media example.\n </Paragraph>\n </Content>\n </Media.Content>\n</Media>"
36
+ "code": "<Media skeleton aria-hidden=\"true\">\n <Media.Left>\n <Image\n skeleton\n as=\"p\"\n size=\"64x64\"\n src=\"/img/carousel/carousel-banner-1-1by1.jpg\"\n alt=\"\"\n />\n </Media.Left>\n <Media.Content>\n <Content>\n <Paragraph>\n <Strong>Skeleton Name</Strong> <small>@skelly</small> <small>1m</small>\n <br />\n This is a skeleton media example.\n </Paragraph>\n </Content>\n </Media.Content>\n</Media>",
37
+ "note": "A path under /img/ here stands for a picture your own app serves, such as a file in its public/img/ folder."
36
38
  },
37
39
  {
38
40
  "title": "Skeleton Examples from useBulmaClasses.stories.tsx › Skeleton Notification",
@@ -31,7 +31,8 @@
31
31
  },
32
32
  {
33
33
  "title": "A Cover",
34
- "code": "function example() {\n const [open, setOpen] = useState(false);\n\n return (\n <>\n <Button onClick={() => setOpen(true)}>What's new</Button>\n <Tour open={open} onOpenChange={setOpen}>\n <Tour.Step\n title=\"The new editor\"\n cover={<img src=\"/img/carousel/carousel-banner-1-4by3.jpg\" alt=\"\" />}\n >\n The editor now saves as you type.\n </Tour.Step>\n </Tour>\n </>\n );\n}"
34
+ "code": "function example() {\n const [open, setOpen] = useState(false);\n\n return (\n <>\n <Button onClick={() => setOpen(true)}>What's new</Button>\n <Tour open={open} onOpenChange={setOpen}>\n <Tour.Step\n title=\"The new editor\"\n cover={<img src=\"/img/carousel/carousel-banner-1-4by3.jpg\" alt=\"\" />}\n >\n The editor now saves as you type.\n </Tour.Step>\n </Tour>\n </>\n );\n}",
35
+ "note": "A path under /img/ here stands for a picture your own app serves, such as a file in its public/img/ folder."
35
36
  },
36
37
  {
37
38
  "title": "A Footer of Your Own",
@@ -163,7 +163,8 @@
163
163
  },
164
164
  {
165
165
  "title": "Skeleton Examples › Skeleton Image",
166
- "code": "<Image skeleton src=\"/img/react-logo.png\" alt=\"Skeleton image\" size=\"128x128\" />"
166
+ "code": "<Image skeleton src=\"/img/react-logo.png\" alt=\"Skeleton image\" size=\"128x128\" />",
167
+ "note": "A path under /img/ here stands for a picture your own app serves, such as a file in its public/img/ folder."
167
168
  },
168
169
  {
169
170
  "title": "Skeleton Examples › Skeleton Notification",
@@ -196,7 +197,7 @@
196
197
  "summary": "`useBulmaClasses` is a custom React hook that generates Bulma helper class strings from a set of props.",
197
198
  "import": "import { useBulmaClasses } from '@allxsmith/bestax-bulma';",
198
199
  "api": "```tsx\nconst { bulmaHelperClasses, bulmaHelperStyles, rest } = useBulmaClasses(props);\n\n// For an element whose own CSS makes it a flex container:\nconst flex = useBulmaClasses(props, { flexContainer: true });\n```\n\n- **props**: An object supporting all Bulma helper class props (see [Supported Props](https://bestax.io/docs/api/helpers/usebulmaclasses#supported-props)), plus any additional props. `backgroundColor` additionally accepts the six [`validSchemeColors`](https://bestax.io/docs/api/helpers/valid-values) values.\n- **options**: Optional. `{ flexContainer: true }` says the element is a flex container by its own stylesheet, so the flex container props (`flexDirection`, `flexWrap`, `justifyContent`, `alignContent`, `alignItems`) emit their classes with no `display` prop. It adds no display class. [`Stack`](https://bestax.io/docs/api/layout/stack), [`Group`](https://bestax.io/docs/api/layout/group), [`Center`](https://bestax.io/docs/api/layout/center) and [`Flex`](https://bestax.io/docs/api/layout/flex) pass it. Passed through to `useFlexboxClasses`.\n- **bulmaHelperClasses**: A string of Bulma utility classes to be applied to your element.\n- **bulmaHelperStyles**: `React.CSSProperties | undefined` — an inline style for a scheme `backgroundColor` (see [Scheme Backgrounds](https://bestax.io/docs/api/helpers/usebulmaclasses#scheme-backgrounds-and-bulmahelperstyles)); `undefined` for every other input. Apply it with [`mergeBulmaStyles`](https://bestax.io/docs/api/helpers/usebulmaclasses#scheme-backgrounds-and-bulmahelperstyles) so a user `style` prop wins.\n- **rest**: An object of all remaining props (with helper props stripped out), suitable for spreading onto your component.",
199
- "doc": "# useBulmaClasses\n\n## Overview\n\n`useBulmaClasses` is a custom React hook that generates Bulma helper class strings from a set of props. It makes it easy to apply color, spacing, alignment, typography, flexbox, and other Bulma utility classes to your components in a type-safe, composable way. It also separates out any non-helper props for direct use on elements.\n\n---\n\n## Import\n\n```tsx\nimport { useBulmaClasses } from '@allxsmith/bestax-bulma';\n```\n\n---\n\n## Usage\n\n:::info Container components pad themselves\nContainer components like `Box`, `Notification`, `Message`, and `Card` ship with Bulma's standard, pleasant padding and stack with sensible default spacing. The examples below only add margin or padding props when spacing itself is what's being demonstrated.\n:::\n\n### Basic Example\n\n```tsx live\nfunction example() {\n const { bulmaHelperClasses, rest } = useBulmaClasses({\n color: 'link',\n backgroundColor: 'primary',\n p: '4',\n textAlign: 'centered',\n id: 'card1',\n });\n\n return JSON.stringify({ bulmaHelperClasses, rest });\n // bulmaHelperClasses: 'has-text-link has-background-primary p-4 has-text-centered'\n // rest: { id: 'card1' }\n}\n```\n\nApply to your component:\n\n```tsx live\nfunction example() {\n const { bulmaHelperClasses, rest } = useBulmaClasses({\n color: 'link',\n backgroundColor: 'primary',\n p: '4',\n textAlign: 'centered',\n id: 'card1',\n });\n\n return (\n <div className={classNames('custom-card', bulmaHelperClasses)} {...rest}>\n Card content\n </div>\n );\n}\n```\n\n---\n\n### Responsive Props\n\n```tsx live\nfunction example() {\n const { bulmaHelperClasses } = useBulmaClasses({\n color: 'link',\n backgroundColor: 'primary',\n m: '2',\n textAlign: 'centered',\n viewport: 'mobile',\n });\n return JSON.stringify({ bulmaHelperClasses });\n // bulmaHelperClasses: 'has-text-link-mobile m-2-mobile has-text-centered-mobile'\n}\n```\n\n---\n\n### Touch and `-only` Viewports\n\nBeyond the five breakpoint props, `display`/`visibility` also take `touch` (mobile + tablet combined — the breakpoint most often used to hide desktop-only chrome) and the `-only` variants (`tablet-only`, `desktop-only`, `widescreen-only`), each isolating a single breakpoint band:\n\n```tsx live\nfunction example() {\n const { bulmaHelperClasses } = useBulmaClasses({\n displayTouch: 'none',\n displayDesktopOnly: 'flex',\n });\n return JSON.stringify({ bulmaHelperClasses });\n // bulmaHelperClasses: 'is-hidden-touch is-flex-desktop-only'\n}\n```\n\n```tsx live\n<Buttons>\n <Button visibilityTouch=\"hidden\">Hidden on mobile + tablet</Button>\n <Button visibilityDesktopOnly=\"invisible\">Invisible on desktop only</Button>\n <Button>Always visible</Button>\n</Buttons>\n```\n\nThe legacy `viewport` prop widens to all nine values too, so `useBulmaClasses({ display: 'flex', viewport: 'touch' })` produces `is-flex-touch`. One exception: Bulma ships no `is-size-*` classes for the three `-only` bands, so `textSize` combined with a `tablet-only`/`desktop-only`/`widescreen-only` `viewport` degrades to the base `is-size-N` (rather than emitting a dead `is-size-N-tablet-only`); `touch` and the five breakpoints are unaffected.\n\n---\n\n### Grid Display\n\n`display` also accepts `'grid'`, emitting `is-grid`:\n\n```tsx live\n<Box display=\"grid\">\n <Notification color=\"primary\" m=\"1\">\n Cell 1\n </Notification>\n <Notification color=\"info\" m=\"1\">\n Cell 2\n </Notification>\n</Box>\n```\n\n---\n\n### With Flexbox Helpers\n\nFlexbox properties are divided into two categories:\n\n#### Container Properties\n\nThese properties apply to elements with `display: flex` or `display: inline-flex`, which on most components means a `display` prop of `flex` or `inline-flex` as well. [`Stack`](https://bestax.io/docs/api/layout/stack), [`Group`](https://bestax.io/docs/api/layout/group), [`Center`](https://bestax.io/docs/api/layout/center) and [`Flex`](https://bestax.io/docs/api/layout/flex) are flex containers already, so they take these with no `display` prop:\n\n- `flexDirection` - Direction of flex items\n- `flexWrap` - Whether items wrap\n- `justifyContent` - Alignment along main axis\n- `alignContent` - Alignment of wrapped lines\n- `alignItems` - Alignment along cross axis\n\n#### Item Properties\n\nThese properties apply to flex items (children of flex containers) and **do not require** the element itself to have `display: flex`:\n\n- `alignSelf` - Override container's alignItems for this item\n- `flexGrow` - How much the item should grow\n- `flexShrink` - How much the item should shrink\n\n```tsx live\nfunction example() {\n const { bulmaHelperClasses } = useBulmaClasses({\n display: 'flex',\n flexDirection: 'column',\n alignItems: 'center',\n justifyContent: 'center',\n gap: '4',\n });\n return JSON.stringify({ bulmaHelperClasses });\n // bulmaHelperClasses: 'is-gap-4 is-flex is-flex-direction-column is-align-items-center is-justify-content-center'\n}\n```\n\nExample with flex items:\n\n```tsx\n// Container with display flex\n<Box display=\"flex\" alignItems=\"center\">\n {/* Items don't need display flex to use alignSelf, flexGrow, flexShrink */}\n <Button alignSelf=\"flex-start\">Start</Button>\n <Button alignSelf=\"center\" flexGrow=\"1\">\n Center & Grow\n </Button>\n <Button alignSelf=\"flex-end\" flexShrink=\"0\">\n End & No Shrink\n </Button>\n</Box>\n```\n\n---\n\n### Using with Components\n\n:::note These are illustrations, not replacements\nThe snippets below rebuild simplified components by hand purely to show how `useBulmaClasses` fits inside one. In a real app, use the library's own [Columns / Column](https://bestax.io/docs/api/columns) and [Card](https://bestax.io/docs/api/components/card) components — they already wire up `useBulmaClasses` (plus prefixes, modifiers, and more) for you.\n:::\n\n#### Columns\n\n`MyColumns` merges a caller's `className` with its own and forwards the rest of its props to `useBulmaClasses` — the `textAlign` and `textTransform` helper props below flow through `props` into the hook (producing `has-text-centered is-uppercase`), while anything the hook doesn't recognize comes back in `rest` and lands on the `<div>`:\n\n```tsx live\nimport type { BulmaClassesProps } from '@allxsmith/bestax-bulma';\n\nfunction example() {\n function MyColumns({\n children,\n className,\n ...props\n }: BulmaClassesProps & React.ComponentPropsWithoutRef<'div'>) {\n const { bulmaHelperClasses, rest } = useBulmaClasses(props);\n return (\n <div\n className={classNames('columns', bulmaHelperClasses, className)}\n {...rest}\n >\n {children}\n </div>\n );\n }\n\n return (\n <MyColumns textAlign=\"centered\" textTransform=\"uppercase\">\n <div className=\"column\">\n <Notification color=\"primary\">Left</Notification>\n </div>\n <div className=\"column\">\n <Notification color=\"info\">Right</Notification>\n </div>\n </MyColumns>\n );\n}\n```\n\n#### Card\n\n```tsx live\nfunction example() {\n const props = {};\n\n const textColor = 'white';\n const bgColor = 'primary';\n const hasShadow = true;\n const className = 'custom-card';\n const children = <p>Making a custom card</p>;\n const p = '4';\n\n const { bulmaHelperClasses, rest } = useBulmaClasses({\n color: textColor,\n backgroundColor: bgColor,\n p,\n ...props,\n });\n const cardClasses = classNames('card', className, bulmaHelperClasses, {\n 'is-shadowless': !hasShadow,\n });\n return (\n <div className={cardClasses} {...rest}>\n {children}\n </div>\n );\n}\n```\n\n---\n\n### Colors\n\nUse the `color` prop to apply Bulma color classes. Here, each button demonstrates a different color:\n\n```tsx live\n<Buttons>\n <Button color=\"primary\">Primary</Button>\n <Button color=\"link\">Link</Button>\n <Button color=\"info\">Info</Button>\n <Button color=\"success\">Success</Button>\n <Button color=\"warning\">Warning</Button>\n <Button color=\"danger\">Danger</Button>\n <Button color=\"black\">Black</Button>\n <Button color=\"white\">White</Button>\n</Buttons>\n```\n\n### Background Color\n\nComponents expose this helper as `bgColor` (the hook's own parameter is `backgroundColor`). Pair it with a text color that keeps the label readable on each background:\n\n```tsx live\n<Columns isMultiline>\n <Column size=\"one-quarter\">\n <Box bgColor=\"primary\" textColor=\"white\">\n Primary\n </Box>\n </Column>\n <Column size=\"one-quarter\">\n <Box bgColor=\"link\" textColor=\"white\">\n Link\n </Box>\n </Column>\n <Column size=\"one-quarter\">\n <Box bgColor=\"info\" textColor=\"white\">\n Info\n </Box>\n </Column>\n <Column size=\"one-quarter\">\n <Box bgColor=\"success\" textColor=\"white\">\n Success\n </Box>\n </Column>\n <Column size=\"one-quarter\">\n <Box bgColor=\"warning\" textColor=\"black\">\n Warning\n </Box>\n </Column>\n <Column size=\"one-quarter\">\n <Box bgColor=\"danger\" textColor=\"white\">\n Danger\n </Box>\n </Column>\n <Column size=\"one-quarter\">\n <Box bgColor=\"black\" textColor=\"white\">\n Black\n </Box>\n </Column>\n <Column size=\"one-quarter\">\n <Box bgColor=\"white\" textColor=\"black\">\n White\n </Box>\n </Column>\n</Columns>\n```\n\n### Scheme Backgrounds and `bulmaHelperStyles`\n\nThe hook returns a third member, `bulmaHelperStyles`, alongside `bulmaHelperClasses` and `rest`. It is `undefined` for every input except a scheme `backgroundColor` (`scheme-main`, `scheme-main-bis`, `scheme-main-ter`, `scheme-invert`, `scheme-invert-bis`, `scheme-invert-ter`): Bulma ships no `has-background-scheme-*` classes, so those values emit no class and instead surface here as a dark-mode-safe inline style tracking Bulma's scheme CSS variables.\n\n```tsx live\nfunction example() {\n const { bulmaHelperClasses, bulmaHelperStyles, rest } = useBulmaClasses({\n color: 'primary',\n backgroundColor: 'scheme-main-bis',\n id: 'band1',\n });\n\n return JSON.stringify({ bulmaHelperClasses, bulmaHelperStyles, rest });\n // bulmaHelperClasses: 'has-text-primary'\n // bulmaHelperStyles: { backgroundColor: 'var(--bulma-scheme-main-bis)' }\n // rest: { id: 'band1' }\n}\n```\n\nPut it on your element with `mergeBulmaStyles`, which merges the helper style with a user-supplied `style` prop (the user style wins, and the result is `undefined` when both are absent so the DOM stays untouched):\n\n```tsx live\nfunction example() {\n const { bulmaHelperClasses, bulmaHelperStyles, rest } = useBulmaClasses({\n backgroundColor: 'scheme-main-bis',\n p: '4',\n });\n\n return (\n <div\n {...rest}\n className={classNames('custom-band', bulmaHelperClasses)}\n style={mergeBulmaStyles(bulmaHelperStyles, undefined)}\n >\n A dark-mode-safe surface with zero custom CSS\n </div>\n );\n}\n```\n\nIn a real component, destructure `style` out of your own props and pass it as `mergeBulmaStyles`'s second argument (as `Section` does) — if `style` stays in the object you spread, whichever comes later in JSX silently replaces the other instead of merging.\n\n### Color Shade\n\n`colorShade` refines the **text color** — it pairs with the hook's `color` prop (exposed as `textColor` on components, where `color` is the component's own modifier). Here, each line steps through the primary palette:\n\n```tsx live\n<>\n <Paragraph textColor=\"primary\" colorShade=\"10\" textWeight=\"semibold\">\n Primary 10\n </Paragraph>\n <Paragraph textColor=\"primary\" colorShade=\"30\" textWeight=\"semibold\">\n Primary 30\n </Paragraph>\n <Paragraph textColor=\"primary\" colorShade=\"60\" textWeight=\"semibold\">\n Primary 60\n </Paragraph>\n <Paragraph textColor=\"primary\" colorShade=\"90\" textWeight=\"semibold\">\n Primary 90\n </Paragraph>\n <Paragraph textColor=\"primary\" colorShade=\"invert\" textWeight=\"semibold\">\n Primary Invert\n </Paragraph>\n</>\n```\n\n### Background Color Shade\n\nBackground shades use their own prop: `backgroundColorShade` pairs with `backgroundColor`, independently of `colorShade` (which pairs with the text color). Low shade numbers are dark and high numbers are light, so dark shades get light text and light shades get dark text to keep each label readable:\n\n```tsx live\n<Columns isMultiline>\n <Column size=\"one-quarter\">\n <Box bgColor=\"primary\" backgroundColorShade=\"10\" textColor=\"white\">\n Primary 10\n </Box>\n </Column>\n <Column size=\"one-quarter\">\n <Box bgColor=\"primary\" backgroundColorShade=\"30\" textColor=\"white\">\n Primary 30\n </Box>\n </Column>\n <Column size=\"one-quarter\">\n <Box bgColor=\"primary\" backgroundColorShade=\"60\" textColor=\"black\">\n Primary 60\n </Box>\n </Column>\n <Column size=\"one-quarter\">\n <Box bgColor=\"primary\" backgroundColorShade=\"90\" textColor=\"black\">\n Primary 90\n </Box>\n </Column>\n <Column size=\"one-quarter\">\n <Box bgColor=\"primary\" backgroundColorShade=\"invert\" textColor=\"white\">\n Primary Invert\n </Box>\n </Column>\n</Columns>\n```\n\nBecause the two shade props are independent, you can shade the text and the background at the same time — a dark background shade with a light text shade of the same color reads well in both themes:\n\n```tsx live\n<Box\n bgColor=\"primary\"\n backgroundColorShade=\"15\"\n textColor=\"primary\"\n colorShade=\"85\"\n>\n Primary text shade 85 on a primary background shade 15\n</Box>\n```\n\n### Margin\n\nUse margin props to add spacing. Here, margin is applied to buttons, and to a row of buttons using the `Buttons` component:\n\n```tsx live\n<>\n <Buttons>\n <Button>Left</Button>\n <Button m=\"4\">Margin 4</Button>\n <Button>Right</Button>\n </Buttons>\n <Buttons mt=\"5\" mb=\"5\">\n <Button>Top/Bottom Margin</Button>\n <Button>Row 2</Button>\n </Buttons>\n</>\n```\n\n### Gap\n\n`gap` puts space between the children of a flex or grid container, and `columnGap` and `rowGap` set one axis. Each whole step is 0.5rem, so `gap=\"2\"` is 1rem and `gap=\"8\"` is 4rem, with half steps such as `\"1.5\"` between them. That is not the margin scale, where `m=\"2\"` is 0.5rem. A step can also be written as a number (`gap={2}`).\n\nThe helpers set the CSS `gap`, which does nothing unless the element lays its children out as flex or grid. Pair them with `display=\"flex\"` or `display=\"grid\"`, or use them on a component that already is one, such as `Buttons` or `Tags`, where they replace the spacing Bulma gives it:\n\n```tsx live\n<>\n <Block display=\"flex\" flexWrap=\"wrap\" gap=\"2\">\n <Tag color=\"primary\">One</Tag>\n <Tag color=\"primary\">Two</Tag>\n <Tag color=\"primary\">Three</Tag>\n </Block>\n <Block display=\"flex\" flexDirection=\"column\" gap=\"0.5\">\n <Tag color=\"info\">A column</Tag>\n <Tag color=\"info\">with a half step</Tag>\n </Block>\n <Buttons gap=\"1\">\n <Button>Tighter</Button>\n <Button>than Bulma's</Button>\n <Button>default</Button>\n </Buttons>\n</>\n```\n\n`gapless` removes the gap, the shortcut for `gap=\"0\"`; when both are set, `gap` wins. `columnGap` and `rowGap` win on their own axis over `gap` and `gapless`, so `gap=\"4\" rowGap=\"1\"` spaces the columns 2rem apart and the rows 0.5rem.\n\n`Grid` takes `gap`, `columnGap` and `rowGap` as its own props and renders the same classes. `Columns` keeps its own `gap`, the columns gutter, which takes whole steps; see [Columns](https://bestax.io/docs/api/columns).\n\n### Text Size\n\nApply `textSize` to Notifications to illustrate different sizes:\n\n```tsx live\n<>\n <Notification textSize=\"1\">Size 1</Notification>\n <Notification textSize=\"3\">Size 3</Notification>\n <Notification textSize=\"5\">Size 5</Notification>\n <Notification textSize=\"7\">Size 7</Notification>\n</>\n```\n\n### Text Align\n\nApply `textAlign` to a Box to illustrate text alignment:\n\n```tsx live\n<>\n <Box textAlign=\"centered\">Centered text</Box>\n <Box textAlign=\"right\">Right aligned text</Box>\n <Box textAlign=\"left\">Left aligned text</Box>\n</>\n```\n\n### Text Transform\n\nApply `textTransform` to a Content tag with a paragraph of the Declaration of Independence:\n\n```tsx live\n<>\n <Box>\n <Content textTransform=\"uppercase\">\n <p>\n We hold these truths to be self-evident, that all men are created\n equal...\n </p>\n </Content>\n </Box>\n <Box>\n <Content textTransform=\"lowercase\">\n <p>\n We hold these truths to be self-evident, that all men are created\n equal...\n </p>\n </Content>\n </Box>\n <Box>\n <Content textTransform=\"capitalized\">\n <p>\n We hold these truths to be self-evident, that all men are created\n equal...\n </p>\n </Content>\n </Box>\n <Box>\n <Content textTransform=\"italic\">\n <p>\n We hold these truths to be self-evident, that all men are created\n equal...\n </p>\n </Content>\n </Box>\n</>\n```\n\n### Text Weight\n\nApply `textWeight` to Content tags to illustrate different font weights:\n\n```tsx live\n<>\n <Box>\n <Content textWeight=\"light\">\n <p>\n We hold these truths to be self-evident, that all men are created\n equal...\n </p>\n </Content>\n </Box>\n <Box>\n <Content textWeight=\"normal\">\n <p>\n We hold these truths to be self-evident, that all men are created\n equal...\n </p>\n </Content>\n </Box>\n <Box>\n <Content textWeight=\"medium\">\n <p>\n We hold these truths to be self-evident, that all men are created\n equal...\n </p>\n </Content>\n </Box>\n <Box>\n <Content textWeight=\"bold\">\n <p>\n We hold these truths to be self-evident, that all men are created\n equal...\n </p>\n </Content>\n </Box>\n</>\n```\n\n### Font Family\n\nUse Content blocks with different font families:\n\n```tsx live\n<>\n <Box>\n <Content fontFamily=\"sans-serif\">\n <p>\n We hold these truths to be self-evident, that all men are created\n equal...\n </p>\n </Content>\n </Box>\n <Box>\n <Content fontFamily=\"monospace\">\n <p>\n We hold these truths to be self-evident, that all men are created\n equal...\n </p>\n </Content>\n </Box>\n <Box>\n <Content fontFamily=\"primary\">\n <p>\n We hold these truths to be self-evident, that all men are created\n equal...\n </p>\n </Content>\n </Box>\n <Box>\n <Content fontFamily=\"secondary\">\n <p>\n We hold these truths to be self-evident, that all men are created\n equal...\n </p>\n </Content>\n </Box>\n <Box>\n <Content fontFamily=\"code\">\n <p>\n We hold these truths to be self-evident, that all men are created\n equal...\n </p>\n </Content>\n </Box>\n</>\n```\n\n### Visibility\n\nShow three buttons, one hidden, one screen-reader only:\n\n```tsx live\n<Buttons>\n <Button visibility=\"hidden\">Hidden</Button>\n <Button visibility=\"sr-only\">Screen Reader Only</Button>\n <Button>Visible</Button>\n</Buttons>\n```\n\n### Overflow\n\nShow a Box with clipped overflow:\n\n```tsx live\n<Box overflow=\"clipped\" style={{ width: 200, height: 50 }}>\n This is a very long line of text that will be clipped and not overflow the\n box.\n</Box>\n```\n\n`overflow` also takes the CSS keywords Bulma has helpers for (`auto`, `clip`, `hidden`, `scroll`, `visible`), and `overflowX` and `overflowY` set one axis. Beside `overflow`, an axis prop wins on its own axis and `overflow` sets the other, with `clipped` counting as `hidden`, so `overflow=\"hidden\" overflowY=\"auto\"` clips sideways and scrolls down.\n\nHere an aspect ratio fixes the height and the list scrolls inside it. A region that scrolls needs to be reachable from the keyboard, so the example gives it `tabIndex={0}`, a `region` role and a name.\n\n```tsx live\n<Box\n aspectRatio=\"3by1\"\n overflowY=\"auto\"\n tabIndex={0}\n role=\"region\"\n aria-label=\"Scrolling list\"\n>\n {Array.from({ length: 20 }, (_, i) => (\n <p key={i}>Line {i + 1} of a list longer than the box.</p>\n ))}\n</Box>\n```\n\nWithout `overflowY` the box would grow to fit the list, because an aspect ratio gives way to content that does not fit.\n\n### Overlay\n\n`overlay` is `position: absolute` with `top`, `right`, `bottom` and `left` at 0, so it covers the nearest positioned ancestor. The [position](https://bestax.io/docs/api/helpers/usebulmaclasses#position) helpers set `position` with `!important`, so a `pos` or `relative` beside `overlay` replaces the `absolute` and keeps the zero offsets. `overlay pos=\"fixed\"` covers the viewport instead. `sticky`, `relative` and `static` put the element back in the normal flow, where it covers nothing, and a sticky one sticks at every edge of its scroll container.\n\nShow an overlay (toggle with button click):\n\n```tsx\nfunction OverlayExample() {\n const [show, setShow] = useState(false);\n return (\n <Box overlay={show}>\n <Button onClick={() => setShow(s => !s)}>\n {show ? 'Hide Overlay' : 'Show Overlay'}\n </Button>\n </Box>\n );\n}\n```\n\n### Interaction\n\nShow text in a Box with `unselectable`, and another Box with `clickable`. `clickable` adds no role, tab stop or keyboard handling, so an element people click should still be a `<button>` or a link:\n\n```tsx live\n<>\n <Box interaction=\"unselectable\">This text cannot be selected.</Box>\n <Box interaction=\"clickable\">This box shows a pointer cursor.</Box>\n</>\n```\n\n### Cursor\n\nUse the `cursor` prop to set the cursor style. `'pointer'` reuses Bulma's `is-clickable` class, while `'help'` uses the project-level `is-cursor-help` class:\n\n```tsx live\n<>\n <Box cursor=\"pointer\">Cursor: pointer (uses is-clickable)</Box>\n <Box cursor=\"help\">Cursor: help</Box>\n</>\n```\n\n### Radius\n\n`radiusless` removes the radius; `small`, `normal`, `large` and `rounded` set one from Bulma's radius scale:\n\n```tsx live\n<Buttons>\n <Button radius=\"radiusless\">Radiusless</Button>\n <Button radius=\"small\">Small</Button>\n <Button radius=\"normal\">Normal</Button>\n <Button radius=\"large\">Large</Button>\n <Button radius=\"rounded\">Rounded</Button>\n</Buttons>\n```\n\nThe class goes on the component's root element, so where an inner element draws the radius, such as the `<img>` inside `Image`, that element keeps its own. The sizes are not `!important`, unlike `radiusless`, so a component rule more specific than one class still wins: an `isRounded` control stays a pill, and a joined addon keeps its square inner corners.\n\n### Shadowless\n\nShow a Box with `shadowless`:\n\n```tsx live\n<Box shadow=\"shadowless\">This box has no shadow.</Box>\n```\n\n### ClassName\n\nShow a Message with a custom className:\n\n```tsx live\n<Message className=\"custom-message\">\n This message uses a custom className.\n</Message>\n```\n\n### Clearfix\n\nShow containers with and without clearfix to demonstrate the importance of clearing floated elements:\n\n```tsx live\n<>\n <Box>\n <Title size=\"6\">Without clearfix (container collapses)</Title>\n <Notification color=\"danger\">\n <Button float=\"left\" color=\"primary\">\n Left\n </Button>\n <Button float=\"right\" color=\"danger\">\n Right\n </Button>\n </Notification>\n </Box>\n\n <Box>\n <Title size=\"6\">With clearfix (container wraps its floats)</Title>\n <Notification color=\"success\" clearfix>\n <Button float=\"left\" color=\"primary\">\n Left\n </Button>\n <Button float=\"right\" color=\"danger\">\n Right\n </Button>\n </Notification>\n </Box>\n</>\n```\n\n### Position\n\n`pos` sets CSS `position`: `absolute`, `fixed`, `relative`, `static` or `sticky`. It is named `pos` because several components already have a `position` prop of their own, for where they place a popup or a toast. `relative` is the older shortcut for `pos=\"relative\"` and still works; when both are set, `pos` wins. Beside `overlay`, a `pos` or `relative` replaces the overlay's `absolute` and keeps its zero offsets; see [Overlay](https://bestax.io/docs/api/helpers/usebulmaclasses#overlay).\n\nShow a container with relative positioning that provides context for an absolutely positioned child. The helpers set `position` and nothing else, so the child keeps its `top` and `right` offsets inline:\n\n```tsx live\n<Notification pos=\"relative\" pb=\"6\" color=\"info\">\n <Span>This container has position: relative</Span>\n <Tag\n color=\"primary\"\n size=\"medium\"\n pos=\"absolute\"\n style={{ top: '1rem', right: '1rem' }}\n >\n Absolutely positioned child\n </Tag>\n</Notification>\n```\n\n`pos=\"sticky\"` needs an offset in the same way, and does nothing until it has one.\n\n### Aspect Ratio\n\n`aspectRatio` fixes an element's width-to-height ratio to one of Bulma's ratios, such as `1by1`, `4by3` or `16by9`, or a portrait one such as `9by16`. The full set is in [Supported Props](https://bestax.io/docs/api/helpers/usebulmaclasses#supported-props). The height follows the width:\n\n```tsx live\n<Columns>\n <Column>\n <Notification color=\"primary\" aspectRatio=\"1by1\">\n 1by1\n </Notification>\n </Column>\n <Column>\n <Notification color=\"info\" aspectRatio=\"4by3\">\n 4by3\n </Notification>\n </Column>\n <Column>\n <Notification color=\"success\" aspectRatio=\"16by9\">\n 16by9\n </Notification>\n </Column>\n</Columns>\n```\n\nOn `Image`, use its own `size` ratios instead, which also fit the picture to the box.\n\n---\n\n### Skeleton Examples\n\nThe `skeleton` prop applies Bulma's skeleton loading effect. [Skeleton's accessibility notes](https://bestax.io/docs/api/elements/skeleton#accessibility) cover it too, reduced motion and forced colors included. In short, hide a skeleton from screen readers, and take a skeleton control out of the tab order. Here are examples for each component:\n\n#### Skeleton Button\n\n```tsx live\n<Button skeleton tabIndex={-1} aria-hidden=\"true\">\n Skeleton Button\n</Button>\n```\n\n#### Skeleton Buttons Group\n\n```tsx live\n<Buttons>\n <Button skeleton tabIndex={-1} aria-hidden=\"true\">\n Skeleton\n </Button>\n <Button skeleton tabIndex={-1} aria-hidden=\"true\">\n Skeleton\n </Button>\n <Button skeleton tabIndex={-1} aria-hidden=\"true\">\n Skeleton\n </Button>\n</Buttons>\n```\n\n#### Skeleton Icon\n\n```tsx live\n<Icon name=\"star\" skeleton />\n```\n\n#### Skeleton Image\n\n```tsx live\n<Image skeleton src=\"/img/react-logo.png\" alt=\"Skeleton image\" size=\"128x128\" />\n```\n\n#### Skeleton Notification\n\n```tsx live\n<Notification skeleton aria-hidden=\"true\">\n Skeleton notification message.\n</Notification>\n```\n\n#### Skeleton Tag\n\n```tsx live\n<Tag skeleton aria-hidden=\"true\">\n Skeleton Tag\n</Tag>\n```\n\n#### Skeleton Title\n\n```tsx live\n<Title skeleton aria-hidden=\"true\" size=\"2\">\n Skeleton Title\n</Title>\n```\n\n#### Skeleton SubTitle\n\n```tsx live\n<SubTitle skeleton aria-hidden=\"true\" size=\"4\">\n Skeleton SubTitle\n</SubTitle>\n```\n\n#### Skeleton Input\n\n```tsx live\n<Input skeleton tabIndex={-1} aria-hidden=\"true\" placeholder=\"Skeleton Input\" />\n```\n\n#### Skeleton TextArea\n\n```tsx live\n<TextArea\n skeleton\n tabIndex={-1}\n aria-hidden=\"true\"\n placeholder=\"Skeleton TextArea\"\n rows={3}\n/>\n```\n\n---\n\n## API\n\n```tsx\nconst { bulmaHelperClasses, bulmaHelperStyles, rest } = useBulmaClasses(props);\n\n// For an element whose own CSS makes it a flex container:\nconst flex = useBulmaClasses(props, { flexContainer: true });\n```\n\n- **props**: An object supporting all Bulma helper class props (see [Supported Props](https://bestax.io/docs/api/helpers/usebulmaclasses#supported-props)), plus any additional props. `backgroundColor` additionally accepts the six [`validSchemeColors`](https://bestax.io/docs/api/helpers/valid-values) values.\n- **options**: Optional. `{ flexContainer: true }` says the element is a flex container by its own stylesheet, so the flex container props (`flexDirection`, `flexWrap`, `justifyContent`, `alignContent`, `alignItems`) emit their classes with no `display` prop. It adds no display class. [`Stack`](https://bestax.io/docs/api/layout/stack), [`Group`](https://bestax.io/docs/api/layout/group), [`Center`](https://bestax.io/docs/api/layout/center) and [`Flex`](https://bestax.io/docs/api/layout/flex) pass it. Passed through to `useFlexboxClasses`.\n- **bulmaHelperClasses**: A string of Bulma utility classes to be applied to your element.\n- **bulmaHelperStyles**: `React.CSSProperties | undefined` — an inline style for a scheme `backgroundColor` (see [Scheme Backgrounds](https://bestax.io/docs/api/helpers/usebulmaclasses#scheme-backgrounds-and-bulmahelperstyles)); `undefined` for every other input. Apply it with [`mergeBulmaStyles`](https://bestax.io/docs/api/helpers/usebulmaclasses#scheme-backgrounds-and-bulmahelperstyles) so a user `style` prop wins.\n- **rest**: An object of all remaining props (with helper props stripped out), suitable for spreading onto your component.\n\n---\n\n## Composable Mini-Hooks\n\n`useBulmaClasses` remains the everything-hook — it is what most bestax-bulma components use internally, and it covers the full helper prop surface with zero behavior change. If you are building a custom component that only needs a slice of that surface, you can reach for one of seven composable mini hooks instead. Each mini hook accepts just its own group of props and returns a plain class string (except `useColorStyles`, which returns an inline style object or `undefined`), which you can combine with the [`classNames`](https://bestax.io/docs/api/helpers/classnames) utility.\n\n| Hook | Props Covered | Returns |\n| ---------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| `useColorClasses` | `color`, `colorShade`, `backgroundColor`, `backgroundColorShade` | Text and background color classes, including palette shades |\n| `useColorStyles` | `backgroundColor` (scheme values) | `{ backgroundColor: 'var(--bulma-scheme-*)' }` for a scheme background, `undefined` otherwise — the source of `bulmaHelperStyles` |\n| `useSpacingClasses` | `m`, `mt`, `mr`, `mb`, `ml`, `mx`, `my`, `p`, `pt`, `pr`, `pb`, `pl`, `px`, `py`, `gap`, `columnGap`, `rowGap`, `gapless` | Margin, padding and gap classes |\n| `useTypographyClasses` | `textSize`, `textAlign`, `textTransform`, `textWeight`, `fontFamily`, `viewport`, plus `textSize{Mobile..Fullhd}`, `textAlign{Mobile..Fullhd}` | Typography classes, including responsive size/alignment variants |\n| `useVisibilityClasses` | `display`, `visibility`, `viewport`, plus `display{Mobile,Tablet,TabletOnly,Touch,Desktop,DesktopOnly,Widescreen,WidescreenOnly,Fullhd}`, `visibility{Mobile,Tablet,TabletOnly,Touch,Desktop,DesktopOnly,Widescreen,WidescreenOnly,Fullhd}` | Display and visibility classes (this hook owns all display emission) |\n| `useFlexboxClasses` | `flexDirection`, `flexWrap`, `justifyContent`, `alignContent`, `alignItems`, `alignSelf`, `flexGrow`, `flexShrink` | Flexbox classes; container classes are only emitted when a `display`/`display{Viewport}` prop is `flex`/`inline-flex` or the second argument is `{ flexContainer: true }`, item classes (`alignSelf`, `flexGrow`, `flexShrink`) always emit |\n| `useOtherClasses` | `float`, `overflow`, `overflowX`, `overflowY`, `overlay`, `interaction`, `cursor`, `radius`, `shadow`, `responsive`, `skeleton`, `clearfix`, `pos`, `relative`, `fullHeight`, `aspectRatio` | Miscellaneous utility classes |\n\nAll seven hooks (plus `classNames` and `mergeBulmaStyles`) are exported from the package root:\n\n```tsx\nimport {\n useColorClasses,\n useColorStyles,\n useSpacingClasses,\n classNames,\n mergeBulmaStyles,\n} from '@allxsmith/bestax-bulma';\n```\n\nHere is a small custom component that only needs color and spacing helpers:\n\n```tsx live\nimport type { BulmaClassesProps } from '@allxsmith/bestax-bulma';\n\nfunction example() {\n function PriceTag({\n color,\n backgroundColor,\n backgroundColorShade,\n m,\n children,\n }: BulmaClassesProps & { children?: React.ReactNode }) {\n const colorClasses = useColorClasses({\n color,\n backgroundColor,\n backgroundColorShade,\n });\n const spacingClasses = useSpacingClasses({ m });\n return (\n <span className={classNames('tag', colorClasses, spacingClasses)}>\n {children}\n </span>\n );\n }\n\n return (\n <div>\n <PriceTag color=\"white\" backgroundColor=\"success\" m=\"2\">\n $19.99\n </PriceTag>\n <PriceTag\n color=\"white\"\n backgroundColor=\"danger\"\n backgroundColorShade=\"dark\"\n m=\"2\"\n >\n $49.99\n </PriceTag>\n </div>\n );\n}\n```\n\n:::note useFlexboxClasses and display\n\n`useFlexboxClasses` only emits container classes (`flexDirection`, `flexWrap`, `justifyContent`, `alignContent`, `alignItems`) when a `display` or `display{Viewport}` prop is `flex` or `inline-flex` — it reads those display props for gating but never emits the display class itself. Pair it with `useVisibilityClasses` (which owns display emission), or just use `useBulmaClasses`.\n\nFor an element whose own stylesheet makes it a flex container, pass `{ flexContainer: true }` as the second argument (to either hook), and the container classes emit with no `display` prop:\n\n```tsx\nconst flexboxClasses = useFlexboxClasses(\n { alignItems: 'center' },\n { flexContainer: true }\n);\n// 'is-align-items-center'\n```\n\n:::\n\n---\n\n## Supported Props\n\nBelow is the full list of supported props, derived from the `BulmaClassesProps` TypeScript definition:\n\n| Prop | Type / Example Value | Effect / Example Class |\n| ---------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- |\n| `color` | `'primary'`, `'link'`, `'info'`, `'success'`, `'warning'`, `'danger'`, `'black'`, `'black-bis'`, `'black-ter'`, `'grey-darker'`, `'grey-dark'`, `'grey'`, `'grey-light'`, `'grey-lighter'`, `'white'`, `'white-bis'`, `'white-ter'`, `'light'`, `'dark'`, `'inherit'`, `'current'` | `has-text-primary`, `has-text-grey-dark`, `has-text-inherit` |\n| `backgroundColor` | Same as `color`, plus the scheme values `'scheme-main'`, `'scheme-main-bis'`, `'scheme-main-ter'`, `'scheme-invert'`, `'scheme-invert-bis'`, `'scheme-invert-ter'` | `has-background-warning`; scheme values emit no class — they return as the `bulmaHelperStyles` inline style |\n| `colorShade` | `'00'`, `'05'`, `'10'`, `'15'`, `'20'`, `'25'`, `'30'`, `'35'`, `'40'`, `'45'`, `'50'`, `'55'`, `'60'`, `'65'`, `'70'`, `'75'`, `'80'`, `'85'`, `'90'`, `'95'`, `'invert'`, `'light'`, `'dark'`, `'soft'`, `'bold'`, `'on-scheme'` | `has-text-primary-25` |\n| `backgroundColorShade` | `'00'`, `'05'`, `'10'`, `'15'`, `'20'`, `'25'`, `'30'`, `'35'`, `'40'`, `'45'`, `'50'`, `'55'`, `'60'`, `'65'`, `'70'`, `'75'`, `'80'`, `'85'`, `'90'`, `'95'`, `'invert'`, `'light'`, `'dark'`, `'soft'`, `'bold'`, `'on-scheme'` | `has-background-info-dark` |\n| `m` | `'0'..'6'`, `'auto'` | `m-4`, `m-auto` |\n| `mt` | `'0'..'6'`, `'auto'` | `mt-2` |\n| `mr` | `'0'..'6'`, `'auto'` | `mr-6` |\n| `mb` | `'0'..'6'`, `'auto'` | `mb-0` |\n| `ml` | `'0'..'6'`, `'auto'` | `ml-auto` |\n| `mx` | `'0'..'6'`, `'auto'` | `mx-2` |\n| `my` | `'0'..'6'`, `'auto'` | `my-5` |\n| `p` | `'0'..'6'`, `'auto'` | `p-3`, `p-auto` |\n| `pt` | `'0'..'6'`, `'auto'` | `pt-1` |\n| `pr` | `'0'..'6'`, `'auto'` | `pr-6` |\n| `pb` | `'0'..'6'`, `'auto'` | `pb-0` |\n| `pl` | `'0'..'6'`, `'auto'` | `pl-4` |\n| `px` | `'0'..'6'`, `'auto'` | `px-1` |\n| `py` | `'0'..'6'`, `'auto'` | `py-6` |\n| `gap` | `'0'..'8'` in half steps, or a number | `is-gap-1.5` |\n| `columnGap` | Same as `gap` | `is-column-gap-4` |\n| `rowGap` | Same as `gap` | `is-row-gap-0.5` |\n| `gapless` | `true` | `is-gapless` |\n| `textSize` | `'1'..'7'` | `is-size-3` |\n| `textAlign` | `'centered'`, `'justified'`, `'left'`, `'right'` | `has-text-centered` |\n| `textTransform` | `'capitalized'`, `'lowercase'`, `'uppercase'`, `'italic'` | `is-uppercase`, `is-italic` |\n| `textWeight` | `'light'`, `'normal'`, `'medium'`, `'semibold'`, `'bold'` | `has-text-weight-bold` |\n| `fontFamily` | `'sans-serif'`, `'monospace'`, `'primary'`, `'secondary'`, `'code'` | `is-family-monospace` |\n| `display` | `'block'`, `'flex'`, `'inline'`, `'inline-block'`, `'inline-flex'`, `'grid'`, `'none'` | `is-flex`, `is-inline-block`, `is-grid`, `is-hidden` |\n| `visibility` | `'hidden'`, `'sr-only'`, `'invisible'` | `is-hidden`, `is-sr-only`, `is-invisible` |\n| `flexDirection` | `'row'`, `'row-reverse'`, `'column'`, `'column-reverse'` | `is-flex-direction-row` |\n| `flexWrap` | `'nowrap'`, `'wrap'`, `'wrap-reverse'` | `is-flex-wrap-nowrap` |\n| `justifyContent` | `'flex-start'`, `'flex-end'`, `'center'`, `'space-between'`, `'space-around'`, `'space-evenly'`, `'start'`, `'end'`, `'left'`, `'right'` | `is-justify-content-center` |\n| `alignContent` | `'flex-start'`, `'flex-end'`, `'center'`, `'space-between'`, `'space-around'`, `'space-evenly'`, `'stretch'` | `is-align-content-stretch` |\n| `alignItems` | `'stretch'`, `'flex-start'`, `'flex-end'`, `'center'`, `'baseline'`, `'start'`, `'end'` | `is-align-items-center` |\n| `alignSelf` | `'auto'`, `'flex-start'`, `'flex-end'`, `'center'`, `'baseline'`, `'stretch'` | `is-align-self-center` |\n| `flexGrow` | `'0'`, `'1'`, `'2'`, `'3'`, `'4'`, `'5'` | `is-flex-grow-1` |\n| `flexShrink` | `'0'`, `'1'`, `'2'`, `'3'`, `'4'`, `'5'` | `is-flex-shrink-0` |\n| `float` | `'left'`, `'right'` | `is-pulled-left`, `is-pulled-right` |\n| `overflow` | `'clipped'`, `'auto'`, `'clip'`, `'hidden'`, `'scroll'`, `'visible'` | `is-clipped`, `is-overflow-auto` |\n| `overflowX` | `'auto'`, `'clip'`, `'hidden'`, `'scroll'`, `'visible'` | `is-overflow-x-auto` |\n| `overflowY` | `'auto'`, `'clip'`, `'hidden'`, `'scroll'`, `'visible'` | `is-overflow-y-scroll` |\n| `overlay` | `true` | `is-overlay` |\n| `interaction` | `'unselectable'`, `'clickable'` | `is-unselectable` |\n| `cursor` | `'pointer'`, `'help'` | `is-clickable`, `is-cursor-help` |\n| `radius` | `'radiusless'`, `'small'`, `'normal'`, `'large'`, `'rounded'` | `is-radiusless`, `has-radius-large` |\n| `shadow` | `'shadowless'` | `is-shadowless` |\n| `responsive` | `'mobile'`, `'narrow'` | `is-mobile`, `is-narrow` |\n| `viewport` | `'mobile'`, `'tablet'`, `'tablet-only'`, `'touch'`, `'desktop'`, `'desktop-only'`, `'widescreen'`, `'widescreen-only'`, `'fullhd'` | Adds viewport suffix to supported properties |\n| `skeleton` | `true` | `is-skeleton` |\n| `clearfix` | `true` | `is-clearfix` |\n| `pos` | `'absolute'`, `'fixed'`, `'relative'`, `'static'`, `'sticky'` | `is-position-sticky` |\n| `relative` | `true` | `is-relative` (ignored when `pos` is set) |\n| `fullHeight` | `true` | `is-full-height` |\n| `aspectRatio` | `'1by1'`, `'5by4'`, `'4by3'`, `'3by2'`, `'5by3'`, `'16by9'`, `'2by1'`, `'3by1'`, `'4by5'`, `'3by4'`, `'2by3'`, `'3by5'`, `'9by16'`, `'1by2'`, `'1by3'` | `is-aspect-ratio-16by9` |\n\n### Viewport-Specific Properties\n\nThe following properties allow you to set different values for each viewport breakpoint:\n\n| Prop | Type / Example Value | Effect / Example Class |\n| -------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- |\n| `displayMobile` | `'block'`, `'flex'`, `'inline'`, `'grid'`, `'none'`, etc. | `is-block-mobile`, `is-flex-mobile`, `is-hidden-mobile` |\n| `displayTablet` | Same as above | `is-block-tablet`, `is-flex-tablet`, `is-hidden-tablet` |\n| `displayTabletOnly` | Same as above | `is-block-tablet-only`, `is-flex-tablet-only`, `is-hidden-tablet-only` |\n| `displayTouch` | Same as above | `is-block-touch`, `is-flex-touch`, `is-hidden-touch` |\n| `displayDesktop` | Same as above | `is-block-desktop`, `is-flex-desktop`, `is-hidden-desktop` |\n| `displayDesktopOnly` | Same as above | `is-block-desktop-only`, `is-flex-desktop-only`, `is-hidden-desktop-only` |\n| `displayWidescreen` | Same as above | `is-block-widescreen`, `is-flex-widescreen` |\n| `displayWidescreenOnly` | Same as above | `is-block-widescreen-only`, `is-flex-widescreen-only` |\n| `displayFullhd` | Same as above | `is-block-fullhd`, `is-flex-fullhd` |\n| `textSizeMobile` | `'1'..'7'` | `is-size-3-mobile`, `is-size-5-mobile` |\n| `textSizeTablet` | `'1'..'7'` | `is-size-3-tablet`, `is-size-5-tablet` |\n| `textSizeDesktop` | `'1'..'7'` | `is-size-3-desktop`, `is-size-5-desktop` |\n| `textSizeWidescreen` | `'1'..'7'` | `is-size-3-widescreen`, `is-size-5-widescreen` |\n| `textSizeFullhd` | `'1'..'7'` | `is-size-3-fullhd`, `is-size-5-fullhd` |\n| `textAlignMobile` | `'centered'`, `'left'`, `'right'`, `'justified'` | `has-text-centered-mobile`, `has-text-left-mobile` |\n| `textAlignTablet` | Same as above | `has-text-centered-tablet`, `has-text-left-tablet` |\n| `textAlignDesktop` | Same as above | `has-text-centered-desktop`, `has-text-left-desktop` |\n| `textAlignWidescreen` | Same as above | `has-text-centered-widescreen`, `has-text-left-widescreen` |\n| `textAlignFullhd` | Same as above | `has-text-centered-fullhd`, `has-text-left-fullhd` |\n| `visibilityMobile` | `'hidden'`, `'sr-only'`, `'invisible'` | `is-hidden-mobile`, `is-sr-only-mobile`, `is-invisible-mobile` |\n| `visibilityTablet` | Same as above | `is-hidden-tablet`, `is-sr-only-tablet`, `is-invisible-tablet` |\n| `visibilityTabletOnly` | Same as above | `is-hidden-tablet-only`, `is-sr-only-tablet-only`, `is-invisible-tablet-only` |\n| `visibilityTouch` | Same as above | `is-hidden-touch`, `is-sr-only-touch`, `is-invisible-touch` |\n| `visibilityDesktop` | Same as above | `is-hidden-desktop`, `is-sr-only-desktop`, `is-invisible-desktop` |\n| `visibilityDesktopOnly` | Same as above | `is-hidden-desktop-only`, `is-sr-only-desktop-only`, `is-invisible-desktop-only` |\n| `visibilityWidescreen` | Same as above | `is-hidden-widescreen`, `is-sr-only-widescreen`, `is-invisible-widescreen` |\n| `visibilityWidescreenOnly` | Same as above | `is-hidden-widescreen-only`, `is-sr-only-widescreen-only`, `is-invisible-widescreen-only` |\n| `visibilityFullhd` | Same as above | `is-hidden-fullhd`, `is-sr-only-fullhd`, `is-invisible-fullhd` |\n| `responsive` | `'mobile'`, `'narrow'` | `is-mobile`, `is-narrow` |\n| `clearfix` | `true` | `is-clearfix` |\n| `relative` | `true` | `is-relative` |\n| `viewport` | `'mobile'`, `'tablet'`, `'tablet-only'`, `'touch'`, `'desktop'`, `'desktop-only'`, `'widescreen'`, `'widescreen-only'`, `'fullhd'` | Adds suffix, e.g. `-mobile`, `-desktop`, `-touch`, `-tablet-only` |\n\nThe viewport properties' ranges overlap: the tablet, desktop and widescreen ones run from their\nbreakpoint up, the touch ones cover mobile and tablet, and an `Only` property sits inside the plain\none for its breakpoint. Where two display properties overlap, Bulma's stylesheet picks the winner,\nnot the breakpoint, so `displayTablet=\"none\"` keeps an element hidden on desktop whatever\n`displayDesktop` asks. The\n[Visibility guide](https://bestax.io/docs/guides/helpers/visibility#viewport-specific-display-properties) has the\nrule and the `Only` properties that set one range alone.\n\n---\n\n### Full TypeScript Definition\n\n`BulmaClassesProps` is composed from the six group interfaces, each of which is also exported (along with the shared `BulmaViewportProps` and `BulmaDisplayProps` types) and accepted by the corresponding [mini hook](https://bestax.io/docs/api/helpers/usebulmaclasses#composable-mini-hooks). The hook's parameter is the widened `BulmaClassesPropsWithScheme` — identical to `BulmaClassesProps` except that `backgroundColor` also accepts the six `validSchemeColors` values (`BulmaColorPropsWithScheme` is the color-group equivalent, accepted by `useColorClasses` and `useColorStyles`):\n\n```ts\nexport interface BulmaClassesProps\n extends\n BulmaColorProps,\n BulmaSpacingProps,\n BulmaTypographyProps,\n BulmaVisibilityProps,\n BulmaFlexboxProps,\n BulmaOtherProps {}\n\nexport type BulmaViewportProps =\n | 'mobile'\n | 'tablet'\n | 'tablet-only'\n | 'touch'\n | 'desktop'\n | 'desktop-only'\n | 'widescreen'\n | 'widescreen-only'\n | 'fullhd';\n\nexport type BulmaDisplayProps =\n | 'block'\n | 'flex'\n | 'inline'\n | 'inline-block'\n | 'inline-flex'\n | 'grid'\n | 'none';\n\nexport interface BulmaColorProps {\n color?:\n | 'primary'\n | 'link'\n | 'info'\n | 'success'\n | 'warning'\n | 'danger'\n | 'black'\n | 'black-bis'\n | 'black-ter'\n | 'grey-darker'\n | 'grey-dark'\n | 'grey'\n | 'grey-light'\n | 'grey-lighter'\n | 'white'\n | 'white-bis'\n | 'white-ter'\n | 'light'\n | 'dark'\n | 'inherit'\n | 'current';\n colorShade?:\n | '00'\n | '05'\n | '10'\n | '15'\n | '20'\n | '25'\n | '30'\n | '35'\n | '40'\n | '45'\n | '50'\n | '55'\n | '60'\n | '65'\n | '70'\n | '75'\n | '80'\n | '85'\n | '90'\n | '95'\n | 'invert'\n | 'light'\n | 'dark'\n | 'soft'\n | 'bold'\n | 'on-scheme';\n backgroundColor?: BulmaColorProps['color'];\n backgroundColorShade?: BulmaColorProps['colorShade'];\n}\n\n// The scheme-aware input accepted by useBulmaClasses, useColorClasses,\n// and useColorStyles ((typeof validSchemeColors)[number] is\n// 'scheme-main' | 'scheme-main-bis' | 'scheme-main-ter'\n// | 'scheme-invert' | 'scheme-invert-bis' | 'scheme-invert-ter'):\nexport type BulmaColorPropsWithScheme = Omit<\n BulmaColorProps,\n 'backgroundColor'\n> & {\n backgroundColor?:\n BulmaColorProps['backgroundColor'] | (typeof validSchemeColors)[number];\n};\n\nexport type BulmaClassesPropsWithScheme = Omit<\n BulmaClassesProps,\n keyof BulmaColorProps\n> &\n BulmaColorPropsWithScheme;\n\nexport interface BulmaSpacingProps {\n m?: '0' | '1' | '2' | '3' | '4' | '5' | '6' | 'auto';\n mt?: '0' | '1' | '2' | '3' | '4' | '5' | '6' | 'auto';\n mr?: '0' | '1' | '2' | '3' | '4' | '5' | '6' | 'auto';\n mb?: '0' | '1' | '2' | '3' | '4' | '5' | '6' | 'auto';\n ml?: '0' | '1' | '2' | '3' | '4' | '5' | '6' | 'auto';\n mx?: '0' | '1' | '2' | '3' | '4' | '5' | '6' | 'auto';\n my?: '0' | '1' | '2' | '3' | '4' | '5' | '6' | 'auto';\n p?: '0' | '1' | '2' | '3' | '4' | '5' | '6' | 'auto';\n pt?: '0' | '1' | '2' | '3' | '4' | '5' | '6' | 'auto';\n pr?: '0' | '1' | '2' | '3' | '4' | '5' | '6' | 'auto';\n pb?: '0' | '1' | '2' | '3' | '4' | '5' | '6' | 'auto';\n pl?: '0' | '1' | '2' | '3' | '4' | '5' | '6' | 'auto';\n px?: '0' | '1' | '2' | '3' | '4' | '5' | '6' | 'auto';\n py?: '0' | '1' | '2' | '3' | '4' | '5' | '6' | 'auto';\n gap?: BulmaGapStep;\n columnGap?: BulmaGapStep;\n rowGap?: BulmaGapStep;\n gapless?: boolean;\n}\n\n// '0' to '8' in half steps ('0', '0.5', '1', … '7.5', '8'), as strings or numbers\nexport type BulmaGapStep =\n | '0'\n | '0.5'\n | '1'\n | '1.5'\n | '2'\n | '2.5'\n | '3'\n | '3.5'\n | '4'\n | '4.5'\n | '5'\n | '5.5'\n | '6'\n | '6.5'\n | '7'\n | '7.5'\n | '8'\n | 0\n | 0.5\n | 1\n | 1.5\n | 2\n | 2.5\n | 3\n | 3.5\n | 4\n | 4.5\n | 5\n | 5.5\n | 6\n | 6.5\n | 7\n | 7.5\n | 8;\n\nexport interface BulmaTypographyProps {\n textSize?: '1' | '2' | '3' | '4' | '5' | '6' | '7';\n textAlign?: 'centered' | 'justified' | 'left' | 'right';\n textTransform?: 'capitalized' | 'lowercase' | 'uppercase' | 'italic';\n textWeight?: 'light' | 'normal' | 'medium' | 'semibold' | 'bold';\n fontFamily?: 'sans-serif' | 'monospace' | 'primary' | 'secondary' | 'code';\n viewport?: BulmaViewportProps;\n textSizeMobile?: '1' | '2' | '3' | '4' | '5' | '6' | '7';\n textSizeTablet?: '1' | '2' | '3' | '4' | '5' | '6' | '7';\n textSizeDesktop?: '1' | '2' | '3' | '4' | '5' | '6' | '7';\n textSizeWidescreen?: '1' | '2' | '3' | '4' | '5' | '6' | '7';\n textSizeFullhd?: '1' | '2' | '3' | '4' | '5' | '6' | '7';\n textAlignMobile?: 'centered' | 'justified' | 'left' | 'right';\n textAlignTablet?: 'centered' | 'justified' | 'left' | 'right';\n textAlignDesktop?: 'centered' | 'justified' | 'left' | 'right';\n textAlignWidescreen?: 'centered' | 'justified' | 'left' | 'right';\n textAlignFullhd?: 'centered' | 'justified' | 'left' | 'right';\n}\n\nexport interface BulmaVisibilityProps {\n display?: BulmaDisplayProps;\n visibility?: 'hidden' | 'sr-only' | 'invisible';\n viewport?: BulmaViewportProps;\n displayMobile?: BulmaDisplayProps;\n displayTablet?: BulmaDisplayProps;\n displayTabletOnly?: BulmaDisplayProps;\n displayTouch?: BulmaDisplayProps;\n displayDesktop?: BulmaDisplayProps;\n displayDesktopOnly?: BulmaDisplayProps;\n displayWidescreen?: BulmaDisplayProps;\n displayWidescreenOnly?: BulmaDisplayProps;\n displayFullhd?: BulmaDisplayProps;\n visibilityMobile?: 'hidden' | 'sr-only' | 'invisible';\n visibilityTablet?: 'hidden' | 'sr-only' | 'invisible';\n visibilityTabletOnly?: 'hidden' | 'sr-only' | 'invisible';\n visibilityTouch?: 'hidden' | 'sr-only' | 'invisible';\n visibilityDesktop?: 'hidden' | 'sr-only' | 'invisible';\n visibilityDesktopOnly?: 'hidden' | 'sr-only' | 'invisible';\n visibilityWidescreen?: 'hidden' | 'sr-only' | 'invisible';\n visibilityWidescreenOnly?: 'hidden' | 'sr-only' | 'invisible';\n visibilityFullhd?: 'hidden' | 'sr-only' | 'invisible';\n}\n\nexport interface BulmaFlexboxProps {\n flexDirection?: 'row' | 'row-reverse' | 'column' | 'column-reverse';\n flexWrap?: 'nowrap' | 'wrap' | 'wrap-reverse';\n justifyContent?:\n | 'flex-start'\n | 'flex-end'\n | 'center'\n | 'space-between'\n | 'space-around'\n | 'space-evenly'\n | 'start'\n | 'end'\n | 'left'\n | 'right';\n alignContent?:\n | 'flex-start'\n | 'flex-end'\n | 'center'\n | 'space-between'\n | 'space-around'\n | 'space-evenly'\n | 'stretch';\n alignItems?:\n | 'stretch'\n | 'flex-start'\n | 'flex-end'\n | 'center'\n | 'baseline'\n | 'start'\n | 'end';\n alignSelf?:\n 'auto' | 'flex-start' | 'flex-end' | 'center' | 'baseline' | 'stretch';\n flexGrow?: '0' | '1' | '2' | '3' | '4' | '5';\n flexShrink?: '0' | '1' | '2' | '3' | '4' | '5';\n}\n\nexport interface BulmaOtherProps {\n float?: 'left' | 'right';\n overflow?: 'clipped' | 'auto' | 'clip' | 'hidden' | 'scroll' | 'visible';\n overflowX?: 'auto' | 'clip' | 'hidden' | 'scroll' | 'visible';\n overflowY?: 'auto' | 'clip' | 'hidden' | 'scroll' | 'visible';\n overlay?: boolean;\n interaction?: 'unselectable' | 'clickable';\n cursor?: 'pointer' | 'help';\n radius?: 'radiusless' | 'small' | 'normal' | 'large' | 'rounded';\n shadow?: 'shadowless';\n responsive?: 'mobile' | 'narrow';\n skeleton?: boolean;\n clearfix?: boolean;\n pos?: 'absolute' | 'fixed' | 'relative' | 'static' | 'sticky';\n relative?: boolean;\n fullHeight?: boolean;\n aspectRatio?:\n | '1by1'\n | '5by4'\n | '4by3'\n | '3by2'\n | '5by3'\n | '16by9'\n | '2by1'\n | '3by1'\n | '4by5'\n | '3by4'\n | '2by3'\n | '3by5'\n | '9by16'\n | '1by2'\n | '1by3';\n}\n```\n\n---\n\n## Responsive Design\n\n### Global Viewport Property (Legacy)\n\nThe `viewport` prop applies a single viewport modifier to ALL properties that support it:\n\n```tsx\nconst { bulmaHelperClasses } = useBulmaClasses({\n color: 'primary',\n textAlign: 'centered',\n textSize: '4',\n viewport: 'mobile', // Applies -mobile to ALL properties\n});\n// Result: has-text-primary-mobile has-text-centered-mobile is-size-4-mobile\n```\n\n### Viewport-Specific Properties (Recommended)\n\nViewport-specific properties allow you to set **different values for each viewport**:\n\n```tsx\nconst { bulmaHelperClasses } = useBulmaClasses({\n // Different text sizes for each viewport\n textSizeMobile: '6', // Small on mobile\n textSizeTablet: '5', // Medium on tablet\n textSizeDesktop: '4', // Large on desktop\n\n // Different text alignment for each viewport\n textAlignMobile: 'centered', // Center on mobile\n textAlignDesktop: 'left', // Left align on desktop\n\n // Different visibility for each viewport\n visibilityMobile: 'hidden', // Hidden on mobile\n visibilityTablet: 'invisible', // Invisible from tablet up\n});\n// Result: is-size-6-mobile is-size-5-tablet is-size-4-desktop\n// has-text-centered-mobile has-text-left-desktop is-hidden-mobile is-invisible-tablet\n```\n\n### Breakpoint Reference\n\nBulma's responsive breakpoints:\n\n- **mobile**: up to 768px\n- **tablet**: 769px and above\n- **tablet-only**: 769px - 1023px (excludes desktop and above)\n- **touch**: up to 1023px (mobile + tablet combined — the breakpoint most often used to hide desktop-only chrome)\n- **desktop**: 1024px and above\n- **desktop-only**: 1024px - 1215px (excludes widescreen and above)\n- **widescreen**: 1216px and above\n- **widescreen-only**: 1216px - 1407px (excludes fullhd)\n- **fullhd**: 1408px and above\n\n`display`/`visibility` are the only property families with `*Touch`/`*TabletOnly`/`*DesktopOnly`/`*WidescreenOnly` props; other viewport-aware properties (`textSize*`, `textAlign*`) only go through `mobile`/`tablet`/`desktop`/`widescreen`/`fullhd`, though the generic `viewport` prop itself accepts all nine values for any property that reads it.\n\n### Properties That Support Viewport Modifiers\n\nOnly certain properties support responsive variants:\n\n**✅ Support Viewport Modifiers:**\n\n- Text size (`textSize`, `textSizeMobile`, `textSizeTablet`, etc.)\n- Text alignment (`textAlign`, `textAlignMobile`, `textAlignTablet`, etc.)\n- Display (`display`, `displayMobile`, `displayTablet`, `displayTabletOnly`, `displayTouch`, `displayDesktop`, `displayDesktopOnly`, `displayWidescreen`, `displayWidescreenOnly`, `displayFullhd`)\n- Visibility (`visibility`, `visibilityMobile`, `visibilityTablet`, `visibilityTabletOnly`, `visibilityTouch`, `visibilityDesktop`, `visibilityDesktopOnly`, `visibilityWidescreen`, `visibilityWidescreenOnly`, `visibilityFullhd`)\n\n**❌ Do NOT Support Viewport Modifiers:**\n\n- Spacing (`m`, `mt`, `mr`, `mb`, `ml`, `mx`, `my`, `p`, `pt`, `pr`, `pb`, `pl`, `px`, `py`)\n- Background colors (`backgroundColor`)\n- Flexbox properties (`flexDirection`, `flexWrap`, `justifyContent`, etc.)\n- Other helpers (`float`, `overflow`, `pos`, `radius`, `shadow`, `aspectRatio`, etc.)\n\n---\n\n## Notes\n\n- Any prop not recognized as a Bulma helper prop is passed through in `rest`.\n- Responsive helper props (`viewport`) suffix classes with the breakpoint (e.g., `is-size-3-mobile`).\n- You can use in combination with [`classNames`](https://bestax.io/docs/api/helpers/classnames) for more advanced use.\n\n---\n\n## See Also\n\n- [classNames helper](https://bestax.io/docs/api/helpers/classnames)\n- [Bulma Classes Reference](https://bulma.io/documentation/helpers/)\n- [Storybook: useBulmaClasses Demo](https://bestax.io/storybook/?path=/story/helpers-usebulmaclasses--default)",
200
+ "doc": "# useBulmaClasses\n\n## Overview\n\n`useBulmaClasses` is a custom React hook that generates Bulma helper class strings from a set of props. It makes it easy to apply color, spacing, alignment, typography, flexbox, and other Bulma utility classes to your components in a type-safe, composable way. It also separates out any non-helper props for direct use on elements.\n\n---\n\n## Import\n\n```tsx\nimport { useBulmaClasses } from '@allxsmith/bestax-bulma';\n```\n\n---\n\n## Usage\n\n:::info Container components pad themselves\nContainer components like `Box`, `Notification`, `Message`, and `Card` ship with Bulma's standard, pleasant padding and stack with sensible default spacing. The examples below only add margin or padding props when spacing itself is what's being demonstrated.\n:::\n\n### Basic Example\n\n```tsx live\nfunction example() {\n const { bulmaHelperClasses, rest } = useBulmaClasses({\n color: 'link',\n backgroundColor: 'primary',\n p: '4',\n textAlign: 'centered',\n id: 'card1',\n });\n\n return JSON.stringify({ bulmaHelperClasses, rest });\n // bulmaHelperClasses: 'has-text-link has-background-primary p-4 has-text-centered'\n // rest: { id: 'card1' }\n}\n```\n\nApply to your component:\n\n```tsx live\nfunction example() {\n const { bulmaHelperClasses, rest } = useBulmaClasses({\n color: 'link',\n backgroundColor: 'primary',\n p: '4',\n textAlign: 'centered',\n id: 'card1',\n });\n\n return (\n <div className={classNames('custom-card', bulmaHelperClasses)} {...rest}>\n Card content\n </div>\n );\n}\n```\n\n---\n\n### Responsive Props\n\n```tsx live\nfunction example() {\n const { bulmaHelperClasses } = useBulmaClasses({\n color: 'link',\n backgroundColor: 'primary',\n m: '2',\n textAlign: 'centered',\n viewport: 'mobile',\n });\n return JSON.stringify({ bulmaHelperClasses });\n // bulmaHelperClasses: 'has-text-link-mobile m-2-mobile has-text-centered-mobile'\n}\n```\n\n---\n\n### Touch and `-only` Viewports\n\nBeyond the five breakpoint props, `display`/`visibility` also take `touch` (mobile + tablet combined — the breakpoint most often used to hide desktop-only chrome) and the `-only` variants (`tablet-only`, `desktop-only`, `widescreen-only`), each isolating a single breakpoint band:\n\n```tsx live\nfunction example() {\n const { bulmaHelperClasses } = useBulmaClasses({\n displayTouch: 'none',\n displayDesktopOnly: 'flex',\n });\n return JSON.stringify({ bulmaHelperClasses });\n // bulmaHelperClasses: 'is-hidden-touch is-flex-desktop-only'\n}\n```\n\n```tsx live\n<Buttons>\n <Button visibilityTouch=\"hidden\">Hidden on mobile + tablet</Button>\n <Button visibilityDesktopOnly=\"invisible\">Invisible on desktop only</Button>\n <Button>Always visible</Button>\n</Buttons>\n```\n\nThe legacy `viewport` prop widens to all nine values too, so `useBulmaClasses({ display: 'flex', viewport: 'touch' })` produces `is-flex-touch`. One exception: Bulma ships no `is-size-*` classes for the three `-only` bands, so `textSize` combined with a `tablet-only`/`desktop-only`/`widescreen-only` `viewport` degrades to the base `is-size-N` (rather than emitting a dead `is-size-N-tablet-only`); `touch` and the five breakpoints are unaffected.\n\n---\n\n### Grid Display\n\n`display` also accepts `'grid'`, emitting `is-grid`:\n\n```tsx live\n<Box display=\"grid\">\n <Notification color=\"primary\" m=\"1\">\n Cell 1\n </Notification>\n <Notification color=\"info\" m=\"1\">\n Cell 2\n </Notification>\n</Box>\n```\n\n---\n\n### With Flexbox Helpers\n\nFlexbox properties are divided into two categories:\n\n#### Container Properties\n\nThese properties apply to elements with `display: flex` or `display: inline-flex`, which on most components means a `display` prop of `flex` or `inline-flex` as well. [`Stack`](https://bestax.io/docs/api/layout/stack), [`Group`](https://bestax.io/docs/api/layout/group), [`Center`](https://bestax.io/docs/api/layout/center) and [`Flex`](https://bestax.io/docs/api/layout/flex) are flex containers already, so they take these with no `display` prop:\n\n- `flexDirection` - Direction of flex items\n- `flexWrap` - Whether items wrap\n- `justifyContent` - Alignment along main axis\n- `alignContent` - Alignment of wrapped lines\n- `alignItems` - Alignment along cross axis\n\n#### Item Properties\n\nThese properties apply to flex items (children of flex containers) and **do not require** the element itself to have `display: flex`:\n\n- `alignSelf` - Override container's alignItems for this item\n- `flexGrow` - How much the item should grow\n- `flexShrink` - How much the item should shrink\n\n```tsx live\nfunction example() {\n const { bulmaHelperClasses } = useBulmaClasses({\n display: 'flex',\n flexDirection: 'column',\n alignItems: 'center',\n justifyContent: 'center',\n gap: '4',\n });\n return JSON.stringify({ bulmaHelperClasses });\n // bulmaHelperClasses: 'is-gap-4 is-flex is-flex-direction-column is-align-items-center is-justify-content-center'\n}\n```\n\nExample with flex items:\n\n```tsx\n// Container with display flex\n<Box display=\"flex\" alignItems=\"center\">\n {/* Items don't need display flex to use alignSelf, flexGrow, flexShrink */}\n <Button alignSelf=\"flex-start\">Start</Button>\n <Button alignSelf=\"center\" flexGrow=\"1\">\n Center & Grow\n </Button>\n <Button alignSelf=\"flex-end\" flexShrink=\"0\">\n End & No Shrink\n </Button>\n</Box>\n```\n\n---\n\n### Using with Components\n\n:::note These are illustrations, not replacements\nThe snippets below rebuild simplified components by hand purely to show how `useBulmaClasses` fits inside one. In a real app, use the library's own [Columns / Column](https://bestax.io/docs/api/columns) and [Card](https://bestax.io/docs/api/components/card) components — they already wire up `useBulmaClasses` (plus prefixes, modifiers, and more) for you.\n:::\n\n#### Columns\n\n`MyColumns` merges a caller's `className` with its own and forwards the rest of its props to `useBulmaClasses` — the `textAlign` and `textTransform` helper props below flow through `props` into the hook (producing `has-text-centered is-uppercase`), while anything the hook doesn't recognize comes back in `rest` and lands on the `<div>`:\n\n```tsx live\nimport type { BulmaClassesProps } from '@allxsmith/bestax-bulma';\n\nfunction example() {\n function MyColumns({\n children,\n className,\n ...props\n }: BulmaClassesProps & React.ComponentPropsWithoutRef<'div'>) {\n const { bulmaHelperClasses, rest } = useBulmaClasses(props);\n return (\n <div\n className={classNames('columns', bulmaHelperClasses, className)}\n {...rest}\n >\n {children}\n </div>\n );\n }\n\n return (\n <MyColumns textAlign=\"centered\" textTransform=\"uppercase\">\n <div className=\"column\">\n <Notification color=\"primary\">Left</Notification>\n </div>\n <div className=\"column\">\n <Notification color=\"info\">Right</Notification>\n </div>\n </MyColumns>\n );\n}\n```\n\n#### Card\n\n```tsx live\nfunction example() {\n const props = {};\n\n const textColor = 'white';\n const bgColor = 'primary';\n const hasShadow = true;\n const className = 'custom-card';\n const children = <p>Making a custom card</p>;\n const p = '4';\n\n const { bulmaHelperClasses, rest } = useBulmaClasses({\n color: textColor,\n backgroundColor: bgColor,\n p,\n ...props,\n });\n const cardClasses = classNames('card', className, bulmaHelperClasses, {\n 'is-shadowless': !hasShadow,\n });\n return (\n <div className={cardClasses} {...rest}>\n {children}\n </div>\n );\n}\n```\n\n---\n\n### Colors\n\nUse the `color` prop to apply Bulma color classes. Here, each button demonstrates a different color:\n\n```tsx live\n<Buttons>\n <Button color=\"primary\">Primary</Button>\n <Button color=\"link\">Link</Button>\n <Button color=\"info\">Info</Button>\n <Button color=\"success\">Success</Button>\n <Button color=\"warning\">Warning</Button>\n <Button color=\"danger\">Danger</Button>\n <Button color=\"black\">Black</Button>\n <Button color=\"white\">White</Button>\n</Buttons>\n```\n\n### Background Color\n\nComponents expose this helper as `bgColor` (the hook's own parameter is `backgroundColor`). Pair it with a text color that keeps the label readable on each background:\n\n```tsx live\n<Columns isMultiline>\n <Column size=\"one-quarter\">\n <Box bgColor=\"primary\" textColor=\"white\">\n Primary\n </Box>\n </Column>\n <Column size=\"one-quarter\">\n <Box bgColor=\"link\" textColor=\"white\">\n Link\n </Box>\n </Column>\n <Column size=\"one-quarter\">\n <Box bgColor=\"info\" textColor=\"white\">\n Info\n </Box>\n </Column>\n <Column size=\"one-quarter\">\n <Box bgColor=\"success\" textColor=\"white\">\n Success\n </Box>\n </Column>\n <Column size=\"one-quarter\">\n <Box bgColor=\"warning\" textColor=\"black\">\n Warning\n </Box>\n </Column>\n <Column size=\"one-quarter\">\n <Box bgColor=\"danger\" textColor=\"white\">\n Danger\n </Box>\n </Column>\n <Column size=\"one-quarter\">\n <Box bgColor=\"black\" textColor=\"white\">\n Black\n </Box>\n </Column>\n <Column size=\"one-quarter\">\n <Box bgColor=\"white\" textColor=\"black\">\n White\n </Box>\n </Column>\n</Columns>\n```\n\n### Scheme Backgrounds and `bulmaHelperStyles`\n\nThe hook returns a third member, `bulmaHelperStyles`, alongside `bulmaHelperClasses` and `rest`. It is `undefined` for every input except a scheme `backgroundColor` (`scheme-main`, `scheme-main-bis`, `scheme-main-ter`, `scheme-invert`, `scheme-invert-bis`, `scheme-invert-ter`): Bulma ships no `has-background-scheme-*` classes, so those values emit no class and instead surface here as a dark-mode-safe inline style tracking Bulma's scheme CSS variables.\n\n```tsx live\nfunction example() {\n const { bulmaHelperClasses, bulmaHelperStyles, rest } = useBulmaClasses({\n color: 'primary',\n backgroundColor: 'scheme-main-bis',\n id: 'band1',\n });\n\n return JSON.stringify({ bulmaHelperClasses, bulmaHelperStyles, rest });\n // bulmaHelperClasses: 'has-text-primary'\n // bulmaHelperStyles: { backgroundColor: 'var(--bulma-scheme-main-bis)' }\n // rest: { id: 'band1' }\n}\n```\n\nPut it on your element with `mergeBulmaStyles`, which merges the helper style with a user-supplied `style` prop (the user style wins, and the result is `undefined` when both are absent so the DOM stays untouched):\n\n```tsx live\nfunction example() {\n const { bulmaHelperClasses, bulmaHelperStyles, rest } = useBulmaClasses({\n backgroundColor: 'scheme-main-bis',\n p: '4',\n });\n\n return (\n <div\n {...rest}\n className={classNames('custom-band', bulmaHelperClasses)}\n style={mergeBulmaStyles(bulmaHelperStyles, undefined)}\n >\n A dark-mode-safe surface with zero custom CSS\n </div>\n );\n}\n```\n\nIn a real component, destructure `style` out of your own props and pass it as `mergeBulmaStyles`'s second argument (as `Section` does) — if `style` stays in the object you spread, whichever comes later in JSX silently replaces the other instead of merging.\n\n### Color Shade\n\n`colorShade` refines the **text color** — it pairs with the hook's `color` prop (exposed as `textColor` on components, where `color` is the component's own modifier). Here, each line steps through the primary palette:\n\n```tsx live\n<>\n <Paragraph textColor=\"primary\" colorShade=\"10\" textWeight=\"semibold\">\n Primary 10\n </Paragraph>\n <Paragraph textColor=\"primary\" colorShade=\"30\" textWeight=\"semibold\">\n Primary 30\n </Paragraph>\n <Paragraph textColor=\"primary\" colorShade=\"60\" textWeight=\"semibold\">\n Primary 60\n </Paragraph>\n <Paragraph textColor=\"primary\" colorShade=\"90\" textWeight=\"semibold\">\n Primary 90\n </Paragraph>\n <Paragraph textColor=\"primary\" colorShade=\"invert\" textWeight=\"semibold\">\n Primary Invert\n </Paragraph>\n</>\n```\n\n### Background Color Shade\n\nBackground shades use their own prop: `backgroundColorShade` pairs with `backgroundColor`, independently of `colorShade` (which pairs with the text color). Low shade numbers are dark and high numbers are light, so dark shades get light text and light shades get dark text to keep each label readable:\n\n```tsx live\n<Columns isMultiline>\n <Column size=\"one-quarter\">\n <Box bgColor=\"primary\" backgroundColorShade=\"10\" textColor=\"white\">\n Primary 10\n </Box>\n </Column>\n <Column size=\"one-quarter\">\n <Box bgColor=\"primary\" backgroundColorShade=\"30\" textColor=\"white\">\n Primary 30\n </Box>\n </Column>\n <Column size=\"one-quarter\">\n <Box bgColor=\"primary\" backgroundColorShade=\"60\" textColor=\"black\">\n Primary 60\n </Box>\n </Column>\n <Column size=\"one-quarter\">\n <Box bgColor=\"primary\" backgroundColorShade=\"90\" textColor=\"black\">\n Primary 90\n </Box>\n </Column>\n <Column size=\"one-quarter\">\n <Box bgColor=\"primary\" backgroundColorShade=\"invert\" textColor=\"white\">\n Primary Invert\n </Box>\n </Column>\n</Columns>\n```\n\nBecause the two shade props are independent, you can shade the text and the background at the same time — a dark background shade with a light text shade of the same color reads well in both themes:\n\n```tsx live\n<Box\n bgColor=\"primary\"\n backgroundColorShade=\"15\"\n textColor=\"primary\"\n colorShade=\"85\"\n>\n Primary text shade 85 on a primary background shade 15\n</Box>\n```\n\n### Margin\n\nUse margin props to add spacing. Here, margin is applied to buttons, and to a row of buttons using the `Buttons` component:\n\n```tsx live\n<>\n <Buttons>\n <Button>Left</Button>\n <Button m=\"4\">Margin 4</Button>\n <Button>Right</Button>\n </Buttons>\n <Buttons mt=\"5\" mb=\"5\">\n <Button>Top/Bottom Margin</Button>\n <Button>Row 2</Button>\n </Buttons>\n</>\n```\n\n### Gap\n\n`gap` puts space between the children of a flex or grid container, and `columnGap` and `rowGap` set one axis. Each whole step is 0.5rem, so `gap=\"2\"` is 1rem and `gap=\"8\"` is 4rem, with half steps such as `\"1.5\"` between them. That is not the margin scale, where `m=\"2\"` is 0.5rem. A step can also be written as a number (`gap={2}`).\n\nThe helpers set the CSS `gap`, which does nothing unless the element lays its children out as flex or grid. Pair them with `display=\"flex\"` or `display=\"grid\"`, or use them on a component that already is one, such as `Buttons` or `Tags`, where they replace the spacing Bulma gives it:\n\n```tsx live\n<>\n <Block display=\"flex\" flexWrap=\"wrap\" gap=\"2\">\n <Tag color=\"primary\">One</Tag>\n <Tag color=\"primary\">Two</Tag>\n <Tag color=\"primary\">Three</Tag>\n </Block>\n <Block display=\"flex\" flexDirection=\"column\" gap=\"0.5\">\n <Tag color=\"info\">A column</Tag>\n <Tag color=\"info\">with a half step</Tag>\n </Block>\n <Buttons gap=\"1\">\n <Button>Tighter</Button>\n <Button>than Bulma's</Button>\n <Button>default</Button>\n </Buttons>\n</>\n```\n\n`gapless` removes the gap, the shortcut for `gap=\"0\"`; when both are set, `gap` wins. `columnGap` and `rowGap` win on their own axis over `gap` and `gapless`, so `gap=\"4\" rowGap=\"1\"` spaces the columns 2rem apart and the rows 0.5rem.\n\n`Grid` takes `gap`, `columnGap` and `rowGap` as its own props and renders the same classes. `Columns` keeps its own `gap`, the columns gutter, which takes whole steps; see [Columns](https://bestax.io/docs/api/columns).\n\n### Text Size\n\nApply `textSize` to Notifications to illustrate different sizes:\n\n```tsx live\n<>\n <Notification textSize=\"1\">Size 1</Notification>\n <Notification textSize=\"3\">Size 3</Notification>\n <Notification textSize=\"5\">Size 5</Notification>\n <Notification textSize=\"7\">Size 7</Notification>\n</>\n```\n\n### Text Align\n\nApply `textAlign` to a Box to illustrate text alignment:\n\n```tsx live\n<>\n <Box textAlign=\"centered\">Centered text</Box>\n <Box textAlign=\"right\">Right aligned text</Box>\n <Box textAlign=\"left\">Left aligned text</Box>\n</>\n```\n\n### Text Transform\n\nApply `textTransform` to a Content tag with a paragraph of the Declaration of Independence:\n\n```tsx live\n<>\n <Box>\n <Content textTransform=\"uppercase\">\n <p>\n We hold these truths to be self-evident, that all men are created\n equal...\n </p>\n </Content>\n </Box>\n <Box>\n <Content textTransform=\"lowercase\">\n <p>\n We hold these truths to be self-evident, that all men are created\n equal...\n </p>\n </Content>\n </Box>\n <Box>\n <Content textTransform=\"capitalized\">\n <p>\n We hold these truths to be self-evident, that all men are created\n equal...\n </p>\n </Content>\n </Box>\n <Box>\n <Content textTransform=\"italic\">\n <p>\n We hold these truths to be self-evident, that all men are created\n equal...\n </p>\n </Content>\n </Box>\n</>\n```\n\n### Text Weight\n\nApply `textWeight` to Content tags to illustrate different font weights:\n\n```tsx live\n<>\n <Box>\n <Content textWeight=\"light\">\n <p>\n We hold these truths to be self-evident, that all men are created\n equal...\n </p>\n </Content>\n </Box>\n <Box>\n <Content textWeight=\"normal\">\n <p>\n We hold these truths to be self-evident, that all men are created\n equal...\n </p>\n </Content>\n </Box>\n <Box>\n <Content textWeight=\"medium\">\n <p>\n We hold these truths to be self-evident, that all men are created\n equal...\n </p>\n </Content>\n </Box>\n <Box>\n <Content textWeight=\"bold\">\n <p>\n We hold these truths to be self-evident, that all men are created\n equal...\n </p>\n </Content>\n </Box>\n</>\n```\n\n### Font Family\n\nUse Content blocks with different font families:\n\n```tsx live\n<>\n <Box>\n <Content fontFamily=\"sans-serif\">\n <p>\n We hold these truths to be self-evident, that all men are created\n equal...\n </p>\n </Content>\n </Box>\n <Box>\n <Content fontFamily=\"monospace\">\n <p>\n We hold these truths to be self-evident, that all men are created\n equal...\n </p>\n </Content>\n </Box>\n <Box>\n <Content fontFamily=\"primary\">\n <p>\n We hold these truths to be self-evident, that all men are created\n equal...\n </p>\n </Content>\n </Box>\n <Box>\n <Content fontFamily=\"secondary\">\n <p>\n We hold these truths to be self-evident, that all men are created\n equal...\n </p>\n </Content>\n </Box>\n <Box>\n <Content fontFamily=\"code\">\n <p>\n We hold these truths to be self-evident, that all men are created\n equal...\n </p>\n </Content>\n </Box>\n</>\n```\n\n### Visibility\n\nShow three buttons, one hidden, one screen-reader only:\n\n```tsx live\n<Buttons>\n <Button visibility=\"hidden\">Hidden</Button>\n <Button visibility=\"sr-only\">Screen Reader Only</Button>\n <Button>Visible</Button>\n</Buttons>\n```\n\n### Overflow\n\nShow a Box with clipped overflow:\n\n```tsx live\n<Box overflow=\"clipped\" style={{ width: 200, height: 50 }}>\n This is a very long line of text that will be clipped and not overflow the\n box.\n</Box>\n```\n\n`overflow` also takes the CSS keywords Bulma has helpers for (`auto`, `clip`, `hidden`, `scroll`, `visible`), and `overflowX` and `overflowY` set one axis. Beside `overflow`, an axis prop wins on its own axis and `overflow` sets the other, with `clipped` counting as `hidden`, so `overflow=\"hidden\" overflowY=\"auto\"` clips sideways and scrolls down.\n\nHere an aspect ratio fixes the height and the list scrolls inside it. A region that scrolls needs to be reachable from the keyboard, so the example gives it `tabIndex={0}`, a `region` role and a name.\n\n```tsx live\n<Box\n aspectRatio=\"3by1\"\n overflowY=\"auto\"\n tabIndex={0}\n role=\"region\"\n aria-label=\"Scrolling list\"\n>\n {Array.from({ length: 20 }, (_, i) => (\n <p key={i}>Line {i + 1} of a list longer than the box.</p>\n ))}\n</Box>\n```\n\nWithout `overflowY` the box would grow to fit the list, because an aspect ratio gives way to content that does not fit.\n\n### Overlay\n\n`overlay` is `position: absolute` with `top`, `right`, `bottom` and `left` at 0, so it covers the nearest positioned ancestor. The [position](https://bestax.io/docs/api/helpers/usebulmaclasses#position) helpers set `position` with `!important`, so a `pos` or `relative` beside `overlay` replaces the `absolute` and keeps the zero offsets. `overlay pos=\"fixed\"` covers the viewport instead. `sticky`, `relative` and `static` put the element back in the normal flow, where it covers nothing, and a sticky one sticks at every edge of its scroll container.\n\nShow an overlay (toggle with button click):\n\n```tsx\nfunction OverlayExample() {\n const [show, setShow] = useState(false);\n return (\n <Box overlay={show}>\n <Button onClick={() => setShow(s => !s)}>\n {show ? 'Hide Overlay' : 'Show Overlay'}\n </Button>\n </Box>\n );\n}\n```\n\n### Interaction\n\nShow text in a Box with `unselectable`, and another Box with `clickable`. `clickable` adds no role, tab stop or keyboard handling, so an element people click should still be a `<button>` or a link:\n\n```tsx live\n<>\n <Box interaction=\"unselectable\">This text cannot be selected.</Box>\n <Box interaction=\"clickable\">This box shows a pointer cursor.</Box>\n</>\n```\n\n### Cursor\n\nUse the `cursor` prop to set the cursor style. `'pointer'` reuses Bulma's `is-clickable` class, while `'help'` uses the project-level `is-cursor-help` class:\n\n```tsx live\n<>\n <Box cursor=\"pointer\">Cursor: pointer (uses is-clickable)</Box>\n <Box cursor=\"help\">Cursor: help</Box>\n</>\n```\n\n### Radius\n\n`radiusless` removes the radius; `small`, `normal`, `large` and `rounded` set one from Bulma's radius scale:\n\n```tsx live\n<Buttons>\n <Button radius=\"radiusless\">Radiusless</Button>\n <Button radius=\"small\">Small</Button>\n <Button radius=\"normal\">Normal</Button>\n <Button radius=\"large\">Large</Button>\n <Button radius=\"rounded\">Rounded</Button>\n</Buttons>\n```\n\nThe class goes on the component's root element, so where an inner element draws the radius, such as the `<img>` inside `Image`, that element keeps its own. The sizes are not `!important`, unlike `radiusless`, so a component rule more specific than one class still wins: an `isRounded` control stays a pill, and a joined addon keeps its square inner corners.\n\n### Shadowless\n\nShow a Box with `shadowless`:\n\n```tsx live\n<Box shadow=\"shadowless\">This box has no shadow.</Box>\n```\n\n### ClassName\n\nShow a Message with a custom className:\n\n```tsx live\n<Message className=\"custom-message\">\n This message uses a custom className.\n</Message>\n```\n\n### Clearfix\n\nShow containers with and without clearfix to demonstrate the importance of clearing floated elements:\n\n```tsx live\n<>\n <Box>\n <Title size=\"6\">Without clearfix (container collapses)</Title>\n <Notification color=\"danger\">\n <Button float=\"left\" color=\"primary\">\n Left\n </Button>\n <Button float=\"right\" color=\"danger\">\n Right\n </Button>\n </Notification>\n </Box>\n\n <Box>\n <Title size=\"6\">With clearfix (container wraps its floats)</Title>\n <Notification color=\"success\" clearfix>\n <Button float=\"left\" color=\"primary\">\n Left\n </Button>\n <Button float=\"right\" color=\"danger\">\n Right\n </Button>\n </Notification>\n </Box>\n</>\n```\n\n### Position\n\n`pos` sets CSS `position`: `absolute`, `fixed`, `relative`, `static` or `sticky`. It is named `pos` because several components already have a `position` prop of their own, for where they place a popup or a toast. `relative` is the older shortcut for `pos=\"relative\"` and still works; when both are set, `pos` wins. Beside `overlay`, a `pos` or `relative` replaces the overlay's `absolute` and keeps its zero offsets; see [Overlay](https://bestax.io/docs/api/helpers/usebulmaclasses#overlay).\n\nShow a container with relative positioning that provides context for an absolutely positioned child. The helpers set `position` and nothing else, so the child keeps its `top` and `right` offsets inline:\n\n```tsx live\n<Notification pos=\"relative\" pb=\"6\" color=\"info\">\n <Span>This container has position: relative</Span>\n <Tag\n color=\"primary\"\n size=\"medium\"\n pos=\"absolute\"\n style={{ top: '1rem', right: '1rem' }}\n >\n Absolutely positioned child\n </Tag>\n</Notification>\n```\n\n`pos=\"sticky\"` needs an offset in the same way, and does nothing until it has one.\n\n### Aspect Ratio\n\n`aspectRatio` fixes an element's width-to-height ratio to one of Bulma's ratios, such as `1by1`, `4by3` or `16by9`, or a portrait one such as `9by16`. The full set is in [Supported Props](https://bestax.io/docs/api/helpers/usebulmaclasses#supported-props). The height follows the width:\n\n```tsx live\n<Columns>\n <Column>\n <Notification color=\"primary\" aspectRatio=\"1by1\">\n 1by1\n </Notification>\n </Column>\n <Column>\n <Notification color=\"info\" aspectRatio=\"4by3\">\n 4by3\n </Notification>\n </Column>\n <Column>\n <Notification color=\"success\" aspectRatio=\"16by9\">\n 16by9\n </Notification>\n </Column>\n</Columns>\n```\n\nOn `Image`, use its own `size` ratios instead, which also fit the picture to the box.\n\n---\n\n### Skeleton Examples\n\nThe `skeleton` prop applies Bulma's skeleton loading effect. [Skeleton's accessibility notes](https://bestax.io/docs/api/elements/skeleton#accessibility) cover it too, reduced motion and forced colors included. In short, hide a skeleton from screen readers, and take a skeleton control out of the tab order. Here are examples for each component:\n\n#### Skeleton Button\n\n```tsx live\n<Button skeleton tabIndex={-1} aria-hidden=\"true\">\n Skeleton Button\n</Button>\n```\n\n#### Skeleton Buttons Group\n\n```tsx live\n<Buttons>\n <Button skeleton tabIndex={-1} aria-hidden=\"true\">\n Skeleton\n </Button>\n <Button skeleton tabIndex={-1} aria-hidden=\"true\">\n Skeleton\n </Button>\n <Button skeleton tabIndex={-1} aria-hidden=\"true\">\n Skeleton\n </Button>\n</Buttons>\n```\n\n#### Skeleton Icon\n\n```tsx live\n<Icon name=\"star\" skeleton />\n```\n\n#### Skeleton Image\n\n> A path under /img/ here stands for a picture your own app serves, such as a file in its public/img/ folder.\n\n```tsx live\n<Image skeleton src=\"/img/react-logo.png\" alt=\"Skeleton image\" size=\"128x128\" />\n```\n\n#### Skeleton Notification\n\n```tsx live\n<Notification skeleton aria-hidden=\"true\">\n Skeleton notification message.\n</Notification>\n```\n\n#### Skeleton Tag\n\n```tsx live\n<Tag skeleton aria-hidden=\"true\">\n Skeleton Tag\n</Tag>\n```\n\n#### Skeleton Title\n\n```tsx live\n<Title skeleton aria-hidden=\"true\" size=\"2\">\n Skeleton Title\n</Title>\n```\n\n#### Skeleton SubTitle\n\n```tsx live\n<SubTitle skeleton aria-hidden=\"true\" size=\"4\">\n Skeleton SubTitle\n</SubTitle>\n```\n\n#### Skeleton Input\n\n```tsx live\n<Input skeleton tabIndex={-1} aria-hidden=\"true\" placeholder=\"Skeleton Input\" />\n```\n\n#### Skeleton TextArea\n\n```tsx live\n<TextArea\n skeleton\n tabIndex={-1}\n aria-hidden=\"true\"\n placeholder=\"Skeleton TextArea\"\n rows={3}\n/>\n```\n\n---\n\n## API\n\n```tsx\nconst { bulmaHelperClasses, bulmaHelperStyles, rest } = useBulmaClasses(props);\n\n// For an element whose own CSS makes it a flex container:\nconst flex = useBulmaClasses(props, { flexContainer: true });\n```\n\n- **props**: An object supporting all Bulma helper class props (see [Supported Props](https://bestax.io/docs/api/helpers/usebulmaclasses#supported-props)), plus any additional props. `backgroundColor` additionally accepts the six [`validSchemeColors`](https://bestax.io/docs/api/helpers/valid-values) values.\n- **options**: Optional. `{ flexContainer: true }` says the element is a flex container by its own stylesheet, so the flex container props (`flexDirection`, `flexWrap`, `justifyContent`, `alignContent`, `alignItems`) emit their classes with no `display` prop. It adds no display class. [`Stack`](https://bestax.io/docs/api/layout/stack), [`Group`](https://bestax.io/docs/api/layout/group), [`Center`](https://bestax.io/docs/api/layout/center) and [`Flex`](https://bestax.io/docs/api/layout/flex) pass it. Passed through to `useFlexboxClasses`.\n- **bulmaHelperClasses**: A string of Bulma utility classes to be applied to your element.\n- **bulmaHelperStyles**: `React.CSSProperties | undefined` — an inline style for a scheme `backgroundColor` (see [Scheme Backgrounds](https://bestax.io/docs/api/helpers/usebulmaclasses#scheme-backgrounds-and-bulmahelperstyles)); `undefined` for every other input. Apply it with [`mergeBulmaStyles`](https://bestax.io/docs/api/helpers/usebulmaclasses#scheme-backgrounds-and-bulmahelperstyles) so a user `style` prop wins.\n- **rest**: An object of all remaining props (with helper props stripped out), suitable for spreading onto your component.\n\n---\n\n## Composable Mini-Hooks\n\n`useBulmaClasses` remains the everything-hook — it is what most bestax-bulma components use internally, and it covers the full helper prop surface with zero behavior change. If you are building a custom component that only needs a slice of that surface, you can reach for one of seven composable mini hooks instead. Each mini hook accepts just its own group of props and returns a plain class string (except `useColorStyles`, which returns an inline style object or `undefined`), which you can combine with the [`classNames`](https://bestax.io/docs/api/helpers/classnames) utility.\n\n| Hook | Props Covered | Returns |\n| ---------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| `useColorClasses` | `color`, `colorShade`, `backgroundColor`, `backgroundColorShade` | Text and background color classes, including palette shades |\n| `useColorStyles` | `backgroundColor` (scheme values) | `{ backgroundColor: 'var(--bulma-scheme-*)' }` for a scheme background, `undefined` otherwise — the source of `bulmaHelperStyles` |\n| `useSpacingClasses` | `m`, `mt`, `mr`, `mb`, `ml`, `mx`, `my`, `p`, `pt`, `pr`, `pb`, `pl`, `px`, `py`, `gap`, `columnGap`, `rowGap`, `gapless` | Margin, padding and gap classes |\n| `useTypographyClasses` | `textSize`, `textAlign`, `textTransform`, `textWeight`, `fontFamily`, `viewport`, plus `textSize{Mobile..Fullhd}`, `textAlign{Mobile..Fullhd}` | Typography classes, including responsive size/alignment variants |\n| `useVisibilityClasses` | `display`, `visibility`, `viewport`, plus `display{Mobile,Tablet,TabletOnly,Touch,Desktop,DesktopOnly,Widescreen,WidescreenOnly,Fullhd}`, `visibility{Mobile,Tablet,TabletOnly,Touch,Desktop,DesktopOnly,Widescreen,WidescreenOnly,Fullhd}` | Display and visibility classes (this hook owns all display emission) |\n| `useFlexboxClasses` | `flexDirection`, `flexWrap`, `justifyContent`, `alignContent`, `alignItems`, `alignSelf`, `flexGrow`, `flexShrink` | Flexbox classes; container classes are only emitted when a `display`/`display{Viewport}` prop is `flex`/`inline-flex` or the second argument is `{ flexContainer: true }`, item classes (`alignSelf`, `flexGrow`, `flexShrink`) always emit |\n| `useOtherClasses` | `float`, `overflow`, `overflowX`, `overflowY`, `overlay`, `interaction`, `cursor`, `radius`, `shadow`, `responsive`, `skeleton`, `clearfix`, `pos`, `relative`, `fullHeight`, `aspectRatio` | Miscellaneous utility classes |\n\nAll seven hooks (plus `classNames` and `mergeBulmaStyles`) are exported from the package root:\n\n```tsx\nimport {\n useColorClasses,\n useColorStyles,\n useSpacingClasses,\n classNames,\n mergeBulmaStyles,\n} from '@allxsmith/bestax-bulma';\n```\n\nHere is a small custom component that only needs color and spacing helpers:\n\n```tsx live\nimport type { BulmaClassesProps } from '@allxsmith/bestax-bulma';\n\nfunction example() {\n function PriceTag({\n color,\n backgroundColor,\n backgroundColorShade,\n m,\n children,\n }: BulmaClassesProps & { children?: React.ReactNode }) {\n const colorClasses = useColorClasses({\n color,\n backgroundColor,\n backgroundColorShade,\n });\n const spacingClasses = useSpacingClasses({ m });\n return (\n <span className={classNames('tag', colorClasses, spacingClasses)}>\n {children}\n </span>\n );\n }\n\n return (\n <div>\n <PriceTag color=\"white\" backgroundColor=\"success\" m=\"2\">\n $19.99\n </PriceTag>\n <PriceTag\n color=\"white\"\n backgroundColor=\"danger\"\n backgroundColorShade=\"dark\"\n m=\"2\"\n >\n $49.99\n </PriceTag>\n </div>\n );\n}\n```\n\n:::note useFlexboxClasses and display\n\n`useFlexboxClasses` only emits container classes (`flexDirection`, `flexWrap`, `justifyContent`, `alignContent`, `alignItems`) when a `display` or `display{Viewport}` prop is `flex` or `inline-flex` — it reads those display props for gating but never emits the display class itself. Pair it with `useVisibilityClasses` (which owns display emission), or just use `useBulmaClasses`.\n\nFor an element whose own stylesheet makes it a flex container, pass `{ flexContainer: true }` as the second argument (to either hook), and the container classes emit with no `display` prop:\n\n```tsx\nconst flexboxClasses = useFlexboxClasses(\n { alignItems: 'center' },\n { flexContainer: true }\n);\n// 'is-align-items-center'\n```\n\n:::\n\n---\n\n## Supported Props\n\nBelow is the full list of supported props, derived from the `BulmaClassesProps` TypeScript definition:\n\n| Prop | Type / Example Value | Effect / Example Class |\n| ---------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- |\n| `color` | `'primary'`, `'link'`, `'info'`, `'success'`, `'warning'`, `'danger'`, `'black'`, `'black-bis'`, `'black-ter'`, `'grey-darker'`, `'grey-dark'`, `'grey'`, `'grey-light'`, `'grey-lighter'`, `'white'`, `'white-bis'`, `'white-ter'`, `'light'`, `'dark'`, `'inherit'`, `'current'` | `has-text-primary`, `has-text-grey-dark`, `has-text-inherit` |\n| `backgroundColor` | Same as `color`, plus the scheme values `'scheme-main'`, `'scheme-main-bis'`, `'scheme-main-ter'`, `'scheme-invert'`, `'scheme-invert-bis'`, `'scheme-invert-ter'` | `has-background-warning`; scheme values emit no class — they return as the `bulmaHelperStyles` inline style |\n| `colorShade` | `'00'`, `'05'`, `'10'`, `'15'`, `'20'`, `'25'`, `'30'`, `'35'`, `'40'`, `'45'`, `'50'`, `'55'`, `'60'`, `'65'`, `'70'`, `'75'`, `'80'`, `'85'`, `'90'`, `'95'`, `'invert'`, `'light'`, `'dark'`, `'soft'`, `'bold'`, `'on-scheme'` | `has-text-primary-25` |\n| `backgroundColorShade` | `'00'`, `'05'`, `'10'`, `'15'`, `'20'`, `'25'`, `'30'`, `'35'`, `'40'`, `'45'`, `'50'`, `'55'`, `'60'`, `'65'`, `'70'`, `'75'`, `'80'`, `'85'`, `'90'`, `'95'`, `'invert'`, `'light'`, `'dark'`, `'soft'`, `'bold'`, `'on-scheme'` | `has-background-info-dark` |\n| `m` | `'0'..'6'`, `'auto'` | `m-4`, `m-auto` |\n| `mt` | `'0'..'6'`, `'auto'` | `mt-2` |\n| `mr` | `'0'..'6'`, `'auto'` | `mr-6` |\n| `mb` | `'0'..'6'`, `'auto'` | `mb-0` |\n| `ml` | `'0'..'6'`, `'auto'` | `ml-auto` |\n| `mx` | `'0'..'6'`, `'auto'` | `mx-2` |\n| `my` | `'0'..'6'`, `'auto'` | `my-5` |\n| `p` | `'0'..'6'`, `'auto'` | `p-3`, `p-auto` |\n| `pt` | `'0'..'6'`, `'auto'` | `pt-1` |\n| `pr` | `'0'..'6'`, `'auto'` | `pr-6` |\n| `pb` | `'0'..'6'`, `'auto'` | `pb-0` |\n| `pl` | `'0'..'6'`, `'auto'` | `pl-4` |\n| `px` | `'0'..'6'`, `'auto'` | `px-1` |\n| `py` | `'0'..'6'`, `'auto'` | `py-6` |\n| `gap` | `'0'..'8'` in half steps, or a number | `is-gap-1.5` |\n| `columnGap` | Same as `gap` | `is-column-gap-4` |\n| `rowGap` | Same as `gap` | `is-row-gap-0.5` |\n| `gapless` | `true` | `is-gapless` |\n| `textSize` | `'1'..'7'` | `is-size-3` |\n| `textAlign` | `'centered'`, `'justified'`, `'left'`, `'right'` | `has-text-centered` |\n| `textTransform` | `'capitalized'`, `'lowercase'`, `'uppercase'`, `'italic'` | `is-uppercase`, `is-italic` |\n| `textWeight` | `'light'`, `'normal'`, `'medium'`, `'semibold'`, `'bold'` | `has-text-weight-bold` |\n| `fontFamily` | `'sans-serif'`, `'monospace'`, `'primary'`, `'secondary'`, `'code'` | `is-family-monospace` |\n| `display` | `'block'`, `'flex'`, `'inline'`, `'inline-block'`, `'inline-flex'`, `'grid'`, `'none'` | `is-flex`, `is-inline-block`, `is-grid`, `is-hidden` |\n| `visibility` | `'hidden'`, `'sr-only'`, `'invisible'` | `is-hidden`, `is-sr-only`, `is-invisible` |\n| `flexDirection` | `'row'`, `'row-reverse'`, `'column'`, `'column-reverse'` | `is-flex-direction-row` |\n| `flexWrap` | `'nowrap'`, `'wrap'`, `'wrap-reverse'` | `is-flex-wrap-nowrap` |\n| `justifyContent` | `'flex-start'`, `'flex-end'`, `'center'`, `'space-between'`, `'space-around'`, `'space-evenly'`, `'start'`, `'end'`, `'left'`, `'right'` | `is-justify-content-center` |\n| `alignContent` | `'flex-start'`, `'flex-end'`, `'center'`, `'space-between'`, `'space-around'`, `'space-evenly'`, `'stretch'` | `is-align-content-stretch` |\n| `alignItems` | `'stretch'`, `'flex-start'`, `'flex-end'`, `'center'`, `'baseline'`, `'start'`, `'end'` | `is-align-items-center` |\n| `alignSelf` | `'auto'`, `'flex-start'`, `'flex-end'`, `'center'`, `'baseline'`, `'stretch'` | `is-align-self-center` |\n| `flexGrow` | `'0'`, `'1'`, `'2'`, `'3'`, `'4'`, `'5'` | `is-flex-grow-1` |\n| `flexShrink` | `'0'`, `'1'`, `'2'`, `'3'`, `'4'`, `'5'` | `is-flex-shrink-0` |\n| `float` | `'left'`, `'right'` | `is-pulled-left`, `is-pulled-right` |\n| `overflow` | `'clipped'`, `'auto'`, `'clip'`, `'hidden'`, `'scroll'`, `'visible'` | `is-clipped`, `is-overflow-auto` |\n| `overflowX` | `'auto'`, `'clip'`, `'hidden'`, `'scroll'`, `'visible'` | `is-overflow-x-auto` |\n| `overflowY` | `'auto'`, `'clip'`, `'hidden'`, `'scroll'`, `'visible'` | `is-overflow-y-scroll` |\n| `overlay` | `true` | `is-overlay` |\n| `interaction` | `'unselectable'`, `'clickable'` | `is-unselectable` |\n| `cursor` | `'pointer'`, `'help'` | `is-clickable`, `is-cursor-help` |\n| `radius` | `'radiusless'`, `'small'`, `'normal'`, `'large'`, `'rounded'` | `is-radiusless`, `has-radius-large` |\n| `shadow` | `'shadowless'` | `is-shadowless` |\n| `responsive` | `'mobile'`, `'narrow'` | `is-mobile`, `is-narrow` |\n| `viewport` | `'mobile'`, `'tablet'`, `'tablet-only'`, `'touch'`, `'desktop'`, `'desktop-only'`, `'widescreen'`, `'widescreen-only'`, `'fullhd'` | Adds viewport suffix to supported properties |\n| `skeleton` | `true` | `is-skeleton` |\n| `clearfix` | `true` | `is-clearfix` |\n| `pos` | `'absolute'`, `'fixed'`, `'relative'`, `'static'`, `'sticky'` | `is-position-sticky` |\n| `relative` | `true` | `is-relative` (ignored when `pos` is set) |\n| `fullHeight` | `true` | `is-full-height` |\n| `aspectRatio` | `'1by1'`, `'5by4'`, `'4by3'`, `'3by2'`, `'5by3'`, `'16by9'`, `'2by1'`, `'3by1'`, `'4by5'`, `'3by4'`, `'2by3'`, `'3by5'`, `'9by16'`, `'1by2'`, `'1by3'` | `is-aspect-ratio-16by9` |\n\n### Viewport-Specific Properties\n\nThe following properties allow you to set different values for each viewport breakpoint:\n\n| Prop | Type / Example Value | Effect / Example Class |\n| -------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- |\n| `displayMobile` | `'block'`, `'flex'`, `'inline'`, `'grid'`, `'none'`, etc. | `is-block-mobile`, `is-flex-mobile`, `is-hidden-mobile` |\n| `displayTablet` | Same as above | `is-block-tablet`, `is-flex-tablet`, `is-hidden-tablet` |\n| `displayTabletOnly` | Same as above | `is-block-tablet-only`, `is-flex-tablet-only`, `is-hidden-tablet-only` |\n| `displayTouch` | Same as above | `is-block-touch`, `is-flex-touch`, `is-hidden-touch` |\n| `displayDesktop` | Same as above | `is-block-desktop`, `is-flex-desktop`, `is-hidden-desktop` |\n| `displayDesktopOnly` | Same as above | `is-block-desktop-only`, `is-flex-desktop-only`, `is-hidden-desktop-only` |\n| `displayWidescreen` | Same as above | `is-block-widescreen`, `is-flex-widescreen` |\n| `displayWidescreenOnly` | Same as above | `is-block-widescreen-only`, `is-flex-widescreen-only` |\n| `displayFullhd` | Same as above | `is-block-fullhd`, `is-flex-fullhd` |\n| `textSizeMobile` | `'1'..'7'` | `is-size-3-mobile`, `is-size-5-mobile` |\n| `textSizeTablet` | `'1'..'7'` | `is-size-3-tablet`, `is-size-5-tablet` |\n| `textSizeDesktop` | `'1'..'7'` | `is-size-3-desktop`, `is-size-5-desktop` |\n| `textSizeWidescreen` | `'1'..'7'` | `is-size-3-widescreen`, `is-size-5-widescreen` |\n| `textSizeFullhd` | `'1'..'7'` | `is-size-3-fullhd`, `is-size-5-fullhd` |\n| `textAlignMobile` | `'centered'`, `'left'`, `'right'`, `'justified'` | `has-text-centered-mobile`, `has-text-left-mobile` |\n| `textAlignTablet` | Same as above | `has-text-centered-tablet`, `has-text-left-tablet` |\n| `textAlignDesktop` | Same as above | `has-text-centered-desktop`, `has-text-left-desktop` |\n| `textAlignWidescreen` | Same as above | `has-text-centered-widescreen`, `has-text-left-widescreen` |\n| `textAlignFullhd` | Same as above | `has-text-centered-fullhd`, `has-text-left-fullhd` |\n| `visibilityMobile` | `'hidden'`, `'sr-only'`, `'invisible'` | `is-hidden-mobile`, `is-sr-only-mobile`, `is-invisible-mobile` |\n| `visibilityTablet` | Same as above | `is-hidden-tablet`, `is-sr-only-tablet`, `is-invisible-tablet` |\n| `visibilityTabletOnly` | Same as above | `is-hidden-tablet-only`, `is-sr-only-tablet-only`, `is-invisible-tablet-only` |\n| `visibilityTouch` | Same as above | `is-hidden-touch`, `is-sr-only-touch`, `is-invisible-touch` |\n| `visibilityDesktop` | Same as above | `is-hidden-desktop`, `is-sr-only-desktop`, `is-invisible-desktop` |\n| `visibilityDesktopOnly` | Same as above | `is-hidden-desktop-only`, `is-sr-only-desktop-only`, `is-invisible-desktop-only` |\n| `visibilityWidescreen` | Same as above | `is-hidden-widescreen`, `is-sr-only-widescreen`, `is-invisible-widescreen` |\n| `visibilityWidescreenOnly` | Same as above | `is-hidden-widescreen-only`, `is-sr-only-widescreen-only`, `is-invisible-widescreen-only` |\n| `visibilityFullhd` | Same as above | `is-hidden-fullhd`, `is-sr-only-fullhd`, `is-invisible-fullhd` |\n| `responsive` | `'mobile'`, `'narrow'` | `is-mobile`, `is-narrow` |\n| `clearfix` | `true` | `is-clearfix` |\n| `relative` | `true` | `is-relative` |\n| `viewport` | `'mobile'`, `'tablet'`, `'tablet-only'`, `'touch'`, `'desktop'`, `'desktop-only'`, `'widescreen'`, `'widescreen-only'`, `'fullhd'` | Adds suffix, e.g. `-mobile`, `-desktop`, `-touch`, `-tablet-only` |\n\nThe viewport properties' ranges overlap: the tablet, desktop and widescreen ones run from their\nbreakpoint up, the touch ones cover mobile and tablet, and an `Only` property sits inside the plain\none for its breakpoint. Where two display properties overlap, Bulma's stylesheet picks the winner,\nnot the breakpoint, so `displayTablet=\"none\"` keeps an element hidden on desktop whatever\n`displayDesktop` asks. The\n[Visibility guide](https://bestax.io/docs/guides/helpers/visibility#viewport-specific-display-properties) has the\nrule and the `Only` properties that set one range alone.\n\n---\n\n### Full TypeScript Definition\n\n`BulmaClassesProps` is composed from the six group interfaces, each of which is also exported (along with the shared `BulmaViewportProps` and `BulmaDisplayProps` types) and accepted by the corresponding [mini hook](https://bestax.io/docs/api/helpers/usebulmaclasses#composable-mini-hooks). The hook's parameter is the widened `BulmaClassesPropsWithScheme` — identical to `BulmaClassesProps` except that `backgroundColor` also accepts the six `validSchemeColors` values (`BulmaColorPropsWithScheme` is the color-group equivalent, accepted by `useColorClasses` and `useColorStyles`):\n\n```ts\nexport interface BulmaClassesProps\n extends\n BulmaColorProps,\n BulmaSpacingProps,\n BulmaTypographyProps,\n BulmaVisibilityProps,\n BulmaFlexboxProps,\n BulmaOtherProps {}\n\nexport type BulmaViewportProps =\n | 'mobile'\n | 'tablet'\n | 'tablet-only'\n | 'touch'\n | 'desktop'\n | 'desktop-only'\n | 'widescreen'\n | 'widescreen-only'\n | 'fullhd';\n\nexport type BulmaDisplayProps =\n | 'block'\n | 'flex'\n | 'inline'\n | 'inline-block'\n | 'inline-flex'\n | 'grid'\n | 'none';\n\nexport interface BulmaColorProps {\n color?:\n | 'primary'\n | 'link'\n | 'info'\n | 'success'\n | 'warning'\n | 'danger'\n | 'black'\n | 'black-bis'\n | 'black-ter'\n | 'grey-darker'\n | 'grey-dark'\n | 'grey'\n | 'grey-light'\n | 'grey-lighter'\n | 'white'\n | 'white-bis'\n | 'white-ter'\n | 'light'\n | 'dark'\n | 'inherit'\n | 'current';\n colorShade?:\n | '00'\n | '05'\n | '10'\n | '15'\n | '20'\n | '25'\n | '30'\n | '35'\n | '40'\n | '45'\n | '50'\n | '55'\n | '60'\n | '65'\n | '70'\n | '75'\n | '80'\n | '85'\n | '90'\n | '95'\n | 'invert'\n | 'light'\n | 'dark'\n | 'soft'\n | 'bold'\n | 'on-scheme';\n backgroundColor?: BulmaColorProps['color'];\n backgroundColorShade?: BulmaColorProps['colorShade'];\n}\n\n// The scheme-aware input accepted by useBulmaClasses, useColorClasses,\n// and useColorStyles ((typeof validSchemeColors)[number] is\n// 'scheme-main' | 'scheme-main-bis' | 'scheme-main-ter'\n// | 'scheme-invert' | 'scheme-invert-bis' | 'scheme-invert-ter'):\nexport type BulmaColorPropsWithScheme = Omit<\n BulmaColorProps,\n 'backgroundColor'\n> & {\n backgroundColor?:\n BulmaColorProps['backgroundColor'] | (typeof validSchemeColors)[number];\n};\n\nexport type BulmaClassesPropsWithScheme = Omit<\n BulmaClassesProps,\n keyof BulmaColorProps\n> &\n BulmaColorPropsWithScheme;\n\nexport interface BulmaSpacingProps {\n m?: '0' | '1' | '2' | '3' | '4' | '5' | '6' | 'auto';\n mt?: '0' | '1' | '2' | '3' | '4' | '5' | '6' | 'auto';\n mr?: '0' | '1' | '2' | '3' | '4' | '5' | '6' | 'auto';\n mb?: '0' | '1' | '2' | '3' | '4' | '5' | '6' | 'auto';\n ml?: '0' | '1' | '2' | '3' | '4' | '5' | '6' | 'auto';\n mx?: '0' | '1' | '2' | '3' | '4' | '5' | '6' | 'auto';\n my?: '0' | '1' | '2' | '3' | '4' | '5' | '6' | 'auto';\n p?: '0' | '1' | '2' | '3' | '4' | '5' | '6' | 'auto';\n pt?: '0' | '1' | '2' | '3' | '4' | '5' | '6' | 'auto';\n pr?: '0' | '1' | '2' | '3' | '4' | '5' | '6' | 'auto';\n pb?: '0' | '1' | '2' | '3' | '4' | '5' | '6' | 'auto';\n pl?: '0' | '1' | '2' | '3' | '4' | '5' | '6' | 'auto';\n px?: '0' | '1' | '2' | '3' | '4' | '5' | '6' | 'auto';\n py?: '0' | '1' | '2' | '3' | '4' | '5' | '6' | 'auto';\n gap?: BulmaGapStep;\n columnGap?: BulmaGapStep;\n rowGap?: BulmaGapStep;\n gapless?: boolean;\n}\n\n// '0' to '8' in half steps ('0', '0.5', '1', … '7.5', '8'), as strings or numbers\nexport type BulmaGapStep =\n | '0'\n | '0.5'\n | '1'\n | '1.5'\n | '2'\n | '2.5'\n | '3'\n | '3.5'\n | '4'\n | '4.5'\n | '5'\n | '5.5'\n | '6'\n | '6.5'\n | '7'\n | '7.5'\n | '8'\n | 0\n | 0.5\n | 1\n | 1.5\n | 2\n | 2.5\n | 3\n | 3.5\n | 4\n | 4.5\n | 5\n | 5.5\n | 6\n | 6.5\n | 7\n | 7.5\n | 8;\n\nexport interface BulmaTypographyProps {\n textSize?: '1' | '2' | '3' | '4' | '5' | '6' | '7';\n textAlign?: 'centered' | 'justified' | 'left' | 'right';\n textTransform?: 'capitalized' | 'lowercase' | 'uppercase' | 'italic';\n textWeight?: 'light' | 'normal' | 'medium' | 'semibold' | 'bold';\n fontFamily?: 'sans-serif' | 'monospace' | 'primary' | 'secondary' | 'code';\n viewport?: BulmaViewportProps;\n textSizeMobile?: '1' | '2' | '3' | '4' | '5' | '6' | '7';\n textSizeTablet?: '1' | '2' | '3' | '4' | '5' | '6' | '7';\n textSizeDesktop?: '1' | '2' | '3' | '4' | '5' | '6' | '7';\n textSizeWidescreen?: '1' | '2' | '3' | '4' | '5' | '6' | '7';\n textSizeFullhd?: '1' | '2' | '3' | '4' | '5' | '6' | '7';\n textAlignMobile?: 'centered' | 'justified' | 'left' | 'right';\n textAlignTablet?: 'centered' | 'justified' | 'left' | 'right';\n textAlignDesktop?: 'centered' | 'justified' | 'left' | 'right';\n textAlignWidescreen?: 'centered' | 'justified' | 'left' | 'right';\n textAlignFullhd?: 'centered' | 'justified' | 'left' | 'right';\n}\n\nexport interface BulmaVisibilityProps {\n display?: BulmaDisplayProps;\n visibility?: 'hidden' | 'sr-only' | 'invisible';\n viewport?: BulmaViewportProps;\n displayMobile?: BulmaDisplayProps;\n displayTablet?: BulmaDisplayProps;\n displayTabletOnly?: BulmaDisplayProps;\n displayTouch?: BulmaDisplayProps;\n displayDesktop?: BulmaDisplayProps;\n displayDesktopOnly?: BulmaDisplayProps;\n displayWidescreen?: BulmaDisplayProps;\n displayWidescreenOnly?: BulmaDisplayProps;\n displayFullhd?: BulmaDisplayProps;\n visibilityMobile?: 'hidden' | 'sr-only' | 'invisible';\n visibilityTablet?: 'hidden' | 'sr-only' | 'invisible';\n visibilityTabletOnly?: 'hidden' | 'sr-only' | 'invisible';\n visibilityTouch?: 'hidden' | 'sr-only' | 'invisible';\n visibilityDesktop?: 'hidden' | 'sr-only' | 'invisible';\n visibilityDesktopOnly?: 'hidden' | 'sr-only' | 'invisible';\n visibilityWidescreen?: 'hidden' | 'sr-only' | 'invisible';\n visibilityWidescreenOnly?: 'hidden' | 'sr-only' | 'invisible';\n visibilityFullhd?: 'hidden' | 'sr-only' | 'invisible';\n}\n\nexport interface BulmaFlexboxProps {\n flexDirection?: 'row' | 'row-reverse' | 'column' | 'column-reverse';\n flexWrap?: 'nowrap' | 'wrap' | 'wrap-reverse';\n justifyContent?:\n | 'flex-start'\n | 'flex-end'\n | 'center'\n | 'space-between'\n | 'space-around'\n | 'space-evenly'\n | 'start'\n | 'end'\n | 'left'\n | 'right';\n alignContent?:\n | 'flex-start'\n | 'flex-end'\n | 'center'\n | 'space-between'\n | 'space-around'\n | 'space-evenly'\n | 'stretch';\n alignItems?:\n | 'stretch'\n | 'flex-start'\n | 'flex-end'\n | 'center'\n | 'baseline'\n | 'start'\n | 'end';\n alignSelf?:\n 'auto' | 'flex-start' | 'flex-end' | 'center' | 'baseline' | 'stretch';\n flexGrow?: '0' | '1' | '2' | '3' | '4' | '5';\n flexShrink?: '0' | '1' | '2' | '3' | '4' | '5';\n}\n\nexport interface BulmaOtherProps {\n float?: 'left' | 'right';\n overflow?: 'clipped' | 'auto' | 'clip' | 'hidden' | 'scroll' | 'visible';\n overflowX?: 'auto' | 'clip' | 'hidden' | 'scroll' | 'visible';\n overflowY?: 'auto' | 'clip' | 'hidden' | 'scroll' | 'visible';\n overlay?: boolean;\n interaction?: 'unselectable' | 'clickable';\n cursor?: 'pointer' | 'help';\n radius?: 'radiusless' | 'small' | 'normal' | 'large' | 'rounded';\n shadow?: 'shadowless';\n responsive?: 'mobile' | 'narrow';\n skeleton?: boolean;\n clearfix?: boolean;\n pos?: 'absolute' | 'fixed' | 'relative' | 'static' | 'sticky';\n relative?: boolean;\n fullHeight?: boolean;\n aspectRatio?:\n | '1by1'\n | '5by4'\n | '4by3'\n | '3by2'\n | '5by3'\n | '16by9'\n | '2by1'\n | '3by1'\n | '4by5'\n | '3by4'\n | '2by3'\n | '3by5'\n | '9by16'\n | '1by2'\n | '1by3';\n}\n```\n\n---\n\n## Responsive Design\n\n### Global Viewport Property (Legacy)\n\nThe `viewport` prop applies a single viewport modifier to ALL properties that support it:\n\n```tsx\nconst { bulmaHelperClasses } = useBulmaClasses({\n color: 'primary',\n textAlign: 'centered',\n textSize: '4',\n viewport: 'mobile', // Applies -mobile to ALL properties\n});\n// Result: has-text-primary-mobile has-text-centered-mobile is-size-4-mobile\n```\n\n### Viewport-Specific Properties (Recommended)\n\nViewport-specific properties allow you to set **different values for each viewport**:\n\n```tsx\nconst { bulmaHelperClasses } = useBulmaClasses({\n // Different text sizes for each viewport\n textSizeMobile: '6', // Small on mobile\n textSizeTablet: '5', // Medium on tablet\n textSizeDesktop: '4', // Large on desktop\n\n // Different text alignment for each viewport\n textAlignMobile: 'centered', // Center on mobile\n textAlignDesktop: 'left', // Left align on desktop\n\n // Different visibility for each viewport\n visibilityMobile: 'hidden', // Hidden on mobile\n visibilityTablet: 'invisible', // Invisible from tablet up\n});\n// Result: is-size-6-mobile is-size-5-tablet is-size-4-desktop\n// has-text-centered-mobile has-text-left-desktop is-hidden-mobile is-invisible-tablet\n```\n\n### Breakpoint Reference\n\nBulma's responsive breakpoints:\n\n- **mobile**: up to 768px\n- **tablet**: 769px and above\n- **tablet-only**: 769px - 1023px (excludes desktop and above)\n- **touch**: up to 1023px (mobile + tablet combined — the breakpoint most often used to hide desktop-only chrome)\n- **desktop**: 1024px and above\n- **desktop-only**: 1024px - 1215px (excludes widescreen and above)\n- **widescreen**: 1216px and above\n- **widescreen-only**: 1216px - 1407px (excludes fullhd)\n- **fullhd**: 1408px and above\n\n`display`/`visibility` are the only property families with `*Touch`/`*TabletOnly`/`*DesktopOnly`/`*WidescreenOnly` props; other viewport-aware properties (`textSize*`, `textAlign*`) only go through `mobile`/`tablet`/`desktop`/`widescreen`/`fullhd`, though the generic `viewport` prop itself accepts all nine values for any property that reads it.\n\n### Properties That Support Viewport Modifiers\n\nOnly certain properties support responsive variants:\n\n**✅ Support Viewport Modifiers:**\n\n- Text size (`textSize`, `textSizeMobile`, `textSizeTablet`, etc.)\n- Text alignment (`textAlign`, `textAlignMobile`, `textAlignTablet`, etc.)\n- Display (`display`, `displayMobile`, `displayTablet`, `displayTabletOnly`, `displayTouch`, `displayDesktop`, `displayDesktopOnly`, `displayWidescreen`, `displayWidescreenOnly`, `displayFullhd`)\n- Visibility (`visibility`, `visibilityMobile`, `visibilityTablet`, `visibilityTabletOnly`, `visibilityTouch`, `visibilityDesktop`, `visibilityDesktopOnly`, `visibilityWidescreen`, `visibilityWidescreenOnly`, `visibilityFullhd`)\n\n**❌ Do NOT Support Viewport Modifiers:**\n\n- Spacing (`m`, `mt`, `mr`, `mb`, `ml`, `mx`, `my`, `p`, `pt`, `pr`, `pb`, `pl`, `px`, `py`)\n- Background colors (`backgroundColor`)\n- Flexbox properties (`flexDirection`, `flexWrap`, `justifyContent`, etc.)\n- Other helpers (`float`, `overflow`, `pos`, `radius`, `shadow`, `aspectRatio`, etc.)\n\n---\n\n## Notes\n\n- Any prop not recognized as a Bulma helper prop is passed through in `rest`.\n- Responsive helper props (`viewport`) suffix classes with the breakpoint (e.g., `is-size-3-mobile`).\n- You can use in combination with [`classNames`](https://bestax.io/docs/api/helpers/classnames) for more advanced use.\n\n---\n\n## See Also\n\n- [classNames helper](https://bestax.io/docs/api/helpers/classnames)\n- [Bulma Classes Reference](https://bulma.io/documentation/helpers/)\n- [Storybook: useBulmaClasses Demo](https://bestax.io/storybook/?path=/story/helpers-usebulmaclasses--default)",
200
201
  "parts": [],
201
202
  "cssVars": [],
202
203
  "helperProps": [
package/dist/data.d.ts CHANGED
@@ -91,6 +91,12 @@ export interface CssVar {
91
91
  export interface Example {
92
92
  title: string;
93
93
  code: string;
94
+ /**
95
+ * What the code leaves to the reader, printed as its first comment line: a
96
+ * picture from the docs site's `/img/`, which the reader's own app serves.
97
+ * Kept out of `code` so search, which reads `code`, never matches its words.
98
+ */
99
+ note?: string;
94
100
  }
95
101
  export interface ComponentRecord {
96
102
  name: string;
@@ -1 +1 @@
1
- {"version":3,"file":"data.d.ts","sourceRoot":"","sources":["../src/data.ts"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAE1D,mEAAmE;AACnE,eAAO,MAAM,wBAAwB,IAAI,CAAC;AAE1C,MAAM,WAAW,OAAO;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,OAAO,CAAC;IAClB,SAAS,EAAE,OAAO,CAAC;IACnB,UAAU,EAAE,OAAO,CAAC;IACpB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,+EAA+E;IAC/E,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,OAAO;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;CACjB;AAED;;;;GAIG;AACH,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG,WAAW,CAAC;AAE9C,MAAM,WAAW,IAAI;IACnB;;;OAGG;IACH,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,8DAA8D;IAC9D,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,KAAK,EAAE,OAAO,EAAE,CAAC;IACjB,UAAU,EAAE,OAAO,EAAE,CAAC;IACtB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,KAAK,EAAE,OAAO,EAAE,CAAC;IACjB,mEAAmE;IACnE,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,+EAA+E;IAC/E,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB;;;;OAIG;IACH,eAAe,CAAC,EAAE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BAAgB,aAAa,CAAC,OAAO,EAAE,YAAY,EAAE,GAAG,MAAM,CAoB7D;AAED,wBAAgB,YAAY,CAAC,MAAM,EAAE,KAAK,EAAE,GAAG,MAAM,CAgBpD;AAED,uFAAuF;AACvF,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,IAAI;;;;;EAM3D;AAED,wBAAgB,WAAW,CAAC,OAAO,EAAE,MAAM;;;;;;EAK1C"}
package/dist/format.js CHANGED
@@ -490,8 +490,14 @@ export function renderComponent(record, include, focus, { hasEntry, lead, } = {}
490
490
  return out.join('\n\n');
491
491
  }
492
492
  export function renderExamples(examples) {
493
+ // Every line of a note is a comment, so the code stays code to paste.
494
+ const comment = (note) => note
495
+ .split('\n')
496
+ .map(line => `// ${line}\n`)
497
+ .join('');
493
498
  return examples
494
- .map(e => `### ${e.title}\n\n\`\`\`tsx\n${e.code}\n\`\`\``)
499
+ .map(e => `### ${e.title}\n\n\`\`\`tsx\n${e.note ? comment(e.note) : ''}` +
500
+ `${e.code}\n\`\`\``)
495
501
  .join('\n\n');
496
502
  }
497
503
  export function renderCssVars(vars) {
@@ -1 +1 @@
1
- {"version":3,"file":"helper-props.d.ts","sourceRoot":"","sources":["../src/helper-props.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH;;;;;GAKG;AACH,wBAAgB,YAAY,CAAC,EAAE,EAAE,MAAM,GAAG,MAAM,CA6B/C;AAED,MAAM,WAAW,WAAW;IAC1B,qEAAqE;IACrE,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,yEAAyE;IACzE,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IACjB,2EAA2E;IAC3E,OAAO,EAAE,MAAM,EAAE,CAAC;CACnB;AAED;;;GAGG;AACH,eAAO,MAAM,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,WAAW,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BAAgB,mBAAmB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CASvD;AAED,6EAA6E;AAC7E,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CAgBnE"}
@@ -206,6 +206,8 @@ export function resolveGroup(input) {
206
206
  }
207
207
  return null;
208
208
  }
209
+ // scripts/gen-mcp-index.mjs notes a site image in each of these sections
210
+ // (`SLICE`), so a change to where this splits changes that too.
209
211
  const sections = (doc) => doc.split(/\n(?=#{2,3} )/);
210
212
  const headingOf = (chunk) => chunk.split('\n')[0].trim();
211
213
  /** The `## Supported Props` table, reflowed, header rows plus the rows for `props`. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bestax-mcp",
3
- "version": "1.18.83",
3
+ "version": "1.18.84",
4
4
  "mcpName": "io.github.allxsmith/bestax-mcp",
5
5
  "description": "MCP server for @allxsmith/bestax-bulma — component props, examples, CSS variables and agent skills, served offline from a version-pinned index",
6
6
  "type": "module",