Skip to content

Pass options param to useGridLayout through GridLayout component#1322

Open
lauraguerra1 wants to merge 1 commit intolivekit:mainfrom
lauraguerra1:feat/expose-grid-layout-options
Open

Pass options param to useGridLayout through GridLayout component#1322
lauraguerra1 wants to merge 1 commit intolivekit:mainfrom
lauraguerra1:feat/expose-grid-layout-options

Conversation

@lauraguerra1
Copy link
Copy Markdown

Summary

This PR exposes useGridLayout's existing gridLayouts option through the GridLayout component.

Consumers can now pass custom GridLayoutDefinition[] values directly to GridLayout without needing to use useGridLayout themselves.

Changes

  • add an optional gridLayouts?: GridLayoutDefinition[] prop to GridLayout
  • forward gridLayouts from GridLayout into useGridLayout
  • preserve existing behavior when gridLayouts is not provided

Why

useGridLayout already supports custom grid layout definitions, but that flexibility was not available through the higher-level GridLayout component. This change closes that gap and makes layout customization available without dropping down to the hook layer.

@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 23, 2026

@lauraguerra1 is attempting to deploy a commit to the LiveKit Team on Vercel.

A member of the Team first needs to authorize it.

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Apr 23, 2026

⚠️ No Changeset found

Latest commit: 2a42cae

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant