psytask - v1.1.1
    Preparing search index...

    Function TextStim

    • Text stimulus component for displaying styled text content

      Parameters

      • props: PropertiesHyphen<0 | (...) & (...), string & {}> & {
            children?: string | Node | (...)[];
        }

      Returns { node: HTMLDivElement }

      using textScene = app.scene(TextStim, {
      defaultProps: {
      children: 'Hello, World!',
      color: 'blue',
      'font-size': '24px',
      'font-weight': 'bold',
      },
      });
      await textScene.show();