Skip to content
IzzyBlazor 0.1.0-alpha.17

Enter all results ↑ ↓ move Esc close

TextBlock

Body text with every text style.

IzzyBlazor.TextBlock in the IzzyBlazor.Core package, generated from the 0.1.0-alpha.17 assembly and its doc comments.

Properties (16)

SizeResponsive<TextSize>Responsive

Font size. Responsive.

WeightFontWeight?

Font weight.

FamilyFontFamily?

Font family.

AlignResponsive<TextAlign>Responsive

Horizontal alignment. Responsive.

LineHeightLineHeight?

Line height.

LetterSpacingLetterSpacing?

Letter spacing.

TransformTextTransform?

Letter case.

DecorationTextDecoration?

Underline or strike-through.

Italicbool = false

Italic.

WrapTextWrap?

How lines break: normal, never, balanced or pretty.

Truncatebool = false

Keep to one line and end with an ellipsis when it does not fit.

Show at most this many lines, ending with an ellipsis.

TabularNumsbool = false

Equal-width digits, so numbers line up in columns and do not jitter when they change.

MinSizeTextSize?

Makes the size fluid: the text is MinSize on a 360px screen and grows smoothly to Size at 1280px and up, as for a hero heading: <Heading Size="TextSize.Xl5" MinSize="TextSize.Xl3">. Replaces per-breakpoint sizes: with them, it grows to the size for the widest breakpoint given.

Asstring = "p"From Box

The element to render: div on a Box; components built on it set their own (List a ul, Section a section).

ChildContentRenderFragment?From Box

The content.

Item props (from LayoutItemBase)

MarginResponsive<int>Responsive

Margin on all sides, in spacing steps (-16 to 16; one step = 4px).

MarginXResponsive<int>Responsive

Horizontal margin. When set, replaces Margin on this axis.

MarginYResponsive<int>Responsive

Vertical margin. When set, replaces Margin on this axis.

MarginTopResponsive<int>Responsive

Top margin. When set, replaces MarginY and Margin on this side.

MarginBottomResponsive<int>Responsive

Bottom margin. When set, replaces MarginY and Margin on this side.

MarginStartResponsive<int>Responsive

Margin at the start (left in left-to-right text, right in right-to-left). Replaces MarginX and Margin on this side.

MarginEndResponsive<int>Responsive

Margin at the end (right in left-to-right text, left in right-to-left). Replaces MarginX and Margin on this side.

WidthResponsive<Length>Responsive

Width.

MinWidthResponsive<Length>Responsive

Minimum width.

MaxWidthResponsive<Length>Responsive

Maximum width.

Growbool = false

Whether to grow into free space inside a Stack, Row or Column: <Box Grow>.

Shrinkbool = true

Whether to shrink when space is short inside a Stack, Row or Column. Defaults to true; Shrink="false" keeps the size.

BasisResponsive<Length>Responsive

Starting size inside a Stack, before growing or shrinking.

AlignSelfResponsive<Align>Responsive

Alignment across the parent's direction, overriding the parent's Align for this component only, such as a button lined up with the bottom of labeled fields in a Row.

ColSpanResponsive<int>Responsive

How many columns it spans in a Form or Fieldset with Columns, or a Grid; GridSpan.Full for the whole row. Never more than the columns shown, so a form that narrows to one column needs no breakpoints.

NewRowbool = false

Starts a new row in a Form or Fieldset with Columns, or a Grid, leaving the rest of the row before it empty.

Surface props (from StyledComponentBase)

ColorSchemeColorScheme = ColorScheme.Auto

The color scheme inside: ColorScheme.Dark for a dark band on a light page, ColorScheme.Inverse for the opposite of the page. It also sets the surface background and text color, which Bg and Color override.

PaddingResponsive<int>Responsive

Padding on all sides, in spacing steps (0 to 16; one step = 4px).

PaddingXResponsive<int>Responsive

Horizontal padding. When set, replaces Padding on this axis.

PaddingYResponsive<int>Responsive

Vertical padding. When set, replaces Padding on this axis.

PaddingTopResponsive<int>Responsive

Top padding. When set, replaces PaddingY and Padding on this side.

PaddingBottomResponsive<int>Responsive

Bottom padding. When set, replaces PaddingY and Padding on this side.

PaddingStartResponsive<int>Responsive

Padding at the start (left in left-to-right text, right in right-to-left). Replaces PaddingX and Padding on this side.

PaddingEndResponsive<int>Responsive

Padding at the end (right in left-to-right text, left in right-to-left). Replaces PaddingX and Padding on this side.

