Function ariaBool

  • Utilitiy cell that emits the strings "true" and "false" depending on whether the input cell's value is true or false.

    Parameters

    • p: any

    Returns Cell<"true" | "false">

    Example

    const selected = cell(true);

    <div aria-selected={ariaBool(selected)}/>