Home > General Components > Button

Button

@wq/material’s <Button/> component defines a generic button for use outside of forms. <Button/> accepts an optional string icon prop (see icon components). If an onClick prop is provided, it will be passed as onPress to React Native Paper. <Button/> is analogous to <button type="button"> in HTML.

Source

While @wq/react defines a placeholder implementation, @wq/material’s versions are more useful as reference:

  • Button.js (@wq/material-web)
  • Button.js (@wq/material-native)