BgResponsive<Color>Responsive

Background color.

ColorResponsive<Color>Responsive

Text color. When not set and Bg is a theme color, the matching contrast color is used automatically (Bg="Color.Primary" gets Color.OnPrimary text).

RadiusResponsive<Radius>Responsive

Corner radius.

ShadowResponsive<Shadow>Responsive

Elevation.

MinHeightResponsive<Length>Responsive

Minimum height.

HeightResponsive<Length>Responsive

Height.

MaxHeightResponsive<Length>Responsive

Maximum height; pair it with Overflow to scroll what doesn't fit.

OverflowResponsive<Overflow>Responsive

What happens to content that doesn't fit: Overflow.Auto to scroll it.

BorderResponsive<int>Responsive

A border on every side, in whole pixels (0 to 16), in BorderColor (the border token by default) and BorderStyle (solid by default). Like padding: BorderX and BorderY override an axis, the single sides override that. Sides you don't set keep the component's own border.

BorderXResponsive<int>Responsive

Borders at the start and end. Replaces Border on this axis.

BorderYResponsive<int>Responsive

Borders at the top and bottom, such as a band with lines above and below. Replaces Border on this axis.

BorderTopResponsive<int>Responsive

The top border. Replaces BorderY and Border on this side.

BorderBottomResponsive<int>Responsive

The bottom border. Replaces BorderY and Border on this side.

BorderStartResponsive<int>Responsive

The border at the start (left in left-to-right text). Replaces BorderX and Border on this side.

BorderEndResponsive<int>Responsive

The border at the end (right in left-to-right text). Replaces BorderX and Border on this side.

BorderColorResponsive<Color> (computed)Responsive

The border color, for borders set here or the component's own. Defaults to Border.

BorderStyleResponsive<BorderStyle>Responsive

How borders set here are drawn (BorderStyle.Dashed, BorderStyle.Dotted), and the own border of a Card or a bordered EmptyState. Solid by default (dashed on an EmptyState).

Common props (from IzzyComponentBase)

Classstring?

Extra CSS classes, merged after the component's own classes.

Stylestring?

Inline style, appended after the component's generated custom properties.

HiddenFromBreakpoint?

Hides the component from this breakpoint up, such as a menu button only phones need.

VisibleFromBreakpoint?

Shows the component only from this breakpoint up, such as header links for wide screens.

Events (0)

No events.

Types (9)

FontFamily

enum

Font family tokens.

FontFamily values
ValueDescription
Body

The body font (the default), --ib-font-body.

Heading

The heading font, --ib-font-heading: the body font unless the theme sets one (Newsreader in Editorial).

Mono

The monospace font, for code and figures, --ib-font-mono.

FontWeight

enum

Font weights.

FontWeight values
ValueDescription
Light

300.

Normal

400.

Medium

500.

Semibold

600.

Bold

700.

Extrabold

800.

LetterSpacing

enum

Letter spacing tokens.

LetterSpacing values
ValueDescription
Tighter

-0.05em.

Tight

-0.025em, for large headings.

Normal

0.

Wide

0.025em.

Wider

0.05em, for small uppercase labels.

Widest

0.1em.

LineHeight

enum

Line height tokens.

LineHeight values
ValueDescription
None

1.

Tight

1.25, for headings.

Snug

1.375.

Normal

1.5, for body text.

Relaxed

1.625.

Loose

2.

TextAlign

enum

Horizontal text alignment. Start and End follow the reading direction.

TextAlign values
ValueDescription
Start

Left in left-to-right languages.

Center

Centered.

End

Right in left-to-right languages.

Justify

Justified to both edges.

TextDecoration

enum

Text decoration lines.

TextDecoration values
ValueDescription
None

No line.

Underline

Underlined.

LineThrough

Struck through.

TextSize

enum

Font size tokens, from TextSize.Xs (12px) to TextSize.Xl6 (60px).

TextSize values
ValueDescription
Xs

12px.

Sm

14px.

Md

16px, the body size.

Lg

18px.

Xl

20px.

Xl2

24px.

Xl3

30px.

Xl4

36px.

Xl5

48px.

Xl6

60px.

TextTransform

enum

Letter case changes.

TextTransform values
ValueDescription
None

As written.

Uppercase

ALL CAPS.

Lowercase

all lowercase.

Capitalize

Each Word Capitalized.

TextWrap

enum

How lines break.

TextWrap values
ValueDescription
Wrap

Normal wrapping.

NoWrap

Never wrap.

Balance

Even line lengths; best for headings and short text.

Pretty

Avoids a lone word on the last line; good for paragraphs.