Introduce UI Components documentation (#1926)

* new contributor guide folder architecture

* update content pass 1

* Prepare UI component folder to receive componentns

* Add component doc example for button

* Fix broken links

* Fix broken links

* Fix images
This commit is contained in:
Charles Bochet
2023-10-08 13:21:54 +02:00
committed by GitHub
parent 7b6ee4e0bf
commit edc060fce7
61 changed files with 872 additions and 1011 deletions

View File

@ -18,9 +18,7 @@ const DocSidebarItemLink = ({
const { href, label, className, autoAddBaseUrl, customProps = {} } = item;
const isActive = isActiveSidebarItem(item, activePath);
const isInternalLink = isInternalUrl(href);
const IconComponent = customProps?.icon
? icons[customProps.icon]
: icons.TbFaceIdError;
const IconComponent = customProps?.icon ? icons[customProps.icon] : null;
return (
<li
@ -48,9 +46,11 @@ const DocSidebarItemLink = ({
{...props}
>
<span className="icon-and-text">
{IconComponent && (
<i className="sidebar-item-icon">
<IconComponent size={customProps.iconSize} />
</i>
)}
{label}
</span>
{!isInternalLink && <IconExternalLink />}

View File

@ -11,6 +11,11 @@ export {
TbChartDots,
TbChecklist,
TbCloud,
TbScript,
TbForms,
TbTable,
TbSlideshow,
TbBrandDocker,
TbDeviceDesktop,
TbExclamationCircle,
TbEyeglass,