List

  • You can render a list of string

  • The last junction can be styled thanks to the following parameters:

  listType?: "conjunction" | "disjunction"; // ""conjunction" by default
  listStyle?: "long" | "narrow"; // "narrow" by default

Example:

json

  "days": ["Monday", "Tuesday", "Wednesday"],

component

import React from "react";
import { useT } from "talkr";

export default function MyComponent() {
  const { T } = useT();
  return (
    <>
      <h1>{T("days", { listType: "conjunction" })}</h1>
    </>
  );
}

Last updated