Skip to main content
Partas

Utilities

We'll want to create a file that handles some utilities for us down the line.

Utils.fs
namespace Partas.Solid.Example
open Partas.Solid
open Fable.Core
type [<Erase>] Lib =
[<Import("twMerge", "tailwind-merge")>]
static member twMerge (classes: string) : string = jsNative
[<Import("clsx", "clsx")>]
static member clsx(classes: obj): string = jsNative
static member cn (classes: string array): string = classes |> Lib.clsx |> Lib.twMerge

Last updated: 7/9/25, 7:54 PM

PartasBuilt using the Partas.SolidStart SolidBase template
Community
githubdiscord