umd-styles-library
    Preparing search index...

    Function composeItem

    • Composable event meta item style selector

      Creates event metadata item styles with configurable theme options. This function allows theme-aware color selection for event metadata.

      Parameters

      Returns JssObject

      JSS object with composed styles and appropriate className

      // Light theme (default)
      const styles = composeItem();

      // Dark theme
      const styles = composeItem({ theme: 'dark' });

      // In element builder with theme
      const styleElements = {
      ...event.meta.composeItem({
      theme: isThemeDark ? 'dark' : 'light'
      })
      };

      1.7.0