Hiyve Components - v1.0.0
    Preparing search index...

    Function buildDefaultClipCompositionColors

    • Build the ClipComposition's default color palette from a MUI theme.

      Parameters

      • theme: Theme

      Returns ClipCompositionColors

      Colors derive from theme.palette.* so the component adapts to the host app's light / dark / custom theme.

      import { useTheme } from '@mui/material/styles';
      import { buildDefaultClipCompositionColors } from '@hiyve/react-clips';

      const theme = useTheme();
      const colors = buildDefaultClipCompositionColors(theme);