šŸš€ DAY 5 OF LAUNCH WEEK: Introducing Socket Firewall Enterprise.Learn more →
Socket
Book a DemoInstallSign in
Socket

@personio/ui-components

Package Overview
Dependencies
Maintainers
4
Versions
346
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@personio/ui-components

## Where to put component documentation related assets

latest
npmnpm
Version
7.5.1
Version published
Weekly downloads
13
-99.69%
Maintainers
4
Weekly downloads
Ā 
Created
Source

Design System Docz assets

To respect the modularity of each component, the suggested approach is to have a __docs__ dicrectory in each component's directory and put all the documentation assets there.

The following structure is used for the images and other doc related stuff:

src/select
ā”œā”€ā”€ __docs__
│   ā”œā”€ā”€ docs.fixtures.js
│   ā”œā”€ā”€ docs.styles.scss
│   └── img
│       ā”œā”€ā”€ select_doc_briefexaple1.png
│       └── select_doc_briefexaple2.png

How to use images in .mdx files

The default ![foo](__docs__/img/bar.png) notation authomatically exposes the image assets to the bundler and the pipeline will upload them to the S3 bucket.

However for the <Playground/> components with image address, the suggested approach would be:

import fooImgUrl from './__docs__/img/foo.png'

<Playground>
  <FooComponent img={fooImgUrl} />
</Playground>

FAQs

Package last updated on 24 Mar 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts