Matterway
    Preparing search index...

    Function text

    • Text component for displaying static or dynamic text content.

      Parameters

      • props: UiTextProps

        Configuration object

        • text

          Text content to display. Can be either a static string or a function that receives params with data and value, returning a string

      Returns Element

      Basic usage with static text

      text({
      text: 'Hello, World!'
      });

      Usage with dynamic text from params with data and value

      text({
      text: ({data}) => `Welcome back, ${data.userName}!`
      });

      Usage with info callout text

      text({
      text: ':::info\nThis is an informational message\n:::'
      });

      Usage with warning callout text

      text({
      text: ':::warn\nThis is a warning message\n:::'
      });