Skip to main content
Home

UI Library 🍱 for Deno 🦕 Fresh 🍋

This package works with Node.js, Deno, BunIt is unknown whether this package works with Cloudflare Workers, Browsers
It is unknown whether this package works with Cloudflare Workers
This package works with Node.js
This package works with Deno
This package works with Bun
It is unknown whether this package works with Browsers
JSR Score
100%
Published
2 weeks ago (2.0.26)
function H2
H2(p: iAtom<HTMLHeadingElement>): JSX.Element

A heading for section titles. The H2 requires an H1 atom to exist and for it to be before this one. This hierarchy of H1->H2 is required for a correct accessibility in a page.

Examples

Usage

import { H1, H2 } from 'lunchbox/atoms/Heading.tsx'

<H1>Page title</H1>
  <H2>Section title</H2>
  <H2>Section title</H2>

Parameters

Return Type

JSX.Element

New Ticket: Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.

Add Package

deno add jsr:@lunchbox/ui

Import symbol

import { H2 } from "@lunchbox/ui/atoms";
or

Import directly with a jsr specifier

import { H2 } from "jsr:@lunchbox/ui/atoms";

Add Package

pnpm i jsr:@lunchbox/ui
or (using pnpm 10.8 or older)
pnpm dlx jsr add @lunchbox/ui

Import symbol

import { H2 } from "@lunchbox/ui/atoms";

Add Package

yarn add jsr:@lunchbox/ui
or (using Yarn 4.8 or older)
yarn dlx jsr add @lunchbox/ui

Import symbol

import { H2 } from "@lunchbox/ui/atoms";

Add Package

npx jsr add @lunchbox/ui

Import symbol

import { H2 } from "@lunchbox/ui/atoms";

Add Package

bunx jsr add @lunchbox/ui

Import symbol

import { H2 } from "@lunchbox/ui/atoms";