Skip to content

feat(react-persona): expose Persona base hook and types#35814

Merged
dmytrokirpa merged 3 commits into
masterfrom
feat/react-persona-base-hooks
Mar 23, 2026
Merged

feat(react-persona): expose Persona base hook and types#35814
dmytrokirpa merged 3 commits into
masterfrom
feat/react-persona-base-hooks

Conversation

@dmytrokirpa

@dmytrokirpa dmytrokirpa commented Mar 3, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Enables usePersonaBase_unstable hook that was already implemented in usePersona.ts but gated behind a comment in index.ts
  • Exports PersonaBaseProps and PersonaBaseState types from the package index.ts
  • The base hook manages text slot structure (primaryText, secondaryText, tertiaryText, quaternaryText) and numTextLines count without design props
  • usePersona_unstable delegates to usePersonaBase_unstable and adds size, textPosition, textAlignment, avatar, and presence slots

🤖 Generated with Claude Code

Enables the already-implemented usePersonaBase_unstable hook and PersonaBaseProps/
PersonaBaseState types by uncommenting and properly exporting them from the package
index. The hook manages text slot structure (primaryText, secondaryText, etc.) without
design props (size, textPosition, textAlignment, avatar, presence slots).

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
@dmytrokirpa dmytrokirpa force-pushed the feat/react-persona-base-hooks branch from a221d3e to a28c912 Compare March 5, 2026 10:55
@dmytrokirpa dmytrokirpa changed the base branch from experimental/component-base-hooks to master March 5, 2026 10:55
@github-actions github-actions Bot removed the CI label Mar 5, 2026
@github-actions

github-actions Bot commented Mar 5, 2026

Copy link
Copy Markdown

Pull request demo site: URL

@dmytrokirpa dmytrokirpa force-pushed the feat/react-persona-base-hooks branch from a28c912 to 2608ebc Compare March 19, 2026 16:32
@dmytrokirpa dmytrokirpa changed the title feat(react-persona): add usePersonaBase_unstable hook feat(react-persona): expose Persona base hook and types Mar 19, 2026
@dmytrokirpa dmytrokirpa marked this pull request as ready for review March 19, 2026 16:33
@dmytrokirpa dmytrokirpa requested review from a team and mainframev as code owners March 19, 2026 16:33
@github-actions

Copy link
Copy Markdown

📊 Bundle size report

✅ No changes found

@dmytrokirpa dmytrokirpa merged commit 109610e into master Mar 23, 2026
15 checks passed
@dmytrokirpa dmytrokirpa deleted the feat/react-persona-base-hooks branch March 23, 2026 21:39
tudorpopams pushed a commit to tudorpopams/fluentui that referenced this pull request Apr 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants