ValyroUI Русская версия

Type Specimen

Type specimen: a large glyph and typeface–role pairs. Pro · Landing pages and brand › Brand and design system

A type specimen: a large sample with the face's name, then any of a paragraph, the weights, the character set and the type scale, all set in family. With only styles it is a compact pairing card.

Installation

npx valyro-cli@latest login
npx valyro-cli@latest add type-specimen
npm install valyro-ui-pro

import 'valyro-ui-pro/styles.css';
import { TypeSpecimen } from 'valyro-ui-pro';

Props

PropTypeDefault
family *stringCSS font-family of the specimen: the large sample, the weights, the characters and the scale.
samplestring'Aa'Large sample glyphs. Default "Aa".
nameReactNodeTypeface name beside the sample: "Geist".
metaReactNodeA line under the name: classification, designer, licence.
stylesTypeStyle[][]Typefaces of the system, listed beside the sample (a pairing: headings, body, code).
weightnumber500Weight of the large sample. Default 500.
size'md' | 'lg' | 'xl''lg'Sample size. Default lg.
textReactNodeA paragraph set in the typeface, e.g. a pangram. Also the default line of the scale.
weightsnumber[][]Weights shown side by side, e.g. [400, 500, 600, 700].
glyphsstringCharacter set: the alphabet, digits, punctuation.
scaleTypeScaleStep[][]Type scale, largest first.
headingLevel2 | 3 | 4 | 5 | 63Heading level of the section titles (weights, characters, scale). Default 3.
labelsPartial<TypeSpecimenLabels>Overrides for the built-in English text; keys left out keep their defaults.

Related components

Previous: Color Token · Next: Template Card · All Landing pages and brand