Skip to content

Latest commit

 

History

History
169 lines (167 loc) · 136 KB

api.md

File metadata and controls

169 lines (167 loc) · 136 KB

Public API

Generated from TypeScript/TSDoc. Regenerated by the explorer build and manifest command.

Export Entry Description
Accordion @tum.ai/ui-kit List of disclosure items; one open at a time unless multiple.
AccordionItem @tum.ai/ui-kit One question and answer. Give it a stable value to control it.
AccordionItemProps @tum.ai/ui-kit Props for AccordionItem: Base UI's item props.
AccordionPanel @tum.ai/ui-kit The answer; it fades with its height as it opens, and closes a little faster (instant under reduced motion). The fade sits on the panel, so Base UI's find-in-page reveal, which skips the panel's transition, shows a match at once.
AccordionPanelProps @tum.ai/ui-kit Props for AccordionPanel.
AccordionProps @tum.ai/ui-kit Props for Accordion: Base UI's root props.
AccordionTrigger @tum.ai/ui-kit The question row: a heading wrapping a full-width button, with a plus that turns into a filled minus while the panel is open.
AccordionTriggerProps @tum.ai/ui-kit Props for AccordionTrigger.
Actions @tum.ai/ui-kit A row of buttons and status badges. On one line every item keeps its natural width. Once the row wraps (phones), it spans the available width and every item grows to fill its line, so stacked actions share one width. Use it for every group of two or more actions.
ActionsProps @tum.ai/ui-kit Props for Actions.
Anchor @tum.ai/ui-kit Unstyled, route-aware link, the one place that decides how a link opens. Site routes go through next/link; http(s) URLs (or external) open in a new tab with rel="noopener noreferrer" and tell screen readers so; mailto:, tel: and in-page anchors stay plain <a> elements. ButtonLink, TextLink and LogoTile link through it; use it directly for links that bring their own styling (navigation lists, footers).
AnchorProps @tum.ai/ui-kit Props for Anchor: an a element's props with a required href.
Aurora @tum.ai/ui-kit Slow-moving light field for dark bands: three soft radial glows in the brand violets drifting on long, offset loops. Transform-only (compositor friendly) and static under reduced motion. Place inside a relative isolate parent.
AuroraProps @tum.ai/ui-kit Props for Aurora.
BrandMark @tum.ai/ui-kit The official TUM.ai logomark geometry (the outline of public/assets/tum_ai_logo_new.svg; the gradient variant keeps the inner leg as its own path, as the official gradient logo does), used as a large tonal background shape exactly as the 2026 brand guide does on its section slides. It is decoration only (hidden from assistive technology): never recolor it into a logo substitute or place it where the real logo belongs. Size and place it with className; set intensity on dark bands, or color it with a text color.
BrandMarkProps @tum.ai/ui-kit Props for BrandMark.
BrandPanel @tum.ai/ui-kit On-brand stand-in for a missing or broken photo: an ink panel with violet light, the logomark as a cropped tonal shape (as on the brand guide's slides) and film grain. It fills its positioned parent and is decorative, so it is hidden from assistive tech; children can add typographic art (e.g. a collaborator name) that is also shown as text elsewhere. The mark joins the card's hover zoom (group/zoom).
BrandPanelProps @tum.ai/ui-kit Props for BrandPanel.
BulletList @tum.ai/ui-kit A short list of points set as raised rows, each with an accent dot, e.g. the options an answer introduces ("Members can join one of two tracks:"). The rows read the band tone, so the list works inside FAQ answers and cards alike.
BulletListProps @tum.ai/ui-kit Props for BulletList.
Button @tum.ai/ui-kit Action button (Base UI): keyboard, focus and disabled semantics come from the primitive. Pass focusableWhenDisabled to keep a disabled button in the tab order (it is then aria-disabled). For navigation use .
ButtonArrowKind @tum.ai/ui-kit Trailing arrow: true or "right" points on, "external" up and out, "down" to a section below.
ButtonLink @tum.ai/ui-kit Link styled as a button. It links through : internal routes use next/link; external links open in a new tab with rel="noopener noreferrer" and an announced hint.
ButtonLinkProps @tum.ai/ui-kit Props for ButtonLink.
ButtonProps @tum.ai/ui-kit Props for Button: Base UI's button props plus the style variants.
ButtonStyleProps @tum.ai/ui-kit The variant props every button-styled component shares.
buttonStyles @tum.ai/ui-kit Button styles, shared by (actions) and (navigation). Exported for the rare element that must look like a button but cannot be one of the two (e.g. a link with its own accessible-name wiring). Primary uses violet-600 (#8052C2) at rest so white labels meet WCAG AA (5.4:1), and the brand's dark purple (#523573) on hover: a flat, exact fill with a hairline highlight, no glow or sheen. Secondary, outline and ghost read the surrounding tone, so they work on light and dark bands.
IconButton @tum.ai/ui-kit Icon-only action. An accessible label is required.
IconButtonProps @tum.ai/ui-kit Props for IconButton.
ChipGroup @tum.ai/ui-kit Single-select filter chips (Base UI ToggleGroup: roving focus with arrow keys, aria-pressed state). Selection can't be cleared to nothing; pass an "all" option instead.
ChipGroupProps @tum.ai/ui-kit Props for ChipGroup.
ChipOption @tum.ai/ui-kit One chip of a ChipGroup.
Collapsible @tum.ai/ui-kit Root of a disclosure: one trigger and one panel.
CollapsiblePanel @tum.ai/ui-kit The disclosed content; its height eases (instant under reduced motion).
CollapsiblePanelProps @tum.ai/ui-kit Props for CollapsiblePanel: Base UI's panel props.
CollapsibleProps @tum.ai/ui-kit Props for Collapsible: Base UI's root props.
CollapsibleTrigger @tum.ai/ui-kit The button that opens and closes the panel (aria-expanded included).
CollapsibleTriggerProps @tum.ai/ui-kit Props for CollapsibleTrigger: Base UI's trigger props.
Container @tum.ai/ui-kit Horizontally centered content column with responsive gutters.
ContainerProps @tum.ai/ui-kit Props for Container: the root element's props plus size.
CountUp @tum.ai/ui-kit Number that counts up when scrolled into view. The server renders the final value (SEO, no-JS, reduced motion), screen readers always get the final value, and numbers already visible on load are left untouched to avoid a flash.
CountUpProps @tum.ai/ui-kit Props for CountUp.
CtaBand @tum.ai/ui-kit Closing call to action on flat ink, with the drifting logomark by default.
CtaBandClassNames @tum.ai/ui-kit Class overrides for a CTA band's inner parts (merged over the defaults).
CtaBandProps @tum.ai/ui-kit Props for CtaBand.
DayRuler @tum.ai/ui-kit A window of days as a ruler: one tick per day, taller ticks every week, and a fill from the first tick to today's with a mark on it, so how much of the window is gone reads at a glance. Built from whole days, not eyeballed. Decorative (aria-hidden): state the same fact in text beside it, such as "27 days left". With drawIn it carries data-draw (idle, pending below the fold, done once in view); the motion is CSS keyed on it (tailwind.css).
DayRulerProps @tum.ai/ui-kit Props for DayRuler.
Dialog @tum.ai/ui-kit Base UI Dialog root that isolates the background in its default modal mode.
DialogClose @tum.ai/ui-kit Closes the dialog. Use render to make it a .
DialogContent @tum.ai/ui-kit The dialog surface, portalled with its backdrop (docs/browser-quirks.md). Safari: any fixed element at the screen's edges makes Safari paint its status bar and toolbar solid, in that element's colour or the brand-black root canvas. So a modal dialog has no fixed layers: its portal is pinned absolutely at the scroll position, and Base UI's internal overlay, the backdrop and the viewport are absolute inside it. The bars stay translucent, and the backdrop bleeds past both edges to dim the page behind them. A fullscreen dialog stays fixed: its backdrop takes the dialog's tone while it is open, and shell.css gives the root canvas that tone too, so both bars match the panel. Both revert as closing starts (data-open drops), so the closing fade is the usual brand-black scrim.
DialogContentProps @tum.ai/ui-kit Props for DialogContent.
DialogDescription @tum.ai/ui-kit A sentence that describes the dialog, announced after its title.
DialogDescriptionProps @tum.ai/ui-kit Props for DialogDescription: Base UI's description props.
DialogProps @tum.ai/ui-kit Props for Dialog: Base UI's root props plus background isolation.
DialogTitle @tum.ai/ui-kit The dialog's name (an h2), announced when it opens.
DialogTitleProps @tum.ai/ui-kit Props for DialogTitle: Base UI's title props.
DialogTrigger @tum.ai/ui-kit Opens the dialog. Use render to make it a .
EmptyState @tum.ai/ui-kit Friendly placeholder for empty lists and filter results. It is a status region, so a filter that empties a list is announced.
EmptyStateProps @tum.ai/ui-kit Props for EmptyState.
FallbackImage @tum.ai/ui-kit next/image that swaps to fallback when it has no source or fails to load (a CMS asset that was deleted, a flaky CDN). A changed src gets a fresh attempt instead of inheriting the previous failure. Absolute http(s) sources bypass optimization by default; pass unoptimized={false} to opt in and configure the consumer app's images.remotePatterns.
FallbackImageProps @tum.ai/ui-kit Props for FallbackImage: next/image props with an optional src.
FaqItem @tum.ai/ui-kit One entry of a FaqList.
FaqList @tum.ai/ui-kit A question and answer list rendered as an accordion, one answer open at a time. Items with an id are deep-linkable.
FaqListProps @tum.ai/ui-kit Props for FaqList.
FaqSection @tum.ai/ui-kit FAQ band: a sticky heading column beside an accordion of questions.
FaqSectionProps @tum.ai/ui-kit Props for FaqSection.
formatFigure @tum.ai/ui-kit Formats value in the shape of a parsed figure (prefix, digits, suffix).
ParsedFigure @tum.ai/ui-kit A figure split into the number that counts and the text around it.
parseFigure @tum.ai/ui-kit Splits a copy figure such as "1.2M+", "20k+", "2.3%", "~500" or "2,100+" into prefix, number and suffix. Returns null for text that holds no number or more than one (a year range, "24/7"): those are shown as they are.
IconBadge @tum.ai/ui-kit An icon in a tinted tile, always in the brand violet (never per-item accent colors). Decorative: the icon is hidden from assistive tech.
IconBadgeProps @tum.ai/ui-kit Props for IconBadge.
IndexList @tum.ai/ui-kit A typographic index of destinations: full-width link rows with a large light title, one line of description and an arrow, separated by hairlines. On wide screens a sticky photo beside the list shows the row that is hovered or focused (the first one until then), and while the pointer or keyboard focus is in the list the other rows recede: their titles turn muted and their arrows and thumbnails fade; descriptions and details keep their full contrast. Keyboard focus drives the preview exactly like the pointer.
IndexListItem @tum.ai/ui-kit One destination in an IndexList.
IndexListProps @tum.ai/ui-kit Props for IndexList.
KeyDateItem @tum.ai/ui-kit One row of KeyDates.
KeyDates @tum.ai/ui-kit A register of important dates, as a conference's call for papers sets them: one hairline row per date, the label on the left and the date in large light figures on the right. Dates that have passed are struck through (and say so to screen readers); the next one is in the tone's accent with a note such as the days left. A definition list: each label is the term for its date. It holds no clock: pass each row's state.
KeyDatesProps @tum.ai/ui-kit Props for KeyDates.
KeyDateState @tum.ai/ui-kit Where a date stands relative to today: past is struck through, next is the one to act on (in the tone's accent, with its note), and upcoming follows it.
Ledger @tum.ai/ui-kit Key figures as an annual-report ledger: one hairline row per figure, the label and its note on the left, the figure set large and right-aligned. A definition list, so each label is the term for its figure. Numbers count up once when they scroll into view (see StatGrid); strings render as given.
LedgerItem @tum.ai/ui-kit One row of a Ledger.
LedgerProps @tum.ai/ui-kit Props for Ledger.
LogoItem @tum.ai/ui-kit One organization in a LogoWall or LogoTile.
LogoTile @tum.ai/ui-kit An organization's logo: on white by default (most logos are designed for light backgrounds), or bare for artwork made for dark bands. With href the whole tile is a link: external links open in a new tab and say so. Falls back to the name when there is no artwork or it fails to load; wordmark sets a name beside symbol-only artwork.
LogoTileProps @tum.ai/ui-kit Props for LogoTile.
LogoWall @tum.ai/ui-kit Logos as a list: a grid of white tiles, or (strip) one wrapping row of greyscale logos at equal visual weight for light bands.
LogoWallProps @tum.ai/ui-kit Props for LogoWall.
MotionProvider @tum.ai/ui-kit Application-wide motion settings; render it once in the root layout. LazyMotion strict keeps framer-motion's bundle small: use m.* components (not motion.*) inside the app. Transform and layout animations respect the visitor's reduced-motion preference.
MotionProviderProps @tum.ai/ui-kit Props for MotionProvider.
PageHero @tum.ai/ui-kit Opening band for every page: a flat dark tone, a drifting logomark and a word-by-word headline. Everything above the fold animates with CSS only, so it starts before hydration and doesn't hold back LCP. Top padding clears the fixed header.
PageHeroClassNames @tum.ai/ui-kit Class overrides for a page hero's inner parts (merged over the defaults).
PageHeroProps @tum.ai/ui-kit Props for PageHero.
PersonCard @tum.ai/ui-kit Portrait card for members, speakers and alumni.
PersonCardProps @tum.ai/ui-kit Props for PersonCard.
Photo @tum.ai/ui-kit A documentary photo with its caption, in the brand's frame: cropped to a fixed aspect, rounded (or bleeding to the edge), with the caption set small underneath. Zooms slightly when an ancestor with group/zoom is hovered.
PhotoProps @tum.ai/ui-kit Props for Photo.
BadgeStatus @tum.ai/ui-kit The states a StatusBadge can show.
Pill @tum.ai/ui-kit Outlined violet pill from the brand guide ("Mission", "Vision").
PillProps @tum.ai/ui-kit Props for Pill.
StatusBadge @tum.ai/ui-kit Status line with a dot. The dot is decorative, so the label has to say the state in words ("Applications closed"), not only the color.
StatusBadgeProps @tum.ai/ui-kit Props for StatusBadge.
Tag @tum.ai/ui-kit Small filled chip for keywords, categories and counts.
TagProps @tum.ai/ui-kit Props for Tag: a span's props.
QuoteCard @tum.ai/ui-kit Testimonial: quote mark, quotation, and a person row with portrait. The editorial variant sets the quotation in display type, without a card; ruled sets it under a hairline, without a card.
QuoteCardProps @tum.ai/ui-kit Props for QuoteCard.
QuoteImage @tum.ai/ui-kit An image in a quote card: its source and text alternative.
QuoteMark @tum.ai/ui-kit The house opening quotation mark, in the tone's accent color. Decorative: the quote itself sits in a blockquote.
QuoteMarkProps @tum.ai/ui-kit Props for QuoteMark.
Reveal @tum.ai/ui-kit Scroll-triggered entrance. Progressive enhancement by construction: server HTML and no-JS visitors see content immediately (data-reveal="idle" has no hiding styles); only elements that start below the fold are hidden after hydration and revealed once. Reduced motion disables it entirely. For above-the-fold content use the CSS motion-safe:animate-rise* utilities instead.
RevealProps @tum.ai/ui-kit Props for Reveal.
RevealVariant @tum.ai/ui-kit Entrance motions: up (default) rises, fade only fades, scale grows slightly, left/right slide in from that side, and line draws a rule from the left.
Section @tum.ai/ui-kit A full-bleed page band. Children read bg-canvas, text-fg, text-fg-muted, border-hairline and text-highlight, which resolve per tone, so the same component works on light and dark bands. Adjacent bands of close tints blend softly at the seam (see [data-band] in src/styles/tailwind.css). Give it aria-labelledby pointing at its heading.
SectionProps @tum.ai/ui-kit Props for Section.
Tone @tum.ai/ui-kit Band tones (data-tone). Light: paper, mist, lavender. Dark: ink, night. Violet is the brand band, for large type only.
SectionHeader @tum.ai/ui-kit Standard section opening: eyebrow, headline, lead and optional actions.
SectionHeaderClassNames @tum.ai/ui-kit Class overrides for a section header's inner parts.
SectionHeaderProps @tum.ai/ui-kit Props for SectionHeader.
SplitWords @tum.ai/ui-kit Headline entrance: words rise and fade in, in sequence. Each word's box is padded (and pulled back with negative margins, so layout is unchanged) to contain descenders and overhangs at tight display line-heights, because Safari clips an animating inline-block to its box (docs/browser-quirks.md). Pure CSS, so it starts before hydration and never delays LCP. Strings are split into words; elements (e.g. ) animate as one unit. Reduced motion renders the text statically. Words are inline blocks, so never combine it with hyphens-auto: a word box cannot hyphenate, only overflow.
SplitWordsProps @tum.ai/ui-kit Props for SplitWords.
SpotlightCard @tum.ai/ui-kit Card with a soft light that follows the pointer and a glow that traces the border under it. Mouse/pen only; touch and keyboard users see the plain card. Styles live in .spotlight-surface (src/styles/tailwind.css).
SpotlightCardProps @tum.ai/ui-kit Props for SpotlightCard: a div's props plus the card variants.
StatGrid @tum.ai/ui-kit Row of large figures separated by hairlines (definition list semantics: the label is the term, the figure its value).
StatGridProps @tum.ai/ui-kit Props for StatGrid.
StatItem @tum.ai/ui-kit One figure of a StatGrid.
StepItem @tum.ai/ui-kit One step of a Steps list.
Steps @tum.ai/ui-kit Numbered process as an ordered list. A rail joins the step markers on wide screens (or, as rows, hairlines separate them); steps reveal in sequence.
StepsProps @tum.ai/ui-kit Props for Steps.
TextLink @tum.ai/ui-kit Inline link with an underline that draws in from the left on hover or focus (it simply appears under reduced motion). External links open in a new tab with rel="noopener noreferrer" and say so to screen readers.
TextLinkEmphasis @tum.ai/ui-kit The link colors TextLink can take.
TextLinkProps @tum.ai/ui-kit Props for TextLink.
TopBlend @tum.ai/ui-kit Eases the edge of a dark band into the flat root canvas color (brand black, set by src/styles/shell.css). Safari paints its status bar and bottom toolbar from that canvas at the page's ends, so without this the aurora and logomark of a hero (top) or the footer (bottom) meet the browser chrome at a visible seam. Place inside the band, after its decorative layers: it sits above them (-z-[5]) and below the content. See docs/browser-quirks.md.
TopBlendProps @tum.ai/ui-kit Props for TopBlend.
BlockElement @tum.ai/ui-kit Root elements for the layout family (as on Section, Container and Reveal).
HeadingLevel @tum.ai/ui-kit Levels a component title can render as (headingAs). The page hero owns the h1; sections default to h2 and cards to h3.
PolymorphicProps @tum.ai/ui-kit Own props P plus every prop of the rendered element T, including ref (React 19 passes refs as props). P wins where both define a prop.
TextElement @tum.ai/ui-kit Root elements for the typography family (as on Display, Heading, Text and Eyebrow). The visual size never depends on the element.
Display @tum.ai/ui-kit Large editorial headline. Renders an h2 unless as says otherwise.
DisplayProps @tum.ai/ui-kit Props for Display.
Eyebrow @tum.ai/ui-kit Small sentence-case label above headlines, set like the brand guide's captions ("Primary Logo"). index renders an editorial counter ("01") separated by a short rule; use it only where the sections form a sequence.
EyebrowProps @tum.ai/ui-kit Props for Eyebrow.
Heading @tum.ai/ui-kit Card and block title. Renders an h3 unless as says otherwise.
HeadingProps @tum.ai/ui-kit Props for Heading.
Highlight @tum.ai/ui-kit Emphasis inside a headline, e.g. the last word of a hero title.
HighlightProps @tum.ai/ui-kit Props for Highlight.
Prose @tum.ai/ui-kit Long-form content (legal pages, rich descriptions) with brand typography.
ProseProps @tum.ai/ui-kit Props for Prose: a div's props.
Text @tum.ai/ui-kit Running text. Muted body copy in a p by default.
TextEmphasis @tum.ai/ui-kit The text colors Text can take.
TextProps @tum.ai/ui-kit Props for Text.
FooterColumn @tum.ai/ui-kit/shell A footer navigation group with caller-owned identity and content.
Footer @tum.ai/ui-kit/shell Synchronous, server-compatible night-tone footer with caller-owned content. The source's grain, quiet aurora, decorative mark and Safari bottom blend remain intact. Use stable column IDs rather than deriving IDs from headings.
FooterProps @tum.ai/ui-kit/shell Props for Footer; no application content is fetched by the component.
Header @tum.ai/ui-kit/shell Floating site header with route highlighting and a fullscreen mobile menu. The pill stays visible and frosts after scrolling; once the page is found to drop frames (data-effects="reduced", src/lib/effects.ts) or the reader prefers reduced transparency, it turns nearly opaque without the blur, which is costly to redraw over moving content. Its gap below the top edge preserves Safari's page tint; the menu spans the large viewport and leaves dynamic-viewport padding so long navigation remains reachable above toolbars. Requires the consumer's Next App Router and the kit's shell styles.
HeaderProps @tum.ai/ui-kit/shell Props for Header; application navigation and branding are supplied by the caller.
SkipLink @tum.ai/ui-kit/shell First focusable element on a page. The link moves into view on keyboard focus and skips past the fixed header to the consumer's focusable main landmark.
SkipLinkProps @tum.ai/ui-kit/shell Props for the page's first keyboard destination.
NavLink @tum.ai/ui-kit/shell Caller-owned navigation entry used by the reusable shell.
ShellLogo @tum.ai/ui-kit/shell Branding image supplied by the application, rendered with Next Image.
HalftoneField @tum.ai/ui-kit/halftone A halftone dot field after the Makeathon posters: a warped dot grid that breathes in slow waves, dense at the edges, warming toward a sun. Once the field is within a viewport of the screen and the page is idle, the WebGL2 renderer loads, draws its first frame and the canvas fades in; it draws only while on screen, and a single still frame under reduced motion. On a GPU that can't keep up it lowers its resolution, then its frame rate, then holds a still frame. A CSS dot pattern rendered by the server stands in only where the live field cannot: without JavaScript, without WebGL (or with software-only WebGL), or after a lost context. Fills its nearest positioned ancestor (absolute inset-0). Needs @tum.ai/ui-kit/halftone.css. Decorative: hidden from assistive technology.
HalftoneFieldProps @tum.ai/ui-kit/halftone Props of HalftoneField.
HalftoneHandle @tum.ai/ui-kit/halftone A running field, handed to HalftoneField's onReady.
HalftoneState @tum.ai/ui-kit/halftone What the field draws; set it with initial or HalftoneHandle.set.
Sun @tum.ai/ui-kit/halftone The Makeathon sun, after the posters: a disc in the sun ramp that fades toward the horizon, with a soft glow behind it. Absolutely positioned and square; size and position come from the caller. Needs @tum.ai/ui-kit/halftone.css. Decorative: hidden from assistive technology.
SunProps @tum.ai/ui-kit/halftone Props of Sun.