byronwade/ui
Marketing & editorial

Video · Marketing & editorial

Subscribe button

YouTube-style subscribe control with a two-state toggle and a notification-level dropdown menu.

@byronwade/foundation@byronwade/button@byronwade/dropdown-menu@byronwade/utils@phosphor-icons/react

Feature showcase

Installation

Features

  • 1 example

    Default.

  • Tagged for youtube, video, tier:simple

API

Props

PropTypeDefaultDescription
subscribedboolean-Controlled subscribed state.
defaultSubscribedboolean-Initial subscribed state when uncontrolled.
onSubscribedChange(next: boolean) => void-Fired when subscribe state toggles.

Dependencies

PackageKindDescription
@byronwade/foundationregistryInstalled through the byronwade/ui registry.
@byronwade/buttonregistryInstalled through the byronwade/ui registry.
@byronwade/dropdown-menuregistryInstalled through the byronwade/ui registry.
@byronwade/utilsregistryInstalled through the byronwade/ui registry.
@phosphor-icons/reactnpmInstalled from npm.

Source and related

FilePath
Componentregistry/components/subscribe-button.tsx
Default examplecontent/examples/subscribe-button/default.tsx