-
Notifications
You must be signed in to change notification settings - Fork 139
feat: LiveKit OSS Shadcn initial components #1249
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
size-limit report 📦
|
78cd2d3 to
8a4c571
Compare
packages/shadcn/components/agents-ui/agent-control-bar/agent-control-bar.tsx
Outdated
Show resolved
Hide resolved
8a4c571 to
0200c76
Compare
packages/shadcn/components/agents-ui/agent-control-bar/agent-control-bar.tsx
Outdated
Show resolved
Hide resolved
packages/shadcn/components/agents-ui/audio-visualizer-bar/hooks/useBarAnimator.ts
Outdated
Show resolved
Hide resolved
0200c76 to
f0003fe
Compare
f0003fe to
77be9bb
Compare
| ref, | ||
| ) { | ||
| const elementProps = mergeProps(props, { className: 'lk-audio-bar-visualizer' }); | ||
| const elementProps = mergeProps(props, { className: 'lk-audio-visualizer-bar' }); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey folks, thanks for this lib.
I think components-react got published (2.9.18) while the component-styles were not. This means that if you refresh your package lock and pull in the latest for both, you get a broken BarVisualizer (the bars don't have style)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ahh, good catch
thank you @woodside-david-francoeur
this was an inadvertent change
we'll get a fix out ASAP
not sure if you use shadcn or tailwind,
but you might want to look at https://docs.livekit.io/reference/components/shadcn/component/agent-audio-visualizer-bar/
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
None, but our override (through var va-fg) stopped working and I eventually fouund this as the bug
Thanks for the quick answer, and there is no rush, we can just pin for now
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
v2.9.19 has been released
https://www.npmjs.com/package/@livekit/components-react
Please let us know if you encounter issues
Summary
This PR introduces the core agent control components for the
@livekit/shadcnpackage, providing the foundational UI elements for building voice/video agent interfaces.New Components
AgentControlBarThe main control bar component for agent sessions featuring:
usePublishPermissionshookuseInputControlshookAgentTrackControlA compound control component that combines track toggling with device selection, providing users the ability to both mute/unmute and switch between available devices.
AgentTrackToggleA simple toggle button for enabling/disabling audio or video tracks in agent sessions.
AgentDisconnectButtonA styled button to disconnect from the current agent session.
AudioVisualizerBarA bar-style audio visualizer with smooth animations via the
useBarAnimatorhook, useful for displaying agent or participant audio activity.Also Includes
cloneSingleChildutility for component composition