Hiyve Components - v1.0.0
    Preparing search index...
    • QuestionInput provides an input field for submitting new questions.

      Parameters

      Returns ReactElement

      This component includes:

      • Text input for the question content
      • Send button to submit
      • Optional anonymous checkbox

      Keyboard Support:

      • Enter to submit (without Shift)
      • Shift+Enter for new line
      <QuestionInput
      onSubmit={(content, anonymous) => {
      postQuestion(content, anonymous);
      }}
      labels={labels}
      icons={icons}
      colors={colors}
      styles={styles}
      allowAnonymous={true}
      />