Skip to main content
Deno 2 is finally here πŸŽ‰οΈ
Learn more
Module

x/lunchbox/components/Text/index.tsx>default

Component Library 🍱 for Deno πŸ¦• Fresh πŸ‹
Latest
function default
import { default } from "https://deno.land/x/lunchbox@v1.0.2/components/Text/index.tsx";

Render function for the <Text/ > component.

Component properties are partial

Parameters

props: Partial<iText>

Changes the style of the text.

  • paragraph: The default base text.
  • small: A smaller variation of the paragraph and smallest of all the types.
  • title: The standard large heading in the document
  • display: A larger version of the title and largest of all the types. It should be used for specific aesthetic purposes, it's too large to be readable on smaller screens.
  • heading: A smaller version of the title, used for sections within it.
  • subheading: The smaller heading type, has a unique style for smaller sections within headings.