byronwade/ui
Marketing & editorial

Video · Marketing & editorial

Comment composer

YouTube-style comment composer: an avatar plus an underline text input that reveals Cancel/Comment actions on focus or input.

@byronwade/foundation@byronwade/avatar@byronwade/button@byronwade/utils

Feature showcase

Installation

Features

  • 1 example

    Default.

  • Tagged for youtube, video, tier:intermediate

API

Props

PropTypeDefaultDescription
valuestring-Controlled comment text.
onValueChange(value: string) => void-Fired as the user types.
openboolean-Controlled expanded state (action row visible).
onOpenChange(open: boolean) => void-Fired when expanded state changes.

Dependencies

PackageKindDescription
@byronwade/foundationregistryInstalled through the byronwade/ui registry.
@byronwade/avatarregistryInstalled through the byronwade/ui registry.
@byronwade/buttonregistryInstalled through the byronwade/ui registry.
@byronwade/utilsregistryInstalled through the byronwade/ui registry.

Source and related

FilePath
Componentregistry/components/comment-composer.tsx
Default examplecontent/examples/comment-composer/default.tsx