Options
All
  • Public
  • Public/Protected
  • All
Menu

Properties for the PostCreator component.

internal

Hierarchy

  • PostCreatorProps

Index

Properties

community

community: string

The community the post will be made in.

host

host: string

The host the post will be made to.

Optional isComment

isComment: boolean

Indicates whether a comment is being made.

Optional onCancel

onCancel: () => void

Function called if the component is closed without creating a comment.

Type declaration

    • (): void
    • Returns void

onSuccess

onSuccess: (id: string) => void

Function called upon successful submission.

Type declaration

    • (id: string): void
    • Parameters

      • id: string

      Returns void

Optional parentId

parentId: string

The ID of the parent post, if a comment is being made.

submitButtonText

submitButtonText: string

The text to be displayed on the 'submit' button.

This is either 'Create Post', 'Make Reply' or 'Add Comment'.

Generated using TypeDoc