ui
Theme Style CarbonKanok Language ไทย
OverviewInstallationMigrating to 1.0Themes and layersKanok designCustomizingIconsForms and validationFrameworksUsing with AIButtonText inputText areaNumber inputSearchSelectDropdownComboboxMulti-selectCheckboxRadio buttonToggleDate pickerTime pickerSliderFile uploaderModalSide panelTearsheetNotificationToastTooltipDefinition tooltipPopoverToggletipMenuData tableStructured listPaginationContained listTree viewTabsBreadcrumbLinkPagination navContent switcherAccordionProgress indicatorUI shellTagTileCardProduct cardCode snippetCopy buttonUser avatarTruncated textListLoadingInline loadingProgress barSkeletonBadge indicatorStatus indicatorGridHeadingLayerAction setPage headerBig numberEdit in placeIntroductionText inputText areaNumber inputSearchSelectDropdownComboboxMulti-selectCheckboxRadio buttonToggleDate pickerTime pickerSliderFile uploaderTabsPagination navContent switcherTooltipDefinition tooltipPopoverMenuAccordionProgress indicatorUI shellModalSide panelTearsheetNotificationToastData tableStructured listPaginationTree viewCode snippetCopy buttonTruncated textLoadingTagCardProduct cardEdit in place

@purpurabog/ui

Components that follow IBM's Carbon Design System, made for forms in Thai and English: fields, lists, dates (Buddhist era), overlays, data tables and the UI shell. This site is built with them.

The same components come in three forms. Pick the one that fits your app:

You build with Use You get
Any framework, or plain HTML Lit web components (<ui-date-picker>) Carbon's look and behaviour, styled with tokens and ::part()
React + Tailwind Components copied into your app with shadcn (npx shadcn add) Carbon's look as Tailwind classes you can edit line by line
React, your own design Unstyled parts (@purpurabog/ui/headless) Carbon's keyboard, focus and ARIA with no classes at all

All three share one core, so the behaviour is the same everywhere: every component is tested against Carbon in Chrome and WebKit, with axe and with the keyboard.

Try it

<ui-date-picker label="Contract start" helper-text="dd/mm/yyyy"></ui-date-picker>

Change the theme or the language in the settings at the top right: the components follow the page's data-theme and lang.

What next

  • Install the package or copy components with shadcn.
  • Browse every element, its attributes, slots, parts and events in the Storybook.