Content
- The bio is the person's own words: show it exactly as written, never shortened or edited by Bridge.
A bio cut to one line, with See more when it doesn't fit.
import { … } from "@brdgapp/ui/components/expandable-bio"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.
Founder of Quillbase. Previously led legal operations at two Series B startups and spent six years as a commercial lawyer.
Text. --text-body, cut to one line with an ellipsis.
Toggle. A link Button at xs: See more / See less.
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.
No toggle.
Partner at Saltmarsh Partners.
| State | What happens |
|---|---|
| Fits | No toggle. |
| Collapsed | One line and See more. |
| Expanded | Full text and See less. |
Do
Let the component decide when to show See more.Don't
Show it based on a character count.aria-expanded and points at the text with aria-controls.| Keys | Action |
|---|---|
| EnterSpace | Show more or less. |
ExpandableBio
The bio.
| Prop | Type | Default | Description |
|---|---|---|---|
text | string | — | The bio. Leading and trailing spaces are trimmed. |
size | 12 | 14 | 12 | Text size. |
className | string | — | Layout only. |
What it's built from and where it's used, read from the code. When you change it, check these too.
components.md → ExpandableBio; src/components/ui/expandable-bio.tsx.