useIonActionSheet, how do I set subHeader?

ion-action-sheet: Ionic Framework API Docs

when using the template, you can set the subHeader, but when using the hook, there doesnt see to be a way to set it unless it is undocumented?

You can set it in the present() function, which is returned from the hook:
const [present, dismiss] = useIonActionSheet()

          onClick={() =>
              subHeader: "I am here!",
              buttons: [{ text: "Ok" }, { text: "Cancel" }],
              header: "Action Sheet",
          Show ActionSheet
1 Like