• Preparing search index...
  • The search index is not available
Documentation
  • Documentation
  • svelte-ast-print
  • svelte-ast-print/template
  • printStyleDirective

Function printStyleDirective

  • printStyleDirective(
        n: StyleDirective,
        opts?: Partial<PrintOptions>,
    ): Result<StyleDirective>

    Parameters

    • n: StyleDirective
    • opts: Partial<PrintOptions> = {}

    Returns Result<StyleDirective>

    See

    https://svelte.dev/docs/svelte/style

    Example: with expression tag

    style:name={value}
    

    Example: with text expression

    style:name="text"
    

    Example: without expression

    style:name
    

    Example: with modifiers

    style:name|modifiers="text"
    

    Since

    1.0.0 @NO_SIDE_EFFECTS

    • Defined in pkgs/svelte-ast-print/src/template/mod.ts:372

Settings

Member Visibility
Documentation
  • Loading...

Generated using TypeDoc