Skip to content

UI-Kit-TS provides several typescript ui components and functionality used throughout our projects.

License

Notifications You must be signed in to change notification settings

linked-planet/ui-kit-ts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

b477d78 · Mar 20, 2025
Feb 18, 2025
Feb 14, 2023
Dec 7, 2024
Sep 3, 2024
Mar 20, 2025
Mar 19, 2025
Mar 12, 2025
Oct 4, 2023
Sep 27, 2024
Aug 29, 2023
Feb 15, 2023
Jun 13, 2023
Jul 26, 2024
Jun 8, 2024
Mar 20, 2025
Mar 20, 2025
Jun 18, 2024
Jun 18, 2024
Nov 12, 2024
Sep 2, 2024
Jun 26, 2024
May 3, 2024
Jun 26, 2024
Feb 6, 2025
Feb 13, 2025
Sep 24, 2024

Repository files navigation

UI-Kit-TS

UI-Kit-ts provides several typescript ui components and functionality used throughout our projects.

Checkout the online demo of the showcase.

Structure

  • library: library containing all components and functionality
  • showcase: showcase which demonstrates all components and their usage

Usage

Run the following command to start the showcase app and open it in your browser: npm run dev:sc

To build the library use: npm run build:lib

And the showcase: npm run build:sc

Localization

ui-kit-ts offers integration of FormatJS to support localization, although no component is tight to it. Use the LocaleProvider in the locale context to automatically fetch translations of defined messages. With npm run messages:extract defined messages in FormatJS Message components are extracted into the library/localization/translations directory as Json. Create the translated Json using the locale identifier as file name (i.g. extracted is a 'en.json', so we create a 'de.json'). Compilation of the translated messages happens automatically during the build.

When using the LocaleProvider, it will try to download the compiled translations for a set locale from the public/translations-compiled directory. If none is available, it will default back to the default messages.

Theming

ui-kit-ts supports the Atlassian design system, which is basically a mapping of tokens to css variables. If the used component does not seem to have the proper styling, use the 'initTheming()' function in the theming directory, which sets the themeing attribute in the HTML tag.

Do not forget to add the '@linked-planet/ui-kit-ts/style.css' someplace in your project.