We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3a2dc0e + 0930ebe commit 25e15f7Copy full SHA for 25e15f7
.changeset/proud-phones-call.md
@@ -0,0 +1,5 @@
1
+---
2
+'@compai/css-gui': patch
3
4
+
5
+Add repeat keywords to count
packages/gui/src/components/schemas/grid.tsx
@@ -29,14 +29,19 @@ const trackSize = joinSchemas([
29
functionSchema('fit-content', lengthPercentage()),
30
])
31
32
+const repeatTrackCount = joinSchemas([
33
+ integer({ defaultValue: 3 }),
34
+ keyword(['auto-fit', 'auto-fill']),
35
+])
36
37
const trackList = joinSchemas(
38
[
39
trackSize,
40
functionSchema(
41
'repeat',
42
objectSchema({
43
fields: {
- count: integer({ defaultValue: 3 }),
44
+ count: repeatTrackCount,
45
trackList: listSchema({ itemSchema: trackSize, separator: ' ' }),
46
},
47
separator: ', ',
0 commit comments