1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
use *;
/// A key/value detail grid laid out in columns.
///
/// Renders a `c_euv_descriptions` grid holding one `c_euv_descriptions_item`
/// cell per entry, each split into a `c_euv_descriptions_label` line and a
/// `c_euv_descriptions_value` line. The column count is not a class but a
/// CSS custom property: the grid rule reads
/// `repeat(var(--descriptions-columns, 1), minmax(0, 1fr))`, so the
/// component writes `--descriptions-columns` onto the grid element through
/// the inline `style:` attribute. A column count of zero falls back to a
/// single column, since a zero repeat count is not a valid grid track.
///
/// # Arguments
///
/// - `VirtualNode<EuvDescriptionsProps>` - The props node containing the entries and the column count.
///
/// # Returns
///
/// - `VirtualNode` - The descriptions grid virtual DOM tree.
/// Renders one grid cell: the label line over the value line.
///
/// # Arguments
///
/// - `EuvDescriptionsItem` - The entry to render, consumed.
///
/// # Returns
///
/// - `VirtualNode` - The grid cell virtual DOM tree.