Skip to content

Conversation

@AriPerkkio
Copy link
Member

import tutorialStore from 'tutorialkit:store';

export default function Example() {
  async function onClick() {
    const terminal = tutorialStore.terminalConfig.value!.panels[0];
    terminal.input('npm run test\n');
  }

  return (
    <button
      onClick={onClick}
      className="px-4 py-1 my-3 cursor-pointer border-1 border-tk-border-primary rounded-md bg-tk-elements-primaryButton-backgroundColor text-tk-elements-primaryButton-textColor"
    >
      Run tests
    </button>
  );
}

@AriPerkkio AriPerkkio requested a review from Nemikolh September 30, 2024 09:41
@bolt-new-by-stackblitz
Copy link

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

Copy link
Member

@Nemikolh Nemikolh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Glad we found and fixed that bug! 🤩

@Nemikolh Nemikolh merged commit c0b8f41 into stackblitz:main Sep 30, 2024
10 checks passed
@AriPerkkio AriPerkkio deleted the feat/terminal-input branch September 30, 2024 12:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants