@rescui/typography 0.27.1 → 0.27.3-RUI-297-Add-react-compiler-to-the-packages-build-dbbefd7b8.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,97 @@
1
+ # Code
2
+
3
+ This style is used in RescUI to display inline code elements and blocks of code
4
+
5
+ ## Overview
6
+
7
+ ### Specification
8
+
9
+ Code text style is displayed on the background color (`--rs-color-black-t10` or `--rs-color-white-t10`, depending on selected theme), with rounded edges to highlight code examples.
10
+
11
+ | | Weight | Font size | Line height | Letter spacing, % |
12
+ | --- | --- | --- | --- | --- |
13
+ | Code block | Regular | 16px | 24px | 0 |
14
+ | Code inline | Regular | 90% | inherit | 0 |
15
+
16
+ ### Usage and Examples
17
+
18
+ Code text style is used to highlight code examples in text or in special code blocks.
19
+
20
+ Inline code is used to present small instances of code, like class or variable names, and you can also use it for keyboard shortcuts.
21
+
22
+ Code blocks are used to represent code snippets or console commands. Even if you’re just presenting one line of code, we recommend using a code block.
23
+
24
+ ## API
25
+
26
+ ### textCn helper examples
27
+
28
+ For raw `textCn` to work correctly in the dark theme, you have to specify `--rs-theme-dark: 1` CSS variable for the target element or above. If you don't use the `--rs-theme-dark` CSS variable, please refer to the [useTextStyles method](#usetextstyles-hook-examples).
29
+
30
+ Use inline code as a child of one of the base texts `textCn("rs-text-<1|2|3>")`.
31
+
32
+ ```tsx
33
+ import { textCn } from '@rescui/typography';
34
+
35
+ render(
36
+ <div>
37
+ <p className={textCn('rs-text-2')}>
38
+ <code className={textCn('rs-code')}>inline CODE</code>
39
+ </p>
40
+ <pre className={textCn('rs-pre')}>
41
+ <code>CODE</code>
42
+ </pre>
43
+ </div>
44
+ );
45
+ ```
46
+
47
+ ### useTextStyles hook examples
48
+
49
+ If you use [`ThemeContext`](/utils/ui-contexts/#themecontext) to manage the theme of your application, you should use `useTextStyles` hook.
50
+
51
+ Use inline code as a child of one of the base texts `textCn("rs-text-<1|2|3>")`.
52
+
53
+ ```tsx
54
+ import { useTextStyles } from '@rescui/typography';
55
+
56
+ const Example = () => {
57
+ const textCn = useTextStyles();
58
+
59
+ return (
60
+ <div>
61
+ <p className={textCn('rs-text-2')}>
62
+ <code className={textCn('rs-code')}>inline CODE</code>
63
+ </p>
64
+ <pre className={textCn('rs-pre')}>
65
+ <code>CODE</code>
66
+ </pre>
67
+ </div>
68
+ );
69
+ };
70
+
71
+ render(<Example />);
72
+ ```
73
+
74
+ ### Dark theme example
75
+
76
+ Use `--rs-theme-dark` CSS variable to set dark theme for `textCn` helper.
77
+
78
+ ```tsx
79
+ import { textCn } from '@rescui/typography';
80
+
81
+ render(
82
+ <div
83
+ style={{
84
+ background: 'var(--rs-color-black)',
85
+ padding: 16,
86
+ '--rs-theme-dark': 1
87
+ }}
88
+ >
89
+ <p className={textCn('rs-text-2')}>
90
+ <code className={textCn('rs-code')}>inline CODE</code>
91
+ </p>
92
+ <pre className={textCn('rs-pre')}>
93
+ <code>CODE</code>
94
+ </pre>
95
+ </div>
96
+ );
97
+ ```
@@ -0,0 +1,68 @@
1
+ # colorCn
2
+
3
+ Typography JavaScript className helper `colorCn` allows to change the color of the text of the typography colors.
4
+
5
+ ## colorCn
6
+
7
+ ### Helper description
8
+
9
+ `colorCn` className JS-helper accepts only one string argument: `"average" | "hard" | "pale" | "base"`
10
+
11
+ Each of them, except `base`, set the corresponding typography color using the `color` CSS property. `base` sets the element color to the base typography color, that is declared higher ([see example](#base-color))
12
+
13
+ ### Example
14
+
15
+ ```tsx
16
+ import { textCn, colorCn } from '@rescui/typography';
17
+
18
+ const Demo = () => {
19
+ return (
20
+ <div style={{ maxWidth: 800 }}>
21
+ <p className={textCn('rs-text-2')}>
22
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed aliquam in
23
+ sem at mollis. Aenean eget tincidunt arcu.{' '}
24
+ <span className={colorCn('hard')}>Donec luctus placerat magna.</span>{' '}
25
+ Morbi tristique mollis lacus eu congue.
26
+ </p>
27
+ </div>
28
+ );
29
+ };
30
+
31
+ render(<Demo />);
32
+ ```
33
+
34
+ ### Standalone example
35
+
36
+ You can also use `colorCn` without typography classes at all, except the `base` value:
37
+
38
+ ```tsx
39
+ import { colorCn } from '@rescui/typography';
40
+
41
+ render(<span className={colorCn('pale')}>Donec luctus placerat magna.</span>);
42
+ ```
43
+
44
+ ### Base color
45
+
46
+ You can get base typography color out of the nested structure using `base` value:
47
+
48
+ ```tsx
49
+ import { textCn, colorCn } from '@rescui/typography';
50
+
51
+ const Demo = () => {
52
+ return (
53
+ <div style={{ maxWidth: 800 }}>
54
+ <p className={textCn('rs-text-2')}>
55
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed aliquam in
56
+ sem at mollis.{' '}
57
+ <span style={{ color: 'var(--rs-color-danger)' }}>
58
+ Aenean eget tincidunt arcu.{' '}
59
+ <span className={colorCn('base')}>Donec luctus placerat magna.</span>{' '}
60
+ Morbi tristique mollis lacus eu congue.
61
+ </span>
62
+ </p>
63
+ </div>
64
+ );
65
+ };
66
+
67
+ render(<Demo />);
68
+ ```
@@ -0,0 +1,92 @@
1
+ # Digits
2
+
3
+ RescUI has 2 special Digits styles for key numeric data. The Digits styles are distinguished from the Subtitles style by their use of monospaced versions of numbers.
4
+
5
+ ## Overview
6
+
7
+ ### Specification
8
+
9
+ | | Weight | Font size, px | Line height, px | Letter spacing, % |
10
+ | --- | --- | --- | --- | --- |
11
+ | Digits 1 | Regular | 69 | 71 | \-0.5 |
12
+ | Digits 2 | Light | 40 | 44 | \-0.5 |
13
+
14
+ ### Usage and Examples
15
+
16
+ The Digits styles are used to call attention to a specific numerical data, for example for:
17
+
18
+ - Dates for events
19
+ - Numbers, such as of new or active users or company products
20
+ - Percentages
21
+ - Growth or decline of key indicators
22
+
23
+ ### Adaptivity
24
+
25
+ The font-size and line-height values on the different screen breakpoints
26
+
27
+ | | Desktop | Tablet (≤ 1000px) | Mobile (≤ 640px) |
28
+ | --- | --- | --- | --- |
29
+ | Digits 1 | 69/71 | ← | 40/44 |
30
+ | Digits 2 | 40/44 | ← | ← |
31
+
32
+ ### Recommendations
33
+
34
+ Long values look bulky, but sometimes you can make them shorter by using common abbreviations, like M for millions or K for thousands. You can also use +- >< symbols to convey changes or to relate your figure to a round value that is easier to display.
35
+
36
+ Do not make the description accompanying your number too long. 1 line is ideal. 2 lines is the maximum. If you are struggling to cut the description down to a size that fits, try distilling your message to only the essential information. If it is still too long, you may consider moving some of the details into a note.
37
+
38
+ This style should not be applied to non-numeric elements, like words or graphics, and it should not be mixed with other data types. In general, when deciding whether to use this style, you should always ask yourself why this information should merit the readers’ special attention and interest.
39
+
40
+ Wherever possible, round numbers to values that will be more familiar to readers. This will make them easier to process.
41
+
42
+ ## API
43
+
44
+ ### textCn helper examples
45
+
46
+ For raw `textCn` to work correctly in the dark theme, you have to specify `--rs-theme-dark: 1` CSS variable for the target element or above. If you don't use the `--rs-theme-dark` CSS variable, please refer to the [useTextStyles method](#usetextstyles-hook-examples).
47
+
48
+ ```tsx
49
+ import { textCn } from '@rescui/typography';
50
+
51
+ render(<span className={textCn('rs-digits-1')}>$56873.23</span>);
52
+ ```
53
+
54
+ ### useTextStyles hook examples
55
+
56
+ If you use [`ThemeContext`](/utils/ui-contexts/#themecontext) to manage the theme of your application, you should use `useTextStyles` hook.
57
+
58
+ ```tsx
59
+ import { useTextStyles } from '@rescui/typography';
60
+
61
+ const MyReactComponent = () => {
62
+ const textCn = useTextStyles();
63
+ return <span className={textCn('rs-digits-1')}>$56873.23</span>;
64
+ };
65
+ render(<MyReactComponent />);
66
+ ```
67
+
68
+ ### Dark theme example
69
+
70
+ Use `--rs-theme-dark` CSS variable to set dark theme for `textCn` helper.
71
+
72
+ ```tsx
73
+ import { textCn } from '@rescui/typography';
74
+
75
+ render(
76
+ <div
77
+ style={{
78
+ background: 'var(--rs-color-black)',
79
+ padding: 16,
80
+ '--rs-theme-dark': 1
81
+ }}
82
+ >
83
+ <span className={textCn('rs-digits-2')}>€28721.93</span>
84
+ </div>
85
+ );
86
+ ```
87
+
88
+ ### Parameters
89
+
90
+ | Name | Type | Default | Description |
91
+ | --- | --- | --- | --- |
92
+ | `hardness` | "average" \| "hard" \| "pale" | `"hard"` | |
@@ -0,0 +1,105 @@
1
+ # Headings
2
+
3
+ Text headings give content a structure and make it easy for the reader to navigate, both for entire webpages and within individual components. They are larger than the regular text and create a clear contrast with it. There are 3 levels of Hero heading, 5 levels of general headers and 2 additional header levels, which are indicated simply by the letter H and the level number.
4
+
5
+ ## Overview
6
+
7
+ ### Specification
8
+
9
+ | | Weight | Font size, px | Line height, px | Letter spacing, % |
10
+ | --- | --- | --- | --- | --- |
11
+ | Superhero | Semibold | 142 | 142 | \-2 |
12
+ | Middlehero | Semibold | 92 | 92 | \-0.8 |
13
+ | Hero | Semibold | 72 | 72 | \-0.5 |
14
+ | H1 | Semibold | 43 | 49 | \-0.1 |
15
+ | H2 | Semibold | 35 | 42 | 0 |
16
+ | H3-plus | Semibold | 28 | 34 | 0 |
17
+ | H3 | Semibold | 20 | 28 | 0 |
18
+ | H4 | Semibold | 16 | 24 | 0 |
19
+ | H5 | Semibold | 13 | 20 | 0 |
20
+ | Overline | Semibold | 13 | 18 | 10 |
21
+
22
+ ### Usage and Examples
23
+
24
+ Hero headings (or Hero titles) are used for the main message on a page, such as the name of a product or service, or a call to action.
25
+
26
+ H1–H5 headings are used to separate text content semantically, and they are also used in most components where there are at least 2 text styles.
27
+
28
+ ### Adaptivity
29
+
30
+ The font-size and line-height values for the different screen breakpoints
31
+
32
+ | | Desktop | Tablet (≤ 1000px) | Mobile (≤ 640px) |
33
+ | --- | --- | --- | --- |
34
+ | Superhero | 142/142 | 92/92 | 58/62 |
35
+ | Middlehero | 92/92 | ← | 58/62 |
36
+ | Hero | 72/72 | ← | 42/50 |
37
+ | H1 | 43/49 | ← | 35/39 |
38
+ | H2 | 35/42 | ← | 28/32 |
39
+ | H3-plus | 28/34 | ← | 20/28 |
40
+ | H3 | 20/28 | ← | ← |
41
+ | H4 | 16/24 | ← | ← |
42
+ | H5 | 13/20 | ← | ← |
43
+ | Overline | 13/18 | ← | ← |
44
+
45
+ ### Recommendations
46
+
47
+ Keep your headlines short. Long headlines can be difficult for readers to process at a glance, making it hard for them to tell quickly whether the page’s content is right for them. Long headlines also make the page look “heavier”. Localization is also a concern, since titles may become longer in translation, so an already long title may become too unwieldy.
48
+
49
+ For the most part, only the Hard style is used for headers. The exception is the disabled state for some components. Changing the preset parameters of the text styles is not recommended.
50
+
51
+ The use of too many headers on a text page creates a lot of visual noise and can be an indication that the content does not have a clear structure. If your page has a lot of headers, try reorganizing it so there are no more than 4 levels of headers (including Hero headings). This may require significant revision, but it will be worth it when your content is streamlined and accessible.
52
+
53
+ Avoid using formatting – such as italics, bold, or changes in font color – to highlight elements within a headline. Headlines work best when they present a unified message without distractions.
54
+
55
+ Do not use right or center alignment for headlines. The center alignment of Hero titles is still present on some jetbrains.com pages, but the new version of the design system aligns headlines to the left edge.
56
+
57
+ When multiple headlines follow each other, they should each be distinct enough that they don't conflict with each other in terms of emphasis. Strings of headlines can be disrupted by adding plain text, subtitles, and images.
58
+
59
+ ## API
60
+
61
+ ### textCn helper examples
62
+
63
+ For raw `textCn` to work correctly in the dark theme, you have to specify `--rs-theme-dark: 1` CSS variable for the target element or above. If you don't use the `--rs-theme-dark` CSS variable, please refer to the [useTextStyles method](#usetextstyles-hook-examples).
64
+
65
+ ```tsx
66
+ import { textCn } from '@rescui/typography';
67
+
68
+ render(<span className={textCn('rs-hero')}>This is Hero heading</span>);
69
+ ```
70
+
71
+ ### useTextStyles hook examples
72
+
73
+ If you use [`ThemeContext`](/utils/ui-contexts/#themecontext) to manage the theme of your application, you should use `useTextStyles` hook.
74
+
75
+ ```tsx
76
+ import { useTextStyles } from '@rescui/typography';
77
+
78
+ const MyReactComponent = () => {
79
+ const textCn = useTextStyles();
80
+ return <span className={textCn('rs-hero')}>This is Hero heading</span>;
81
+ };
82
+ render(<MyReactComponent />);
83
+ ```
84
+
85
+ ### Dark theme example
86
+
87
+ Use `--rs-theme-dark` CSS variable to set dark theme for `textCn` helper.
88
+
89
+ ```tsx
90
+ import { createTextCn } from '@rescui/typography';
91
+
92
+ const textCn = createTextCn('dark');
93
+
94
+ render(
95
+ <div
96
+ style={{
97
+ background: 'var(--rs-color-black)',
98
+ padding: 16,
99
+ '--rs-theme-dark': 1
100
+ }}
101
+ >
102
+ <span className={textCn('rs-hero')}>This is Hero heading</span>
103
+ </div>
104
+ );
105
+ ```
@@ -0,0 +1,150 @@
1
+ # Links
2
+
3
+ RescUI supports link that allow user to navigate between content and web pages.
4
+
5
+ ## Overview
6
+
7
+ ### Usage and Examples
8
+
9
+ Links are used to direct the reader to internal pages on the same site or to external sources.
10
+
11
+ ##### Text links
12
+
13
+ There are 2 modes for links in text: Classic and Rock. You can add links to text blocks, descriptions, subtitles, titles, and tables.
14
+
15
+ Classic text linkRock text link
16
+
17
+ ##### Standalone links
18
+
19
+ You can use standalone links in cards after text blocks. They are typically used inside components, such as cards, but they can also be used in small lists (4–6 items).
20
+
21
+ Standalone link
22
+
23
+ ##### Clear links
24
+
25
+ Use clear links in navigation blocks, such as side menus, menus, and footers. You can also use them in cards for secondary actions (if it doesn't detract from UX).
26
+
27
+ Clear link
28
+
29
+ Links to external sources are always marked with an arrow symbol ↗ and must be opened in a new tab.
30
+
31
+ ### Recommendations
32
+
33
+ The text in links should have the same font size as the surrounding text. Do not change the color or formatting of the text link, for example by using italics, caps, or bold.
34
+
35
+ Try not to use links inside the text of the card description, as doing so increases the chances that users will accidentally click on it or miss it. At the bottom of the card, there is a special non-clickable area for the main and secondary actions.
36
+
37
+ Most users are used to underlined text being a link, so don't apply this style to text as a decorative element.
38
+
39
+ When your text contains multiple important links, try putting them in separate lists so they are easier to find.
40
+
41
+ ## API
42
+
43
+ ### Use cases
44
+
45
+ - For content, tables, and headers, use `mode: "classic"` links.
46
+ - For pages or sections with other `rock` components, use the `mode: "rock"` link.
47
+ - If the link is the only text in the paragraph element, use the `mode: "standalone"` modifier. An example of that is a standalone `Learn more` link or a card footer.
48
+ - For links in lists, for example, in navigation menus, use `mode: "clear"` or `mode: "standalone"` links.
49
+
50
+ ### textCn helper examples
51
+
52
+ For raw `textCn` to work correctly in the dark theme, you have to specify `--rs-theme-dark: 1` CSS variable for the target element or above. If you don't use the `--rs-theme-dark` CSS variable, please refer to the [useTextStyles method](#usetextstyles-hook-examples).
53
+
54
+ Typography link should be a child of one of the base texts `textCn("rs-text-<1|2|3>")`.
55
+
56
+ ```tsx
57
+ import { textCn } from '@rescui/typography';
58
+
59
+ render(
60
+ <p className={textCn('rs-text-2')}>
61
+ <a className={textCn('rs-link')} href="#">
62
+ This is link
63
+ </a>
64
+ </p>
65
+ );
66
+ ```
67
+
68
+ ### useTextStyles hook examples
69
+
70
+ If you use [`ThemeContext`](/utils/ui-contexts/#themecontext) to manage the theme of your application, you should use `useTextStyles` hook.
71
+
72
+ Typography link should be a child of one of the base texts `textCn("rs-text-<1|2|3>")`.
73
+
74
+ ```tsx
75
+ import { useTextStyles } from '@rescui/typography';
76
+
77
+ const MyReactComponent = () => {
78
+ const textCn = useTextStyles();
79
+ return (
80
+ <p className={textCn('rs-text-2')}>
81
+ <a className={textCn('rs-link')} href="#">
82
+ This is link
83
+ </a>
84
+ </p>
85
+ );
86
+ };
87
+
88
+ render(<MyReactComponent />);
89
+ ```
90
+
91
+ ### Dark theme example
92
+
93
+ ```tsx
94
+ import { textCn } from '@rescui/typography';
95
+
96
+ render(
97
+ <div
98
+ style={{
99
+ background: 'var(--rs-color-black)',
100
+ padding: 16,
101
+ '--rs-theme-dark': 1
102
+ }}
103
+ >
104
+ <p className={textCn('rs-text-1')}>
105
+ <a className={textCn('rs-link', { hardness: 'hard' })} href="#">
106
+ This is always dark theme link
107
+ </a>
108
+ </p>
109
+ </div>
110
+ );
111
+ ```
112
+
113
+ ### Standalone external link example
114
+
115
+ ```tsx
116
+ import { textCn } from '@rescui/typography';
117
+
118
+ render(
119
+ <p className={textCn('rs-text-2')}>
120
+ <a
121
+ className={textCn('rs-link', { external: true, mode: 'standalone' })}
122
+ href="#"
123
+ >
124
+ This is external standalone link
125
+ </a>
126
+ </p>
127
+ );
128
+ ```
129
+
130
+ ### Clear link example
131
+
132
+ ```tsx
133
+ import { textCn } from '@rescui/typography';
134
+
135
+ render(
136
+ <p className={textCn('rs-text-3')}>
137
+ <a className={textCn('rs-link', { mode: 'clear' })} href="#">
138
+ Clear link
139
+ </a>
140
+ </p>
141
+ );
142
+ ```
143
+
144
+ ### Parameters
145
+
146
+ | Name | Type | Default | Description |
147
+ | --- | --- | --- | --- |
148
+ | `external` | boolean | `false` | |
149
+ | `hardness` | "average" \| "hard" \| "pale" | `"null"` | |
150
+ | `mode` | "classic" \| "rock" \| "clear" \| "standalone" | `"classic"` | |
@@ -0,0 +1,145 @@
1
+ # Text Lists
2
+
3
+ With RescUI, you have the ability to arrange text in numbered and bulleted lists.
4
+
5
+ ## Overview
6
+
7
+ ### Usage and Examples
8
+
9
+ Lists are most commonly used to make content easy for readers to parse quickly. They can be used everywhere – both in solid text and in components, such as buy-cards.
10
+
11
+ Use a bulleted list when the order of the nested items is not important to the content. Numbered lists are generally needed to describe a sequence of actions or to enumerate items.
12
+
13
+ ### Recommendations
14
+
15
+ Avoid nesting items within lists, and take special care not to have more than more than 2 levels.
16
+
17
+ The markers for list items must be consistent. Don’t use different types of markers for items at the same level in a list, or for different lists in the same context. Also, using custom markers is not recommended for this list type. It is better to use a special component for this instead.
18
+
19
+ Don't put long lists inside box-components, as doing so may make them appear overly long. Limit yourself to the main benefits, the rest can be hidden in a tooltip or put separately out.
20
+
21
+ Do not adjust the spacing between list items, or between one marker and the text.
22
+
23
+ ## API
24
+
25
+ ### Usage variants
26
+
27
+ Typography lists should be mixed with one of base texts `textCn("rs-text-<1|2|3>")`.
28
+
29
+ ```jsx
30
+ <>
31
+ <ul className={`${textCn('rs-ul')} ${textCn('rs-text-1')}`}>
32
+ <li>Item</li>
33
+ </ul>
34
+
35
+ <ol className={`${textCn('rs-ol')} ${textCn('rs-text-2')}`}>
36
+ <li>Item</li>
37
+ </ol>
38
+ </>
39
+ ```
40
+
41
+ or
42
+
43
+ ```jsx
44
+ <div className={textCn('rs-text-2')}>
45
+ <ul className={textCn('rs-ul')}>
46
+ <li>Item</li>
47
+ </ul>
48
+ </div>
49
+ ```
50
+
51
+ ### textCn helper examples
52
+
53
+ ```tsx
54
+ import { textCn } from '@rescui/typography';
55
+
56
+ render(
57
+ <ul className={`${textCn('rs-text-2')} ${textCn('rs-ul')}`}>
58
+ <li>Item 1</li>
59
+ <li>Item 2</li>
60
+ </ul>
61
+ );
62
+ ```
63
+
64
+ ### Change default offset
65
+
66
+ ```tsx
67
+ import { textCn } from '@rescui/typography';
68
+
69
+ render(
70
+ <ul
71
+ className={`${textCn('rs-text-2')} ${textCn('rs-ul', {
72
+ offsetItems: 12
73
+ })}`}
74
+ >
75
+ <li>Item 1</li>
76
+ <li>Item 2</li>
77
+ <li>Item 3</li>
78
+ </ul>
79
+ );
80
+ ```
81
+
82
+ ### Compact mode
83
+
84
+ ```tsx
85
+ import { textCn } from '@rescui/typography';
86
+
87
+ render(
88
+ <ul
89
+ className={`${textCn('rs-text-2')} ${textCn('rs-ul', { compact: true })}`}
90
+ >
91
+ <li>Item 1</li>
92
+ <li>Item 2</li>
93
+ <li>Item 3</li>
94
+ </ul>
95
+ );
96
+ ```
97
+
98
+ ### Ordered list
99
+
100
+ ```tsx
101
+ import { textCn } from '@rescui/typography';
102
+
103
+ render(
104
+ <ol className={`${textCn('rs-text-2')} ${textCn('rs-ol')}`}>
105
+ <li>Item 1</li>
106
+ <li>Item 2</li>
107
+ <li>Item 3</li>
108
+ </ol>
109
+ );
110
+ ```
111
+
112
+ ### Set upper-alpha for the counter
113
+
114
+ ```tsx
115
+ import { textCn } from '@rescui/typography';
116
+
117
+ render(
118
+ <ol
119
+ className={`${textCn('rs-text-2')} ${textCn('rs-ol', {
120
+ alpha: 'upper'
121
+ })}`}
122
+ >
123
+ <li>Item 1</li>
124
+ <li>Item 2</li>
125
+ <li>Item 3</li>
126
+ </ol>
127
+ );
128
+ ```
129
+
130
+ ### Parameters
131
+
132
+ #### Ordered list
133
+
134
+ | Name | Type | Default | Description |
135
+ | --- | --- | --- | --- |
136
+ | `alpha` | "lower" \| "upper" | `null` | |
137
+ | `offsetItems` | 8 \| 12 \| 16 \| 24 \| 4 | | |
138
+ | `compact` | boolean | `false` | |
139
+
140
+ #### Unordered list
141
+
142
+ | Name | Type | Default | Description |
143
+ | --- | --- | --- | --- |
144
+ | `offsetItems` | 8 \| 12 \| 16 \| 24 \| 4 | | |
145
+ | `compact` | boolean | `false` | |