BridgeHandbookDraft
For agents
Menu
ExperimentalatomData display

ExpandableBio

A bio cut to one line, with See more when it doesn't fit.

import { … } from "@brdgapp/ui/components/expandable-bio"

Usage

ExpandableBio shows a person's bio on one line, with See more when it doesn't fit. The toggle appears only when the text really overflows at the current width, measured on screen, never guessed from how long the text is. The usual mistake is showing See more on a bio that already fits.

When to use

  • A person's bio on a profile card or row, where space is tight.

When not to use

  • For long-form text people came to read. Show it in full.

Anatomy

Founder of Quillbase. Previously led legal operations at two Series B startups and spent six years as a commercial lawyer.

  1. Text. --text-body, cut to one line with an ellipsis.

  2. Toggle. A link Button at xs: See more / See less.

Examples

A bio that doesn't fit

Change the width: See more comes and goes.

Founder of Quillbase. Previously led legal operations at two Series B startups and spent six years as a commercial lawyer. Building tools that let small legal teams review contracts in minutes instead of days.

A bio that fits

No toggle.

Partner at Saltmarsh Partners.

States

StateWhat happens
FitsNo toggle.
CollapsedOne line and See more.
ExpandedFull text and See less.

Behavior

  • Re-measures when its width changes, so the toggle appears or disappears as the layout reflows.
  • Measures only while collapsed, so expanding never hides the See less button.

Do and don't

Do

Let the component decide when to show See more.

Don't

Show it based on a character count.

Content

  • The bio is the person's own words: show it exactly as written, never shortened or edited by Bridge.

Accessibility

  • The toggle reports aria-expanded and points at the text with aria-controls.
KeysAction
EnterSpaceShow more or less.

API reference

ExpandableBio

The bio.

PropTypeDefaultDescription
textstring—The bio. Leading and trailing spaces are trimmed.
size12 | 1412Text size.
classNamestring—Layout only.

Lineage

What it's built from and where it's used, read from the code. When you change it, check these too.

Built from
Button
Used by components
None
Used in patterns
None
Used in templates
None

Sources

  • Bridge OS components.md → ExpandableBio; src/components/ui/expandable-bio.tsx.