Components

File structure

Description

Widgets are composed of components. For example, DateSelect = Select + DatePicker.

A base component cannot import another component. Other components can be used inside variants.

Variants are built on top of a base component.

Private folder contains components and other entities that should not be accessible outside of the library.

File naming

Style component-name.styles.ts
Typescript types and interfaces component-name.model.ts
Storybook component-name.stories.ts
Tests component-name.test.ts