Skip to content

Modules

GroupOption

Bases: TypedDict

A group option for a checkbox group.

Source code in src/routelit_mantine/builder.py
 7
 8
 9
10
11
12
13
class GroupOption(TypedDict):
    """
    A group option for a checkbox group.
    """

    group: str
    items: list[str]

MTTab

Bases: TypedDict

A tab for a tablist.

Source code in src/routelit_mantine/builder.py
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
class MTTab(TypedDict, total=False):
    """
    A tab for a tablist.
    """

    value: str
    label: Optional[str]
    color: Optional[str]
    left_section: Optional[RouteLitElement]
    right_section: Optional[RouteLitElement]
    size: Optional[Union[str, int]]
    keep_mounted: Optional[bool]
    children: Optional[str]  # For internal use
    leftSection: Optional[RouteLitElement]  # For internal use
    rightSection: Optional[RouteLitElement]  # For internal use

RLBuilder

Bases: RouteLitBuilder

A builder for a RouteLit application. This Builder template serves as example on how to create a RouteLit custom components.

Source code in src/routelit_mantine/builder.py
  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
  63
  64
  65
  66
  67
  68
  69
  70
  71
  72
  73
  74
  75
  76
  77
  78
  79
  80
  81
  82
  83
  84
  85
  86
  87
  88
  89
  90
  91
  92
  93
  94
  95
  96
  97
  98
  99
 100
 101
 102
 103
 104
 105
 106
 107
 108
 109
 110
 111
 112
 113
 114
 115
 116
 117
 118
 119
 120
 121
 122
 123
 124
 125
 126
 127
 128
 129
 130
 131
 132
 133
 134
 135
 136
 137
 138
 139
 140
 141
 142
 143
 144
 145
 146
 147
 148
 149
 150
 151
 152
 153
 154
 155
 156
 157
 158
 159
 160
 161
 162
 163
 164
 165
 166
 167
 168
 169
 170
 171
 172
 173
 174
 175
 176
 177
 178
 179
 180
 181
 182
 183
 184
 185
 186
 187
 188
 189
 190
 191
 192
 193
 194
 195
 196
 197
 198
 199
 200
 201
 202
 203
 204
 205
 206
 207
 208
 209
 210
 211
 212
 213
 214
 215
 216
 217
 218
 219
 220
 221
 222
 223
 224
 225
 226
 227
 228
 229
 230
 231
 232
 233
 234
 235
 236
 237
 238
 239
 240
 241
 242
 243
 244
 245
 246
 247
 248
 249
 250
 251
 252
 253
 254
 255
 256
 257
 258
 259
 260
 261
 262
 263
 264
 265
 266
 267
 268
 269
 270
 271
 272
 273
 274
 275
 276
 277
 278
 279
 280
 281
 282
 283
 284
 285
 286
 287
 288
 289
 290
 291
 292
 293
 294
 295
 296
 297
 298
 299
 300
 301
 302
 303
 304
 305
 306
 307
 308
 309
 310
 311
 312
 313
 314
 315
 316
 317
 318
 319
 320
 321
 322
 323
 324
 325
 326
 327
 328
 329
 330
 331
 332
 333
 334
 335
 336
 337
 338
 339
 340
 341
 342
 343
 344
 345
 346
 347
 348
 349
 350
 351
 352
 353
 354
 355
 356
 357
 358
 359
 360
 361
 362
 363
 364
 365
 366
 367
 368
 369
 370
 371
 372
 373
 374
 375
 376
 377
 378
 379
 380
 381
 382
 383
 384
 385
 386
 387
 388
 389
 390
 391
 392
 393
 394
 395
 396
 397
 398
 399
 400
 401
 402
 403
 404
 405
 406
 407
 408
 409
 410
 411
 412
 413
 414
 415
 416
 417
 418
 419
 420
 421
 422
 423
 424
 425
 426
 427
 428
 429
 430
 431
 432
 433
 434
 435
 436
 437
 438
 439
 440
 441
 442
 443
 444
 445
 446
 447
 448
 449
 450
 451
 452
 453
 454
 455
 456
 457
 458
 459
 460
 461
 462
 463
 464
 465
 466
 467
 468
 469
 470
 471
 472
 473
 474
 475
 476
 477
 478
 479
 480
 481
 482
 483
 484
 485
 486
 487
 488
 489
 490
 491
 492
 493
 494
 495
 496
 497
 498
 499
 500
 501
 502
 503
 504
 505
 506
 507
 508
 509
 510
 511
 512
 513
 514
 515
 516
 517
 518
 519
 520
 521
 522
 523
 524
 525
 526
 527
 528
 529
 530
 531
 532
 533
 534
 535
 536
 537
 538
 539
 540
 541
 542
 543
 544
 545
 546
 547
 548
 549
 550
 551
 552
 553
 554
 555
 556
 557
 558
 559
 560
 561
 562
 563
 564
 565
 566
 567
 568
 569
 570
 571
 572
 573
 574
 575
 576
 577
 578
 579
 580
 581
 582
 583
 584
 585
 586
 587
 588
 589
 590
 591
 592
 593
 594
 595
 596
 597
 598
 599
 600
 601
 602
 603
 604
 605
 606
 607
 608
 609
 610
 611
 612
 613
 614
 615
 616
 617
 618
 619
 620
 621
 622
 623
 624
 625
 626
 627
 628
 629
 630
 631
 632
 633
 634
 635
 636
 637
 638
 639
 640
 641
 642
 643
 644
 645
 646
 647
 648
 649
 650
 651
 652
 653
 654
 655
 656
 657
 658
 659
 660
 661
 662
 663
 664
 665
 666
 667
 668
 669
 670
 671
 672
 673
 674
 675
 676
 677
 678
 679
 680
 681
 682
 683
 684
 685
 686
 687
 688
 689
 690
 691
 692
 693
 694
 695
 696
 697
 698
 699
 700
 701
 702
 703
 704
 705
 706
 707
 708
 709
 710
 711
 712
 713
 714
 715
 716
 717
 718
 719
 720
 721
 722
 723
 724
 725
 726
 727
 728
 729
 730
 731
 732
 733
 734
 735
 736
 737
 738
 739
 740
 741
 742
 743
 744
 745
 746
 747
 748
 749
 750
 751
 752
 753
 754
 755
 756
 757
 758
 759
 760
 761
 762
 763
 764
 765
 766
 767
 768
 769
 770
 771
 772
 773
 774
 775
 776
 777
 778
 779
 780
 781
 782
 783
 784
 785
 786
 787
 788
 789
 790
 791
 792
 793
 794
 795
 796
 797
 798
 799
 800
 801
 802
 803
 804
 805
 806
 807
 808
 809
 810
 811
 812
 813
 814
 815
 816
 817
 818
 819
 820
 821
 822
 823
 824
 825
 826
 827
 828
 829
 830
 831
 832
 833
 834
 835
 836
 837
 838
 839
 840
 841
 842
 843
 844
 845
 846
 847
 848
 849
 850
 851
 852
 853
 854
 855
 856
 857
 858
 859
 860
 861
 862
 863
 864
 865
 866
 867
 868
 869
 870
 871
 872
 873
 874
 875
 876
 877
 878
 879
 880
 881
 882
 883
 884
 885
 886
 887
 888
 889
 890
 891
 892
 893
 894
 895
 896
 897
 898
 899
 900
 901
 902
 903
 904
 905
 906
 907
 908
 909
 910
 911
 912
 913
 914
 915
 916
 917
 918
 919
 920
 921
 922
 923
 924
 925
 926
 927
 928
 929
 930
 931
 932
 933
 934
 935
 936
 937
 938
 939
 940
 941
 942
 943
 944
 945
 946
 947
 948
 949
 950
 951
 952
 953
 954
 955
 956
 957
 958
 959
 960
 961
 962
 963
 964
 965
 966
 967
 968
 969
 970
 971
 972
 973
 974
 975
 976
 977
 978
 979
 980
 981
 982
 983
 984
 985
 986
 987
 988
 989
 990
 991
 992
 993
 994
 995
 996
 997
 998
 999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350
4351
4352
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506
4507
4508
4509
4510
4511
4512
4513
4514
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534
4535
4536
4537
4538
4539
4540
4541
4542
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555
4556
4557
4558
4559
4560
4561
4562
4563
4564
4565
4566
4567
4568
4569
4570
4571
4572
4573
4574
4575
4576
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597
4598
4599
4600
4601
4602
4603
4604
4605
4606
4607
4608
4609
4610
4611
4612
4613
4614
4615
4616
4617
4618
4619
4620
4621
4622
4623
4624
4625
4626
4627
4628
4629
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640
4641
4642
4643
4644
4645
4646
4647
4648
4649
4650
4651
4652
4653
4654
4655
4656
4657
4658
4659
4660
4661
4662
4663
4664
4665
4666
4667
4668
4669
4670
4671
4672
4673
4674
4675
4676
4677
4678
4679
4680
4681
4682
4683
4684
4685
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722
4723
4724
4725
4726
4727
4728
4729
4730
4731
4732
4733
4734
4735
4736
4737
4738
4739
4740
4741
4742
4743
4744
4745
4746
4747
4748
4749
4750
4751
4752
4753
4754
4755
4756
4757
4758
4759
4760
4761
4762
4763
4764
4765
4766
4767
4768
4769
4770
4771
4772
4773
4774
4775
4776
4777
4778
4779
4780
4781
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793
4794
4795
4796
4797
4798
4799
4800
4801
4802
4803
4804
4805
4806
4807
4808
4809
4810
4811
4812
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842
4843
4844
4845
4846
4847
4848
4849
4850
4851
4852
4853
4854
4855
4856
4857
4858
4859
4860
4861
4862
4863
4864
4865
4866
4867
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579
5580
5581
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
class RLBuilder(RouteLitBuilder):
    """
    A builder for a RouteLit application.
    This Builder template serves as example on how to create a RouteLit custom components.
    """

    static_assets_targets: ClassVar[list[AssetTarget]] = [
        {
            "package_name": "routelit_mantine",
            "path": "static",
        }
    ]

    def _init_root(self) -> "RLBuilder":
        new_element = self._create_element(
            name="provider",
            key="provider",
            props={
                "defaultColorScheme": "auto",
                "theme": {
                    "primaryColor": "orange",
                },
            },
            virtual=True,
        )
        return cast(RLBuilder, self._build_nested_builder(new_element))

    def _init_app_shell(self) -> "RLBuilder":
        new_element = self._create_element(
            name="appshell",
            key="__appshell__",
            props={},
            virtual=True,
        )
        return cast(RLBuilder, self._build_nested_builder(new_element))

    def _init_navbar(self) -> "RLBuilder":
        new_element = self._create_element(
            name="navbar",
            key="__navbar__",
            props={},
            virtual=True,
        )
        return cast(RLBuilder, self._build_nested_builder(new_element))

    def _init_main(self) -> "RLBuilder":
        new_element = self._create_element(
            name="main",
            key="__main__",
            props={},
            virtual=True,
        )
        return cast(RLBuilder, self._build_nested_builder(new_element))

    def _on_init(self) -> None:
        self._root = self._init_root()
        with self._root:
            self._app_shell = self._init_app_shell()
            with self._app_shell:
                self._navbar = self._init_navbar()
                self._main = self._init_main()
        self._parent_element = self._main._parent_element
        self.active_child_builder = self._main

    def set_provider_props(self, theme: dict[str, Any], **kwargs: Any) -> None:
        """
        Set the provider props.

        Args:
            theme (dict[str, Any]): The theme to set.
            kwargs: Additional props to set.
        """
        self._root.root_element.props.update(kwargs)
        self._root.root_element.props["theme"] = theme

    def set_app_shell_props(
        self,
        title: Optional[str] = None,
        logo: Optional[str] = None,
        navbar_props: Optional[dict[str, Any]] = None,
        **kwargs: Any,
    ) -> None:
        """
        Set the app shell props.

        Args:
            title (Optional[str]): The title of the app shell.
            logo (Optional[str]): The logo of the app shell.
            navbar_props (Optional[dict[str, Any]]): The props of the navbar.
            kwargs: Additional props to set.
        """
        self._app_shell.root_element.props.update(kwargs)
        self._app_shell.root_element.props["title"] = title
        self._app_shell.root_element.props["logo"] = logo
        self._app_shell.root_element.props["navbarProps"] = navbar_props

    @property
    def sidebar(self) -> "RLBuilder":
        """
        Get the sidebar builder.

        Returns:
            RLBuilder: The sidebar builder.

        Example:
        ```python
        with ui.sidebar:
            ui.subheader("Sidebar")

        # or

        ui.sidebar.subheader("Sidebar")
        ```
        """
        return self._navbar

    def container(  # type: ignore[override]
        self,
        *,
        fluid: bool = False,
        key: Optional[str] = None,
        size: Optional[str] = None,
        **kwargs: Any,
    ) -> "RLBuilder":
        """
        Create a container.

        Args:
            fluid (bool): Whether the container is fluid.
            key (Optional[str]): The key of the container.
            size (Optional[str]): The size of the container.
            kwargs: Additional props to set.

        Returns:
            RLBuilder: The container builder.

        Example:
        ```python
        with ui.container(fluid=True, size="xl", bg="var(--mantine-color-blue-light)"):
            ui.text("Hello World")
        """
        new_element = self._create_element(
            key=key or self._new_text_id("container"),
            name="container",
            props={"fluid": fluid, "size": size, **kwargs},
        )
        return cast(RLBuilder, self._build_nested_builder(new_element))

    def flex(  # type: ignore[override]
        self,
        *,
        align: Optional[str] = None,
        column_gap: Optional[str] = None,
        direction: Optional[str] = None,
        gap: Optional[str] = None,
        justify: Optional[str] = None,
        key: Optional[str] = None,
        row_gap: Optional[str] = None,
        wrap: Optional[str] = None,
        **kwargs: Any,
    ) -> "RLBuilder":
        """
        Create a flex.

        Args:
            align (Optional[str]): The alignment of the flex.
            column_gap (Optional[str]): The gap between columns.
            direction (Optional[str]): The direction of the flex.
            gap (Optional[str]): The gap between items.
            justify (Optional[str]): The justification of the flex.
            key (Optional[str]): The key of the flex.
            row_gap (Optional[str]): The gap between rows.
            wrap (Optional[str]): The wrapping of the flex.
            kwargs: Additional props to set.

        Returns:
            RLBuilder: The flex builder.
        """
        new_element = self._create_element(
            key=key or self._new_text_id("flex"),
            name="flex",
            props={
                "align": align,
                "columnGap": column_gap,
                "direction": direction,
                "gap": gap,
                "justify": justify,
                "rowGap": row_gap,
                "wrap": wrap,
                **kwargs,
            },
        )
        return cast(RLBuilder, self._build_nested_builder(new_element))

    def grid(
        self,
        *,
        align: Optional[str] = None,
        breakpoints: Optional[dict] = None,
        columns: Optional[int] = None,
        grow: Optional[bool] = None,
        gutter: Optional[dict] = None,
        justify: Optional[str] = None,
        key: Optional[str] = None,
        overflow: Optional[str] = None,
        query_type: Optional[Literal["media", "container"]] = None,
        **kwargs: Any,
    ) -> "RLBuilder":
        """
        Create a responsive grid container.

        Args:
            align (Optional[str]): Vertical alignment of grid content.
            breakpoints (Optional[dict]): Responsive column settings per breakpoint.
            columns (Optional[int]): Number of columns.
            grow (Optional[bool]): Whether columns should grow to fill available space.
            gutter (Optional[dict]): Spacing configuration between columns/rows.
            justify (Optional[str]): Horizontal justification of grid content.
            key (Optional[str]): Explicit element key.
            overflow (Optional[str]): Overflow behavior.
            query_type (Optional[Literal["media", "container"]]): Type of responsive query to use.
            kwargs: Additional props to set.

        Returns:
            RLBuilder: A nested builder scoped to the created grid element.
        """
        new_element = self._create_element(
            key=key or self._new_text_id("grid"),
            name="grid",
            props={
                "align": align,
                "breakpoints": breakpoints,
                "columns": columns,
                "grow": grow,
                "gutter": gutter,
                "justify": justify,
                "overflow": overflow,
                "type": query_type,
                **kwargs,
            },
        )
        return cast(RLBuilder, self._build_nested_builder(new_element))

    def grid_col(
        self,
        *,
        key: Optional[str] = None,
        offset: Optional[int] = None,
        order: Optional[int] = None,
        span: Optional[int] = None,
        **kwargs: Any,
    ) -> "RLBuilder":
        """
        Add a grid column inside the nearest grid.

        Args:
            key (Optional[str]): Explicit element key.
            offset (Optional[int]): Column offset.
            order (Optional[int]): Column order.
            span (Optional[int]): How many columns the item spans.
            kwargs: Additional props to set.

        Returns:
            RLBuilder: A nested builder scoped to the grid column element.
        """
        new_element = self._create_element(
            key=key or self._new_text_id("gridcol"),
            name="gridcol",
            props={
                "offset": offset,
                "order": order,
                "span": span,
                **kwargs,
            },
        )
        return cast(RLBuilder, self._build_nested_builder(new_element))

    def group(
        self,
        *,
        align: Optional[str] = None,
        gap: Optional[str] = None,
        grow: Optional[bool] = None,
        justify: Optional[str] = None,
        key: Optional[str] = None,
        prevent_grow_overflow: Optional[bool] = None,
        wrap: Optional[str] = None,
        **kwargs: Any,
    ) -> "RLBuilder":
        """
        Arrange children horizontally with spacing and alignment.

        Args:
            align (Optional[str]): Vertical alignment of items.
            gap (Optional[str]): Spacing between items.
            grow (Optional[bool]): Allow items to grow to fill the row.
            justify (Optional[str]): Horizontal alignment of items.
            key (Optional[str]): Explicit element key.
            prevent_grow_overflow (Optional[bool]): Prevent overflow when items grow.
            wrap (Optional[str]): Wrapping behavior.
            kwargs: Additional props to set.

        Returns:
            RLBuilder: A nested builder scoped to the group element.
        """
        new_element = self._create_element(
            key=key or self._new_text_id("group"),
            name="group",
            props={
                "align": align,
                "gap": gap,
                "grow": grow,
                "justify": justify,
                "preventGrowOverflow": prevent_grow_overflow,
                "wrap": wrap,
                **kwargs,
            },
        )
        return cast(RLBuilder, self._build_nested_builder(new_element))

    def simple_grid(
        self,
        *,
        cols: Optional[int] = None,
        key: Optional[str] = None,
        query_type: Optional[Literal["media", "container"]] = None,
        spacing: Optional[str] = None,
        vertical_spacing: Optional[str] = None,
        **kwargs: Any,
    ) -> "RLBuilder":
        """
        Create a simplified responsive grid.

        Args:
            cols (Optional[int]): Number of columns.
            key (Optional[str]): Explicit element key.
            query_type (Optional[Literal["media", "container"]]): Responsive query type.
            spacing (Optional[str]): Spacing between items.
            vertical_spacing (Optional[str]): Vertical spacing between rows.
            kwargs: Additional props to set.

        Returns:
            RLBuilder: A nested builder scoped to the simple grid element.
        """
        new_element = self._create_element(
            key=key or self._new_text_id("simplegrid"),
            name="simplegrid",
            props={
                "cols": cols,
                "spacing": spacing,
                "type": query_type,
                "verticalSpacing": vertical_spacing,
                **kwargs,
            },
        )
        return cast(RLBuilder, self._build_nested_builder(new_element))

    def space(
        self,
        *,
        h: Optional[str] = None,
        key: Optional[str] = None,
        v: Optional[str] = None,
        **kwargs: Any,
    ) -> None:
        """
        Insert vertical and/or horizontal space.

        Args:
            h (Optional[str]): Horizontal space size (e.g., CSS length).
            key (Optional[str]): Explicit element key.
            v (Optional[str]): Vertical space size (e.g., CSS length).
            kwargs: Additional props to set.
        """
        self._create_element(
            key=key or self._new_text_id("space"),
            name="space",
            props={"h": h, "v": v, **kwargs},
        )

    def stack(
        self,
        *,
        align: Optional[str] = None,
        gap: Optional[str] = None,
        justify: Optional[str] = None,
        key: Optional[str] = None,
        **kwargs: Any,
    ) -> "RLBuilder":
        """
        Stack children vertically with spacing and alignment.

        Args:
            align (Optional[str]): Horizontal alignment of items.
            gap (Optional[str]): Spacing between items.
            justify (Optional[str]): Vertical alignment of items.
            key (Optional[str]): Explicit element key.
            kwargs: Additional props to set.

        Returns:
            RLBuilder: A nested builder scoped to the stack element.
        """
        new_element = self._create_element(
            key=key or self._new_text_id("stack"),
            name="stack",
            props={
                "align": align,
                "gap": gap,
                "justify": justify,
                **kwargs,
            },
        )
        return cast(RLBuilder, self._build_nested_builder(new_element))

    def checkbox(
        self,
        label: str,
        *,
        auto_contrast: Optional[bool] = None,
        checked: bool = False,
        color: Optional[str] = None,
        description: Optional[str] = None,
        disabled: Optional[bool] = None,
        error: Optional[str] = None,
        icon_color: Optional[str] = None,
        key: Optional[str] = None,
        label_position: Optional[Literal["left", "right"]] = None,
        name: Optional[str] = None,
        on_change: Optional[Callable[[bool], None]] = None,
        radius: Optional[Union[Literal["xs", "sm", "md", "lg", "xl"], int]] = None,
        size: Optional[Literal["xs", "sm", "md", "lg", "xl"]] = None,
        **kwargs: Any,
    ) -> bool:
        """
        Boolean input rendered as a single checkbox.

        Args:
            label (str): Checkbox label.
            auto_contrast (Optional[bool]): Improve contrast automatically.
            checked (bool): Initial checked state.
            color (Optional[str]): Accent color.
            description (Optional[str]): Helper text under the label.
            disabled (Optional[bool]): Disable input interaction.
            error (Optional[str]): Error message.
            icon_color (Optional[str]): Color of the check icon.
            key (Optional[str]): Explicit element key.
            label_position (Optional[Literal["left", "right"]]): Label position.
            name (Optional[str]): Input name.
            on_change (Optional[Callable[[bool], None]]): Change handler.
            radius (Optional[Union[Literal["xs", "sm", "md", "lg", "xl"], int]]): Corner radius.
            size (Optional[Literal["xs", "sm", "md", "lg", "xl"]]): Control size.
            kwargs: Additional props to set.

        Returns:
            bool: Current value.
        """
        return self._x_checkbox(
            "checkbox",
            key or self._new_widget_id("checkbox", label),
            autoContrast=auto_contrast,
            checked=checked,
            color=color,
            description=description,
            disabled=disabled,
            error=error,
            iconColor=icon_color,
            label=label,
            labelPosition=label_position,
            name=name,
            on_change=on_change,
            radius=radius,
            size=size,
            **kwargs,
        )

    def checkbox_group(  # type: ignore[override]
        self,
        label: str,
        options: list[Union[RLOption, str]],
        *,
        description: Optional[str] = None,
        error: Optional[str] = None,
        format_func: Optional[Callable[[Any], str]] = None,
        group_props: Optional[dict[str, Any]] = None,
        key: Optional[str] = None,
        on_change: Optional[Callable[[list[str]], None]] = None,
        radius: Optional[Union[str, int]] = None,
        read_only: Optional[bool] = None,
        required: Optional[bool] = None,
        size: Optional[str] = None,
        value: Optional[list[str]] = None,
        with_asterisk: Optional[bool] = None,
        **kwargs: Any,
    ) -> list[str]:
        """
        Multiple selection using a group of checkboxes.

        Args:
            label (str): Group label.
            options (list[Union[RLOption, str]]): Available options.
            description (Optional[str]): Helper text under the label.
            error (Optional[str]): Error message.
            format_func (Optional[Callable[[Any], str]]): Map option value to label.
            group_props (Optional[dict[str, Any]]): Extra props for the group container.
            key (Optional[str]): Explicit element key.
            on_change (Optional[Callable[[list[str]], None]]): Change handler.
            radius (Optional[Union[str, int]]): Corner radius.
            read_only (Optional[bool]): Read-only state.
            required (Optional[bool]): Mark as required.
            size (Optional[str]): Control size.
            value (Optional[list[str]]): Selected values.
            with_asterisk (Optional[bool]): Show required asterisk.
            kwargs: Additional props to set.

        Returns:
            list[str]: Selected values.
        """
        return self._x_checkbox_group(
            "checkboxgroup",
            key or self._new_widget_id("checkbox-group", label),
            description=description,
            error=error,
            format_func=format_func,
            groupProps=group_props,
            label=label,
            on_change=on_change,
            options=options,  # type: ignore[arg-type]
            radius=radius,
            readOnly=read_only,
            required=required,
            size=size,
            value=value,
            withAsterisk=with_asterisk,
            **kwargs,
        )

    def chip_group(
        self,
        key: str,
        options: list[Union[RLOption, str]],
        *,
        format_func: Optional[Callable[[Any], str]] = None,
        group_props: Optional[dict[str, Any]] = None,
        multiple: bool = False,
        on_change: Optional[Callable[[Union[str, list[str]]], None]] = None,
        value: Optional[Union[str, list[str]]] = None,
        **kwargs: Any,
    ) -> Union[str, list[str]]:
        """
        Single or multiple selection using chip components.

        Args:
            key (str): Explicit element key.
            options (list[Union[RLOption, str]]): Available options.
            format_func (Optional[Callable[[Any], str]]): Map option value to label.
            group_props (Optional[dict[str, Any]]): Extra props for the group container.
            multiple (bool): Enable multiple selection.
            on_change (Optional[Callable[[Union[str, list[str]]], None]]): Change handler.
            value (Optional[Union[str, list[str]]]): Selected value(s).
            kwargs: Additional props to set.

        Returns:
            Union[str, list[str]]: Selected value(s).
        """
        if multiple:
            return self._x_checkbox_group(
                "chipgroup",
                key,
                format_func=format_func,
                groupProps=group_props,
                multiple=True,
                on_change=on_change,
                options=options,  # type: ignore[arg-type]
                value=value,  # type: ignore[arg-type]
                **kwargs,
            )
        return self._x_radio_select(  # type: ignore[no-any-return]
            "chipgroup",
            key,
            format_func=format_func,
            groupProps=group_props,
            multiple=False,
            on_change=on_change,
            options=options,  # type: ignore[arg-type]
            value=value,
            **kwargs,
        )

    def chip(
        self,
        label: str,
        *,
        auto_contrast: Optional[bool] = None,
        checked: bool = False,
        color: Optional[str] = None,
        disabled: Optional[bool] = None,
        icon: Optional[RouteLitElement] = None,
        input_type: Optional[Literal["checkbox", "radio"]] = None,
        key: Optional[str] = None,
        on_change: Optional[Callable[[bool], None]] = None,
        radius: Optional[Union[Literal["xs", "sm", "md", "lg", "xl"], int]] = None,
        size: Optional[Literal["xs", "sm", "md", "lg", "xl"]] = None,
        **kwargs: Any,
    ) -> bool:
        """
        Toggleable chip, can behave as checkbox or radio.

        Args:
            label (str): Chip label.
            auto_contrast (Optional[bool]): Improve contrast automatically.
            checked (bool): Initial checked state.
            color (Optional[str]): Accent color.
            disabled (Optional[bool]): Disable interaction.
            icon (Optional[RouteLitElement]): Left section icon.
            input_type (Optional[Literal["checkbox", "radio"]]): Behavior of the chip.
            key (Optional[str]): Explicit element key.
            on_change (Optional[Callable[[bool], None]]): Change handler.
            radius (Optional[Union[Literal["xs", "sm", "md", "lg", "xl"], int]]): Corner radius.
            size (Optional[Literal["xs", "sm", "md", "lg", "xl"]]): Control size.
            kwargs: Additional props to set.

        Returns:
            bool: Current value.
        """
        return self._x_checkbox(
            "chip",
            key or self._new_widget_id("chip", label),
            autoContrast=auto_contrast,
            checked=checked,
            children=label,
            color=color,
            disabled=disabled,
            icon=icon,
            on_change=on_change,
            radius=radius,
            size=size,
            type=input_type,
            **kwargs,
        )

    def color_input(
        self,
        label: str,
        *,
        description: Optional[str] = None,
        disabled: Optional[bool] = None,
        error: Optional[str] = None,
        fix_on_blur: Optional[bool] = None,
        input_size: Optional[str] = None,
        key: Optional[str] = None,
        on_change: Optional[Callable[[str], None]] = None,
        radius: Optional[str] = None,
        required: Optional[bool] = None,
        size: Optional[str] = None,
        swatches: Optional[list[str]] = None,
        value: Optional[str] = None,
        with_asterisk: Optional[bool] = None,
        with_picker: Optional[bool] = None,
        with_preview: Optional[bool] = None,
        **kwargs: Any,
    ) -> str:
        """
        Text input specialized for color values with a color picker.

        Args:
            label (str): Field label.
            description (Optional[str]): Helper text under the label.
            disabled (Optional[bool]): Disable input interaction.
            error (Optional[str]): Error message.
            fix_on_blur (Optional[bool]): Normalize value on blur.
            input_size (Optional[str]): Control size.
            key (Optional[str]): Explicit element key.
            on_change (Optional[Callable[[str], None]]): Change handler.
            radius (Optional[str]): Corner radius.
            required (Optional[bool]): Mark as required.
            size (Optional[str]): Control size.
            swatches (Optional[list[str]]): Preset color swatches.
            value (Optional[str]): Current value.
            with_asterisk (Optional[bool]): Show required asterisk.
            with_picker (Optional[bool]): Show color picker.
            with_preview (Optional[bool]): Show color preview chip.
            kwargs: Additional props to set.

        Returns:
            str: Current value.
        """
        return self._x_input(  # type: ignore[return-value]
            "colorinput",
            key or self._new_widget_id("colorinput", label),
            description=description,
            disabled=disabled,
            error=error,
            fixOnBlur=fix_on_blur,
            inputSize=input_size,
            label=label,
            on_change=on_change,
            radius=radius,
            required=required,
            size=size,
            swatches=swatches,
            value=value,
            withAsterisk=with_asterisk,
            withPicker=with_picker,
            withPreview=with_preview,
            **kwargs,
        )

    def fieldset(
        self,
        legend: str,
        *,
        disabled: Optional[bool] = None,
        key: Optional[str] = None,
        radius: Optional[str] = None,
        **kwargs: Any,
    ) -> "RLBuilder":
        """
        Group a set of related form fields under a legend.

        Args:
            legend (str): Legend text.
            disabled (Optional[bool]): Disable all nested inputs.
            key (Optional[str]): Explicit element key.
            radius (Optional[str]): Corner radius.
            kwargs: Additional props to set.

        Returns:
            RLBuilder: A nested builder scoped to the fieldset element.
        """
        element = self._create_element(
            key=key or self._new_widget_id("fieldset", legend),
            name="fieldset",
            props={
                "disabled": disabled,
                "legend": legend,
                "radius": radius,
                **kwargs,
            },
        )
        return cast(RLBuilder, self._build_nested_builder(element))

    def text_input(
        self,
        label: str,
        *,
        description: Optional[str] = None,
        disabled: Optional[bool] = None,
        error: Optional[str] = None,
        key: Optional[str] = None,
        left_section: Optional[RouteLitElement] = None,
        left_section_props: Optional[dict[str, Any]] = None,
        left_section_width: Optional[str] = None,
        on_change: Optional[Callable[[str], None]] = None,
        required: Optional[bool] = None,
        right_section: Optional[RouteLitElement] = None,
        right_section_props: Optional[dict[str, Any]] = None,
        right_section_width: Optional[str] = None,
        size: Optional[str] = None,
        value: Optional[str] = None,
        with_asterisk: Optional[bool] = None,
        **kwargs: Any,
    ) -> str:
        """
        Single-line text input.

        Args:
            label (str): Field label.
            description (Optional[str]): Helper text under the label.
            disabled (Optional[bool]): Disable input interaction.
            error (Optional[str]): Error message.
            key (Optional[str]): Explicit element key.
            left_section (Optional[RouteLitElement]): Left adornment.
            left_section_props (Optional[dict[str, Any]]): Left adornment props.
            left_section_width (Optional[str]): Left adornment width.
            on_change (Optional[Callable[[str], None]]): Change handler.
            required (Optional[bool]): Mark as required.
            right_section (Optional[RouteLitElement]): Right adornment.
            right_section_props (Optional[dict[str, Any]]): Right adornment props.
            right_section_width (Optional[str]): Right adornment width.
            size (Optional[str]): Control size.
            value (Optional[str]): Current value.
            with_asterisk (Optional[bool]): Show required asterisk.
            kwargs: Additional props to set.

        Returns:
            str: Current value.
        """
        return cast(
            str,
            self._x_input(
                "textinput",
                key or self._new_widget_id("textinput", label),
                description=description,
                disabled=disabled,
                error=error,
                label=label,
                leftSection=left_section,
                leftSectionProps=left_section_props,
                leftSectionWidth=left_section_width,
                on_change=on_change,
                required=required,
                rightSection=right_section,
                rightSectionProps=right_section_props,
                rightSectionWidth=right_section_width,
                size=size,
                value=value,
                withAsterisk=with_asterisk,
                **kwargs,
            ),
        )

    def native_select(
        self,
        label: str,
        options: list[Union[RLOption, str]],
        *,
        description: Optional[str] = None,
        disabled: Optional[bool] = None,
        error: Optional[str] = None,
        format_func: Optional[Callable[[Any], str]] = None,
        key: Optional[str] = None,
        left_section: Optional[RouteLitElement] = None,
        left_section_props: Optional[dict[str, Any]] = None,
        left_section_width: Optional[str] = None,
        on_change: Optional[Callable[[str], None]] = None,
        radius: Optional[str] = None,
        required: Optional[bool] = None,
        right_section: Optional[RouteLitElement] = None,
        right_section_props: Optional[dict[str, Any]] = None,
        right_section_width: Optional[str] = None,
        size: Optional[str] = None,
        value: Optional[str] = None,
        with_asterisk: Optional[bool] = None,
        **kwargs: Any,
    ) -> str:
        """
        Native HTML select input.

        Args:
            label (str): Field label.
            options (list[Union[RLOption, str]]): Available options.
            description (Optional[str]): Helper text under the label.
            disabled (Optional[bool]): Disable input interaction.
            error (Optional[str]): Error message.
            format_func (Optional[Callable[[Any], str]]): Map option value to label.
            key (Optional[str]): Explicit element key.
            left_section (Optional[RouteLitElement]): Left adornment.
            left_section_props (Optional[dict[str, Any]]): Left adornment props.
            left_section_width (Optional[str]): Left adornment width.
            on_change (Optional[Callable[[str], None]]): Change handler.
            radius (Optional[str]): Corner radius.
            required (Optional[bool]): Mark as required.
            right_section (Optional[RouteLitElement]): Right adornment.
            right_section_props (Optional[dict[str, Any]]): Right adornment props.
            right_section_width (Optional[str]): Right adornment width.
            size (Optional[str]): Control size.
            value (Optional[str]): Current value.
            with_asterisk (Optional[bool]): Show required asterisk.
            kwargs: Additional props to set.

        Returns:
            str: Current value.
        """
        return cast(
            str,
            self._x_radio_select(
                "nativeselect",
                key or self._new_widget_id("native-select", label),
                description=description,
                disabled=disabled,
                error=error,
                format_func=format_func,
                label=label,
                leftSection=left_section,
                leftSectionProps=left_section_props,
                leftSectionWidth=left_section_width,
                on_change=on_change,
                options=options,  # type: ignore[arg-type]
                options_attr="data",
                radius=radius,
                required=required,
                rightSection=right_section,
                rightSectionProps=right_section_props,
                rightSectionWidth=right_section_width,
                size=size,
                value=value,
                withAsterisk=with_asterisk,
                **kwargs,
            ),
        )

    def number_input(
        self,
        label: str,
        *,
        allow_decimal: Optional[bool] = None,
        allow_leading_zeros: Optional[bool] = None,
        allow_negative: Optional[bool] = None,
        allowed_decimal_separators: Optional[list[str]] = None,
        decimal_scale: Optional[int] = None,
        decimal_separator: Optional[str] = None,
        description: Optional[str] = None,
        disabled: Optional[bool] = None,
        error: Optional[str] = None,
        hide_controls: Optional[bool] = None,
        key: Optional[str] = None,
        left_section: Optional[RouteLitElement] = None,
        left_section_props: Optional[dict[str, Any]] = None,
        left_section_width: Optional[str] = None,
        max_value: Optional[Union[float, int]] = None,
        min_value: Optional[Union[float, int]] = None,
        on_change: Optional[Callable[[Union[float, int]], None]] = None,
        parser: Callable[[str], Union[float, int]] = float,
        required: Optional[bool] = None,
        right_section: Optional[RouteLitElement] = None,
        right_section_props: Optional[dict[str, Any]] = None,
        right_section_width: Optional[str] = None,
        size: Optional[str] = None,
        step: Optional[Union[float, int]] = None,
        value: Optional[Union[float, int]] = None,
        with_asterisk: Optional[bool] = None,
        **kwargs: Any,
    ) -> Union[float, int]:
        """
        Numeric input with formatting and controls.

        Args:
            label (str): Field label.
            allow_decimal (Optional[bool]): Allow decimal values.
            allow_leading_zeros (Optional[bool]): Permit leading zeros.
            allow_negative (Optional[bool]): Permit negative values.
            allowed_decimal_separators (Optional[list[str]]): Additional decimal separators.
            decimal_scale (Optional[int]): Maximum number of decimal places.
            decimal_separator (Optional[str]): Decimal separator to use.
            description (Optional[str]): Helper text under the label.
            disabled (Optional[bool]): Disable input interaction.
            error (Optional[str]): Error message.
            hide_controls (Optional[bool]): Hide increment/decrement controls.
            key (Optional[str]): Explicit element key.
            left_section (Optional[RouteLitElement]): Left adornment.
            left_section_props (Optional[dict[str, Any]]): Left adornment props.
            left_section_width (Optional[str]): Left adornment width.
            max_value (Optional[Union[float, int]]): Maximum value.
            min_value (Optional[Union[float, int]]): Minimum value.
            on_change (Optional[Callable[[Union[float, int]], None]]): Change handler.
            parser (Callable[[str], Union[float, int]]): Parser for the returned value.
            required (Optional[bool]): Mark as required.
            right_section (Optional[RouteLitElement]): Right adornment.
            right_section_props (Optional[dict[str, Any]]): Right adornment props.
            right_section_width (Optional[str]): Right adornment width.
            size (Optional[str]): Control size.
            step (Optional[Union[float, int]]): Step of increment/decrement.
            value (Optional[Union[float, int]]): Current value.
            with_asterisk (Optional[bool]): Show required asterisk.
            kwargs: Additional props to set.

        Returns:
            Union[float, int]: Current value parsed by the provided parser.
        """
        return parser(
            cast(
                str,
                self._x_input(
                    "numberinput",
                    key or self._new_widget_id("numberinput", label),
                    allowDecimal=allow_decimal,
                    allowLeadingZeros=allow_leading_zeros,
                    allowNegative=allow_negative,
                    allowedDecimalSeparators=allowed_decimal_separators,
                    decimalScale=decimal_scale,
                    decimalSeparator=decimal_separator,
                    description=description,
                    disabled=disabled,
                    error=error,
                    hideControls=hide_controls,
                    label=label,
                    leftSection=left_section,
                    leftSectionProps=left_section_props,
                    leftSectionWidth=left_section_width,
                    max=max_value,
                    min=min_value,
                    on_change=on_change,
                    required=required,
                    rightSection=right_section,
                    rightSectionProps=right_section_props,
                    rightSectionWidth=right_section_width,
                    size=size,
                    step=step,
                    value=value,
                    withAsterisk=with_asterisk,
                    **kwargs,
                ),
            )
        )

    def password_input(
        self,
        label: str,
        *,
        description: Optional[str] = None,
        disabled: Optional[bool] = None,
        error: Optional[str] = None,
        input_size: Optional[str] = None,
        key: Optional[str] = None,
        on_change: Optional[Callable[[str], None]] = None,
        radius: Optional[str] = None,
        required: Optional[bool] = None,
        size: Optional[str] = None,
        value: Optional[str] = None,
        visible: Optional[bool] = None,
        with_asterisk: Optional[bool] = None,
        **kwargs: Any,
    ) -> Optional[str]:
        """
        Password input with visibility toggle.

        Args:
            label (str): Field label.
            description (Optional[str]): Helper text under the label.
            disabled (Optional[bool]): Disable input interaction.
            error (Optional[str]): Error message.
            input_size (Optional[str]): Control size.
            key (Optional[str]): Explicit element key.
            on_change (Optional[Callable[[str], None]]): Change handler.
            radius (Optional[str]): Corner radius.
            required (Optional[bool]): Mark as required.
            size (Optional[str]): Control size.
            value (Optional[str]): Current value.
            visible (Optional[bool]): Force visibility of the password.
            with_asterisk (Optional[bool]): Show required asterisk.
            kwargs: Additional props to set.

        Returns:
            Optional[str]: Current value.
        """
        return self._x_input(
            "passwordinput",
            key or self._new_widget_id("passwordinput", label),
            description=description,
            disabled=disabled,
            error=error,
            inputSize=input_size,
            label=label,
            on_change=on_change,
            radius=radius,
            required=required,
            size=size,
            value=value,
            visible=visible,
            withAsterisk=with_asterisk,
            **kwargs,
        )

    def radio_group(
        self,
        label: str,
        options: list[Union[RLOption, str]],
        *,
        description: Optional[str] = None,
        disabled: Optional[bool] = None,
        error: Optional[str] = None,
        format_func: Optional[Callable[[Any], str]] = None,
        group_props: Optional[dict[str, Any]] = None,
        input_size: Optional[str] = None,
        key: Optional[str] = None,
        on_change: Optional[Callable[[str], None]] = None,
        read_only: Optional[bool] = None,
        required: Optional[bool] = None,
        size: Optional[str] = None,
        value: Optional[str] = None,
        with_asterisk: Optional[bool] = None,
        **kwargs: Any,
    ) -> Optional[str]:
        """
        Single selection using radio inputs.

        Args:
            label (str): Group label.
            options (list[Union[RLOption, str]]): Available options.
            description (Optional[str]): Helper text under the label.
            disabled (Optional[bool]): Disable interaction.
            error (Optional[str]): Error message.
            format_func (Optional[Callable[[Any], str]]): Map option value to label.
            group_props (Optional[dict[str, Any]]): Extra props for the group container.
            input_size (Optional[str]): Control size.
            key (Optional[str]): Explicit element key.
            on_change (Optional[Callable[[str], None]]): Change handler.
            read_only (Optional[bool]): Read-only state.
            required (Optional[bool]): Mark as required.
            size (Optional[str]): Control size.
            value (Optional[str]): Selected value.
            with_asterisk (Optional[bool]): Show required asterisk.
            kwargs: Additional props to set.

        Returns:
            Optional[str]: Selected value.
        """
        return cast(
            Optional[str],
            self._x_radio_select(
                "radiogroup",
                key or self._new_widget_id("radio-group", label),
                description=description,
                disabled=disabled,
                error=error,
                format_func=format_func,
                group_props=group_props,
                inputSize=input_size,
                label=label,
                on_change=on_change,
                options=options,  # type: ignore[arg-type]
                readOnly=read_only,
                required=required,
                size=size,
                value=value,
                withAsterisk=with_asterisk,
                **kwargs,
            ),
        )

    def range_slider(
        self,
        label: str,
        *,
        color: Optional[str] = None,
        disabled: Optional[bool] = None,
        inverted: Optional[bool] = None,
        key: Optional[str] = None,
        label_always_on: Optional[bool] = None,
        marks: Optional[list[RLOption]] = None,
        max_range: Optional[float] = None,
        max_value: Optional[float] = None,
        min_value: Optional[float] = None,
        on_change: Optional[Callable[[tuple[float, float]], None]] = None,
        precision: Optional[int] = None,
        step: Optional[float] = None,
        value: Optional[tuple[float, float]] = None,
        **kwargs: Any,
    ) -> tuple[float, float]:
        """
        Slider that allows selecting a numeric range.

        Args:
            label (str): Field label.
            color (Optional[str]): Accent color.
            disabled (Optional[bool]): Disable interaction.
            inverted (Optional[bool]): Invert direction.
            key (Optional[str]): Explicit element key.
            label_always_on (Optional[bool]): Always show labels above thumbs.
            marks (Optional[list[RLOption]]): Marks along the slider.
            max_range (Optional[float]): Max distance between thumbs.
            max_value (Optional[float]): Maximum value.
            min_value (Optional[float]): Minimum value.
            on_change (Optional[Callable[[tuple[float, float]], None]]): Change handler.
            precision (Optional[int]): Decimal precision.
            step (Optional[float]): Step size.
            value (Optional[tuple[float, float]]): Current value.
            kwargs: Additional props to set.

        Returns:
            tuple[float, float]: Current range values.
        """
        return cast(
            tuple[float, float],
            self._x_input(
                "rangeslider",
                key or self._new_widget_id("rangeslider", label),
                color=color,
                disabled=disabled,
                inverted=inverted,
                label=label,
                labelAlwaysOn=label_always_on,
                marks=marks,
                max=max_value,
                maxRange=max_range,
                min=min_value,
                on_change=on_change,
                precision=precision,
                step=step,
                value=value,
                **kwargs,
            ),
        )

    def rating(
        self,
        key: str,
        *,
        color: Optional[str] = None,
        count: Optional[int] = None,
        fractions: Optional[int] = None,
        on_change: Optional[Callable[[int], None]] = None,
        read_only: Optional[bool] = None,
        size: Optional[str] = None,
        parser: Callable[[Any], Union[float, int]] = float,
        value: Optional[int] = None,
        **kwargs: Any,
    ) -> float:
        """
        Star (or icon) rating input.

        Args:
            key (str): Explicit element key.
            color (Optional[str]): Accent color.
            count (Optional[int]): Number of icons.
            fractions (Optional[int]): Fractional steps per icon.
            on_change (Optional[Callable[[int], None]]): Change handler.
            read_only (Optional[bool]): Read-only state.
            size (Optional[str]): Control size.
            parser (Callable[[Any], Union[float, int]]): Parser for the returned value.
            value (Optional[int]): Current value.
            kwargs: Additional props to set.

        Returns:
            float: Current value parsed by the provided parser.
        """
        return parser(
            self._x_input(
                "rating",
                key,
                color=color,
                count=count,
                fractions=fractions,
                on_change=on_change,
                readOnly=read_only,
                size=size,
                value=value,
                **kwargs,
            )
        )

    def segmented_control(
        self,
        key: str,
        options: list[Union[RLOption, str]],
        *,
        auto_contrast: Optional[bool] = None,
        color: Optional[str] = None,
        disabled: Optional[bool] = None,
        format_func: Optional[Callable[[Any], str]] = None,
        full_width: Optional[bool] = None,
        on_change: Optional[Callable[[str], None]] = None,
        orientation: Optional[Literal["horizontal", "vertical"]] = None,
        radius: Optional[str] = None,
        read_only: Optional[bool] = None,
        size: Optional[str] = None,
        transition_duration: Optional[int] = None,
        value: Optional[str] = None,
        with_items_borders: Optional[bool] = None,
        **kwargs: Any,
    ) -> str:
        """
        Segmented control for single selection among options.

        Args:
            key (str): Explicit element key.
            options (list[Union[RLOption, str]]): Available options.
            auto_contrast (Optional[bool]): Improve contrast automatically.
            color (Optional[str]): Accent color.
            disabled (Optional[bool]): Disable interaction.
            format_func (Optional[Callable[[Any], str]]): Map option value to label.
            full_width (Optional[bool]): Make control take full width.
            on_change (Optional[Callable[[str], None]]): Change handler.
            orientation (Optional[Literal["horizontal", "vertical"]]): Orientation.
            radius (Optional[str]): Corner radius.
            read_only (Optional[bool]): Read-only state.
            size (Optional[str]): Control size.
            transition_duration (Optional[int]): Selection animation duration.
            value (Optional[str]): Selected value.
            with_items_borders (Optional[bool]): Show borders between items.
            kwargs: Additional props to set.

        Returns:
            str: Selected value.
        """
        value = self._x_radio_select(
            "segmentedcontrol",
            key,
            autoContrast=auto_contrast,
            color=color,
            disabled=disabled,
            format_func=format_func,
            fullWidth=full_width,
            on_change=on_change,
            options=options,  # type: ignore[arg-type]
            options_attr="data",
            orientation=orientation,
            radius=radius,
            readOnly=read_only,
            size=size,
            transitionDuration=transition_duration,
            value=value,
            withItemsBorders=with_items_borders,
            **kwargs,
        )
        if value is None and options and len(options) > 0:
            return options[0]["value"] if isinstance(options[0], dict) else options[0]
        return value

    def slider(
        self,
        label: str,
        *,
        disabled: Optional[bool] = None,
        inverted: Optional[bool] = None,
        key: Optional[str] = None,
        label_always_on: Optional[bool] = None,
        marks: Optional[list[RLOption]] = None,
        max_value: Optional[float] = None,
        min_value: Optional[float] = None,
        on_change: Optional[Callable[[float], None]] = None,
        precision: Optional[int] = None,
        restrict_to_marks: Optional[bool] = None,
        show_label_on_hover: Optional[bool] = None,
        size: Optional[str] = None,
        step: Optional[float] = None,
        parser: Callable[[Any], Union[float, int]] = float,
        thumb_label: Optional[str] = None,
        thumb_size: Optional[str] = None,
        value: Optional[float] = None,
        **kwargs: Any,
    ) -> Union[float, int]:
        """
        Single-value slider input.

        Args:
            label (str): Field label.
            disabled (Optional[bool]): Disable interaction.
            inverted (Optional[bool]): Invert direction.
            key (Optional[str]): Explicit element key.
            label_always_on (Optional[bool]): Always show label above thumb.
            marks (Optional[list[RLOption]]): Marks along the slider.
            max_value (Optional[float]): Maximum value.
            min_value (Optional[float]): Minimum value.
            on_change (Optional[Callable[[float], None]]): Change handler.
            precision (Optional[int]): Decimal precision.
            restrict_to_marks (Optional[bool]): Only allow values at marks.
            show_label_on_hover (Optional[bool]): Show label when hovering.
            size (Optional[str]): Control size.
            step (Optional[float]): Step size.
            parser (Callable[[Any], Union[float, int]]): Parser for the returned value.
            thumb_label (Optional[str]): Label template for thumb.
            thumb_size (Optional[str]): Thumb size.
            value (Optional[float]): Current value.
            kwargs: Additional props to set.

        Returns:
            Union[float, int]: Current value parsed by the provided parser.
        """
        return parser(
            self._x_input(
                "slider",
                key or self._new_widget_id("slider", label),
                disabled=disabled,
                inverted=inverted,
                label=label,
                labelAlwaysOn=label_always_on,
                marks=marks,
                max=max_value,
                min=min_value,
                on_change=on_change,
                precision=precision,
                restrictToMarks=restrict_to_marks,
                showLabelOnHover=show_label_on_hover,
                size=size,
                step=step,
                thumbLabel=thumb_label,
                thumbSize=thumb_size,
                value=value,
                **kwargs,
            )
        )

    def switch(
        self,
        label: str,
        *,
        checked: bool = False,
        color: Optional[str] = None,
        description: Optional[str] = None,
        disabled: Optional[bool] = None,
        error: Optional[str] = None,
        key: Optional[str] = None,
        label_position: Optional[Literal["left", "right"]] = None,
        on_change: Optional[Callable[[bool], None]] = None,
        radius: Optional[str] = None,
        size: Optional[str] = None,
        thumb_icon: Optional[RouteLitElement] = None,
        with_thumb_indicator: Optional[bool] = None,
        **kwargs: Any,
    ) -> bool:
        """
        Boolean input rendered as a switch.

        Args:
            label (str): Field label.
            checked (bool): Initial checked state.
            color (Optional[str]): Accent color.
            description (Optional[str]): Helper text under the label.
            disabled (Optional[bool]): Disable interaction.
            error (Optional[str]): Error message.
            key (Optional[str]): Explicit element key.
            label_position (Optional[Literal["left", "right"]]): Label position.
            on_change (Optional[Callable[[bool], None]]): Change handler.
            radius (Optional[str]): Corner radius.
            size (Optional[str]): Control size.
            thumb_icon (Optional[RouteLitElement]): Icon inside the thumb.
            with_thumb_indicator (Optional[bool]): Show indicator inside the thumb.
            kwargs: Additional props to set.

        Returns:
            bool: Current value.
        """
        return self._x_checkbox(
            "switch",
            key or self._new_widget_id("switch", label),
            checked=checked,
            color=color,
            description=description,
            disabled=disabled,
            error=error,
            label=label,
            labelPosition=label_position,
            on_change=on_change,
            radius=radius,
            size=size,
            thumbIcon=thumb_icon,
            withThumbIndicator=with_thumb_indicator,
            **kwargs,
        )

    def switch_group(
        self,
        label: str,
        options: list[Union[RLOption, str]],
        *,
        description: Optional[str] = None,
        error: Optional[str] = None,
        format_func: Optional[Callable[[Any], str]] = None,
        group_props: Optional[dict[str, Any]] = None,
        key: Optional[str] = None,
        on_change: Optional[Callable[[list[str]], None]] = None,
        read_only: Optional[bool] = None,
        required: Optional[bool] = None,
        size: Optional[str] = None,
        value: Optional[list[str]] = None,
        with_asterisk: Optional[bool] = None,
        **kwargs: Any,
    ) -> list[str]:
        """
        Multiple selection using a group of switches.

        Args:
            label (str): Group label.
            options (list[Union[RLOption, str]]): Available options.
            description (Optional[str]): Helper text under the label.
            error (Optional[str]): Error message.
            format_func (Optional[Callable[[Any], str]]): Map option value to label.
            group_props (Optional[dict[str, Any]]): Extra props for the group container.
            key (Optional[str]): Explicit element key.
            on_change (Optional[Callable[[list[str]], None]]): Change handler.
            read_only (Optional[bool]): Read-only state.
            required (Optional[bool]): Mark as required.
            size (Optional[str]): Control size.
            value (Optional[list[str]]): Selected values.
            with_asterisk (Optional[bool]): Show required asterisk.
            kwargs: Additional props to set.

        Returns:
            list[str]: Selected values.
        """
        return self._x_checkbox_group(
            "switchgroup",
            key or self._new_widget_id("switch-group", label),
            description=description,
            error=error,
            format_func=format_func,
            groupProps=group_props,
            label=label,
            on_change=on_change,
            options=options,  # type: ignore[arg-type]
            readOnly=read_only,
            required=required,
            size=size,
            value=value,
            withAsterisk=with_asterisk,
            **kwargs,
        )

    def textarea(
        self,
        label: str,
        *,
        autosize: Optional[bool] = None,
        description: Optional[str] = None,
        disabled: Optional[bool] = None,
        error: Optional[str] = None,
        input_size: Optional[str] = None,
        key: Optional[str] = None,
        max_rows: Optional[int] = None,
        min_rows: Optional[int] = None,
        on_change: Optional[Callable[[str], None]] = None,
        radius: Optional[Union[str, int]] = None,
        required: Optional[bool] = None,
        resize: Optional[str] = None,
        value: Optional[str] = None,
        **kwargs: Any,
    ) -> Optional[str]:
        """
        Multi-line text input.

        Args:
            label (str): Field label.
            autosize (Optional[bool]): Grow/shrink to fit content.
            description (Optional[str]): Helper text under the label.
            disabled (Optional[bool]): Disable interaction.
            error (Optional[str]): Error message.
            input_size (Optional[str]): Control size.
            key (Optional[str]): Explicit element key.
            max_rows (Optional[int]): Maximum number of rows when autosizing.
            min_rows (Optional[int]): Minimum number of rows when autosizing.
            on_change (Optional[Callable[[str], None]]): Change handler.
            radius (Optional[Union[str, int]]): Corner radius.
            required (Optional[bool]): Mark as required.
            resize (Optional[str]): CSS resize behavior.
            value (Optional[str]): Current value.
            kwargs: Additional props to set.

        Returns:
            Optional[str]: Current value.
        """
        return self._x_input(
            "textarea",
            key or self._new_widget_id("textarea", label),
            autosize=autosize,
            description=description,
            disabled=disabled,
            error=error,
            inputSize=input_size,
            label=label,
            maxRows=max_rows,
            minRows=min_rows,
            on_change=on_change,
            radius=radius,
            required=required,
            resize=resize,
            value=value,
            **kwargs,
        )

    def autocomplete(
        self,
        label: str,
        data: list[Union[str, GroupOption]],
        *,
        auto_select_on_blur: Optional[bool] = None,
        clear_button_props: Optional[dict[str, Any]] = None,
        clearable: Optional[bool] = None,
        combobox_props: Optional[dict[str, Any]] = None,
        default_drowndown_open: Optional[bool] = None,
        description: Optional[str] = None,
        disabled: Optional[bool] = None,
        dropdown_opened: Optional[bool] = None,
        error: Optional[str] = None,
        key: Optional[str] = None,
        left_section: Optional[RouteLitElement] = None,
        left_section_props: Optional[dict[str, Any]] = None,
        left_section_width: Optional[str] = None,
        limit: Optional[int] = None,
        on_change: Optional[Callable[[str], None]] = None,
        radius: Optional[Union[str, int]] = None,
        required: Optional[bool] = None,
        right_section: Optional[RouteLitElement] = None,
        right_section_props: Optional[dict[str, Any]] = None,
        right_section_width: Optional[str] = None,
        size: Optional[str] = None,
        value: Optional[str] = None,
        with_asterisk: Optional[bool] = None,
        **kwargs: Any,
    ) -> Optional[str]:
        """
        Autocomplete text input with suggestions dropdown.

        Args:
            label (str): Field label.
            data (list[Union[str, GroupOption]]): Options and groups.
            auto_select_on_blur (Optional[bool]): Auto select highlighted option on blur.
            clear_button_props (Optional[dict[str, Any]]): Props for clear button.
            clearable (Optional[bool]): Enable clear button.
            combobox_props (Optional[dict[str, Any]]): Props for combobox.
            default_drowndown_open (Optional[bool]): Open dropdown by default.
            description (Optional[str]): Helper text under the label.
            disabled (Optional[bool]): Disable interaction.
            dropdown_opened (Optional[bool]): Control dropdown visibility.
            error (Optional[str]): Error message.
            key (Optional[str]): Explicit element key.
            left_section (Optional[RouteLitElement]): Left adornment.
            left_section_props (Optional[dict[str, Any]]): Left adornment props.
            left_section_width (Optional[str]): Left adornment width.
            limit (Optional[int]): Max number of options shown.
            on_change (Optional[Callable[[str], None]]): Change handler.
            radius (Optional[Union[str, int]]): Corner radius.
            required (Optional[bool]): Mark as required.
            right_section (Optional[RouteLitElement]): Right adornment.
            right_section_props (Optional[dict[str, Any]]): Right adornment props.
            right_section_width (Optional[str]): Right adornment width.
            size (Optional[str]): Control size.
            value (Optional[str]): Current value.
            with_asterisk (Optional[bool]): Show required asterisk.
            kwargs: Additional props to set.

        Returns:
            Optional[str]: Current value.
        """
        return self._x_input(
            "autocomplete",
            key or self._new_widget_id("autocomplete", label),
            autoSelectOnBlur=auto_select_on_blur,
            clearButtonProps=clear_button_props,
            clearable=clearable,
            comboboxProps=combobox_props,
            data=data,
            defaultDropdownOpen=default_drowndown_open,
            description=description,
            disabled=disabled,
            dropdownOpened=dropdown_opened,
            error=error,
            label=label,
            leftSection=left_section,
            leftSectionProps=left_section_props,
            leftSectionWidth=left_section_width,
            limit=limit,
            on_change=on_change,
            radius=radius,
            required=required,
            rightSection=right_section,
            rightSectionProps=right_section_props,
            rightSectionWidth=right_section_width,
            size=size,
            value=value,
            withAsterisk=with_asterisk,
            **kwargs,
        )

    def multiselect(
        self,
        label: str,
        data: list[Union[RLOption, str]],
        *,
        check_icon_position: Optional[Literal["left", "right"]] = None,
        chevron_color: Optional[str] = None,
        clear_button_props: Optional[dict[str, Any]] = None,
        clearable: Optional[bool] = None,
        combobox_props: Optional[dict[str, Any]] = None,
        default_dropdown_opened: Optional[bool] = None,
        default_search_value: Optional[str] = None,
        description: Optional[str] = None,
        disabled: Optional[bool] = None,
        dropdown_opened: Optional[bool] = None,
        error: Optional[str] = None,
        error_props: Optional[dict[str, Any]] = None,
        format_func: Optional[Callable[[Any], str]] = None,
        hidden_input_props: Optional[dict[str, Any]] = None,
        hidden_input_values_divider: Optional[str] = None,
        hide_picked_options: Optional[bool] = None,
        input_size: Optional[str] = None,
        input_wrapper_order: Optional[list[str]] = None,
        key: Optional[str] = None,
        label_props: Optional[dict[str, Any]] = None,
        left_section: Optional[RouteLitElement] = None,
        left_section_props: Optional[dict[str, Any]] = None,
        left_section_width: Optional[str] = None,
        limit: Optional[int] = None,
        max_dropdown_height: Optional[Union[str, int]] = None,
        max_values: Optional[int] = None,
        nothing_found_message: Optional[str] = None,
        on_change: Optional[Callable[[list[str]], None]] = None,
        radius: Optional[Union[str, int]] = None,
        required: Optional[bool] = None,
        right_section: Optional[RouteLitElement] = None,
        right_section_props: Optional[dict[str, Any]] = None,
        right_section_width: Optional[str] = None,
        scroll_area_props: Optional[dict[str, Any]] = None,
        search_value: Optional[str] = None,
        searchable: Optional[bool] = None,
        select_first_option_on_change: Optional[bool] = None,
        size: Optional[str] = None,
        value: Optional[list[str]] = None,
        with_asterisk: Optional[bool] = None,
        with_check_icon: Optional[bool] = None,
        with_error_styles: Optional[bool] = None,
        with_scroll_area: Optional[bool] = None,
        **kwargs: Any,
    ) -> list[str]:
        """
        Multi-select input with search and tags.

        Args:
            label (str): Field label.
            data (list[Union[RLOption, str]]): Available options.
            check_icon_position (Optional[Literal["left", "right"]]): Check icon position.
            chevron_color (Optional[str]): Chevron color.
            clear_button_props (Optional[dict[str, Any]]): Clear button props.
            clearable (Optional[bool]): Enable clear button.
            combobox_props (Optional[dict[str, Any]]): Combobox props.
            default_dropdown_opened (Optional[bool]): Open dropdown by default.
            default_search_value (Optional[str]): Initial search value.
            description (Optional[str]): Helper text under the label.
            disabled (Optional[bool]): Disable interaction.
            dropdown_opened (Optional[bool]): Control dropdown visibility.
            error (Optional[str]): Error message.
            error_props (Optional[dict[str, Any]]): Error message props.
            format_func (Optional[Callable[[Any], str]]): Map option value to label.
            hidden_input_props (Optional[dict[str, Any]]): Hidden input props.
            hidden_input_values_divider (Optional[str]): Divider for hidden input.
            hide_picked_options (Optional[bool]): Hide already selected options.
            input_size (Optional[str]): Control size.
            input_wrapper_order (Optional[list[str]]): Order of input wrapper parts.
            key (Optional[str]): Explicit element key.
            label_props (Optional[dict[str, Any]]): Label props.
            left_section (Optional[RouteLitElement]): Left adornment.
            left_section_props (Optional[dict[str, Any]]): Left adornment props.
            left_section_width (Optional[str]): Left adornment width.
            limit (Optional[int]): Max number of options shown.
            max_dropdown_height (Optional[Union[str, int]]): Max dropdown height.
            max_values (Optional[int]): Max number of selected values.
            nothing_found_message (Optional[str]): Message when search returns no results.
            on_change (Optional[Callable[[list[str]], None]]): Change handler.
            radius (Optional[Union[str, int]]): Corner radius.
            required (Optional[bool]): Mark as required.
            right_section (Optional[RouteLitElement]): Right adornment.
            right_section_props (Optional[dict[str, Any]]): Right adornment props.
            right_section_width (Optional[str]): Right adornment width.
            scroll_area_props (Optional[dict[str, Any]]): Scroll area props.
            search_value (Optional[str]): Current search value.
            searchable (Optional[bool]): Enable search.
            select_first_option_on_change (Optional[bool]): Auto select first option when changed.
            size (Optional[str]): Control size.
            value (Optional[list[str]]): Current value.
            with_asterisk (Optional[bool]): Show required asterisk.
            with_check_icon (Optional[bool]): Show check icon next to selected options.
            with_error_styles (Optional[bool]): Apply error styles.
            with_scroll_area (Optional[bool]): Wrap dropdown with scroll area.
            kwargs: Additional props to set.

        Returns:
            list[str]: Selected values.
        """
        return self._x_checkbox_group(
            "multiselect",
            key or self._new_widget_id("multiselect", label),
            checkIconPosition=check_icon_position,
            chevronColor=chevron_color,
            clearButtonProps=clear_button_props,
            clearable=clearable,
            comboboxProps=combobox_props,
            defaultDropdownOpened=default_dropdown_opened,
            defaultSearchValue=default_search_value,
            description=description,
            disabled=disabled,
            dropdownOpened=dropdown_opened,
            error=error,
            errorProps=error_props,
            format_func=format_func,
            hiddenInputProps=hidden_input_props,
            hiddenInputValuesDivider=hidden_input_values_divider,
            hidePickedOptions=hide_picked_options,
            inputSize=input_size,
            inputWrapperOrder=input_wrapper_order,
            label=label,
            labelProps=label_props,
            leftSection=left_section,
            leftSectionProps=left_section_props,
            leftSectionWidth=left_section_width,
            limit=limit,
            maxDropdownHeight=max_dropdown_height,
            maxValues=max_values,
            nothingFoundMessage=nothing_found_message,
            on_change=on_change,
            options=data,  # type: ignore[arg-type]
            options_attr="data",
            radius=radius,
            required=required,
            scrollAreaProps=scroll_area_props,
            rightSection=right_section,
            rightSectionProps=right_section_props,
            rightSectionWidth=right_section_width,
            searchValue=search_value,
            searchable=searchable,
            selectFirstOptionOnChange=select_first_option_on_change,
            size=size,
            value=value,
            withAsterisk=with_asterisk,
            withCheckIcon=with_check_icon,
            withErrorStyles=with_error_styles,
            withScrollArea=with_scroll_area,
            **kwargs,
        )

    def select(  # type: ignore[override]
        self,
        label: str,
        options: list[Union[RLOption, str]],
        *,
        allow_deselect: Optional[bool] = None,
        auto_select_on_blur: Optional[bool] = None,
        check_icon_position: Optional[Literal["left", "right"]] = None,
        chevron_color: Optional[str] = None,
        clearable: Optional[bool] = None,
        combobox_props: Optional[dict[str, Any]] = None,
        default_dropdown_opened: Optional[bool] = None,
        default_search_value: Optional[str] = None,
        description: Optional[str] = None,
        error: Optional[str] = None,
        format_func: Optional[Callable[[Any], str]] = None,
        hidden_input_props: Optional[dict[str, Any]] = None,
        input_size: Optional[str] = None,
        input_wrapper_order: Optional[list[str]] = None,
        key: Optional[str] = None,
        label_props: Optional[dict[str, Any]] = None,
        left_section: Optional[RouteLitElement] = None,
        left_section_props: Optional[dict[str, Any]] = None,
        left_section_width: Optional[str] = None,
        limit: Optional[int] = None,
        max_dropdown_height: Optional[Union[str, int]] = None,
        nothing_found_message: Optional[str] = None,
        on_change: Optional[Callable[[Any], None]] = None,
        pointer: Optional[bool] = None,
        radius: Optional[Union[str, int]] = None,
        required: Optional[bool] = None,
        scroll_area_props: Optional[dict[str, Any]] = None,
        right_section: Optional[RouteLitElement] = None,
        right_section_props: Optional[dict[str, Any]] = None,
        right_section_width: Optional[str] = None,
        size: Optional[str] = None,
        value: Optional[Any] = None,
        with_asterisk: Optional[bool] = None,
        with_error_styles: Optional[bool] = None,
        with_scroll_area: Optional[bool] = None,
        **kwargs: Any,
    ) -> Any:
        """
        Single-select input with search and advanced features.

        Args:
            label (str): Field label.
            options (list[Union[RLOption, str]]): Available options.
            allow_deselect (Optional[bool]): Allow clearing the selection.
            auto_select_on_blur (Optional[bool]): Auto select highlighted option on blur.
            check_icon_position (Optional[Literal["left", "right"]]): Check icon position.
            chevron_color (Optional[str]): Chevron color.
            clearable (Optional[bool]): Enable clear button.
            combobox_props (Optional[dict[str, Any]]): Combobox props.
            default_dropdown_opened (Optional[bool]): Open dropdown by default.
            default_search_value (Optional[str]): Initial search value.
            description (Optional[str]): Helper text under the label.
            error (Optional[str]): Error message.
            format_func (Optional[Callable[[Any], str]]): Map option value to label.
            hidden_input_props (Optional[dict[str, Any]]): Hidden input props.
            input_size (Optional[str]): Control size.
            input_wrapper_order (Optional[list[str]]): Order of input wrapper parts.
            key (Optional[str]): Explicit element key.
            label_props (Optional[dict[str, Any]]): Label props.
            left_section (Optional[RouteLitElement]): Left adornment.
            left_section_props (Optional[dict[str, Any]]): Left adornment props.
            left_section_width (Optional[str]): Left adornment width.
            limit (Optional[int]): Max number of options shown.
            max_dropdown_height (Optional[Union[str, int]]): Max dropdown height.
            nothing_found_message (Optional[str]): Message when search returns no results.
            on_change (Optional[Callable[[Any], None]]): Change handler.
            pointer (Optional[bool]): Use pointer cursor.
            radius (Optional[Union[str, int]]): Corner radius.
            required (Optional[bool]): Mark as required.
            scroll_area_props (Optional[dict[str, Any]]): Scroll area props.
            right_section (Optional[RouteLitElement]): Right adornment.
            right_section_props (Optional[dict[str, Any]]): Right adornment props.
            right_section_width (Optional[str]): Right adornment width.
            size (Optional[str]): Control size.
            value (Optional[Any]): Current value.
            with_asterisk (Optional[bool]): Show required asterisk.
            with_error_styles (Optional[bool]): Apply error styles.
            with_scroll_area (Optional[bool]): Wrap dropdown with scroll area.
            kwargs: Additional props to set.

        Returns:
            Any: Selected value.
        """
        return self._x_radio_select(
            "select",
            key or self._new_widget_id("select", label),
            options=options,  # type: ignore[arg-type]
            options_attr="data",
            value=value,
            on_change=on_change,
            format_func=format_func,
            label=label,
            allowDeselect=allow_deselect,
            autoSelectOnBlur=auto_select_on_blur,
            checkIconPosition=check_icon_position,
            chevronColor=chevron_color,
            clearable=clearable,
            comboboxProps=combobox_props,
            defaultDropdownOpened=default_dropdown_opened,
            defaultSearchValue=default_search_value,
            description=description,
            error=error,
            hiddenInputProps=hidden_input_props,
            inputSize=input_size,
            inputWrapperOrder=input_wrapper_order,
            labelProps=label_props,
            leftSection=left_section,
            leftSectionProps=left_section_props,
            leftSectionWidth=left_section_width,
            limit=limit,
            maxDropdownHeight=max_dropdown_height,
            nothingFoundMessage=nothing_found_message,
            pointer=pointer,
            radius=radius,
            rightSection=right_section,
            rightSectionProps=right_section_props,
            rightSectionWidth=right_section_width,
            required=required,
            scrollAreaProps=scroll_area_props,
            size=size,
            withAsterisk=with_asterisk,
            withErrorStyles=with_error_styles,
            withScrollArea=with_scroll_area,
            **kwargs,
        )

    def tags_input(
        self,
        label: str,
        data: list[Union[RLOption, GroupOption, str]],
        *,
        accept_value_on_blur: Optional[bool] = None,
        allow_duplicates: Optional[bool] = None,
        clear_button_props: Optional[dict[str, Any]] = None,
        clearable: Optional[bool] = None,
        combobox_props: Optional[dict[str, Any]] = None,
        default_dropdown_opened: Optional[bool] = None,
        default_search_value: Optional[str] = None,
        description: Optional[str] = None,
        description_props: Optional[dict[str, Any]] = None,
        disabled: Optional[bool] = None,
        dropdown_opened: Optional[bool] = None,
        error: Optional[str] = None,
        error_props: Optional[dict[str, Any]] = None,
        hidden_input_props: Optional[dict[str, Any]] = None,
        hidden_input_values_divider: Optional[str] = None,
        input_size: Optional[str] = None,
        input_wrapper_order: Optional[list[str]] = None,
        key: Optional[str] = None,
        label_props: Optional[dict[str, Any]] = None,
        left_section: Optional[RouteLitElement] = None,
        left_section_props: Optional[dict[str, Any]] = None,
        left_section_width: Optional[str] = None,
        limit: Optional[int] = None,
        max_dropdown_height: Optional[Union[str, int]] = None,
        max_tags: Optional[int] = None,
        on_change: Optional[Callable[[list[str]], None]] = None,
        pointer: Optional[bool] = None,
        radius: Optional[Union[str, int]] = None,
        required: Optional[bool] = None,
        right_section: Optional[str] = None,
        right_section_props: Optional[dict[str, Any]] = None,
        right_section_width: Optional[str] = None,
        scroll_area_props: Optional[dict[str, Any]] = None,
        search_value: Optional[str] = None,
        select_first_option_on_change: Optional[bool] = None,
        size: Optional[str] = None,
        split_chars: Optional[list[str]] = None,
        value: Optional[list[str]] = None,
        with_asterisk: Optional[bool] = None,
        with_error_styles: Optional[bool] = None,
        with_scroll_area: Optional[bool] = None,
        **kwargs: Any,
    ) -> list[str]:
        """
        Free-form tags input with autocomplete suggestions.

        Allows typing new tags and selecting from provided options. Supports grouping
        of options and various UI customizations.

        Args:
            label (str): Field label.
            data (list[Union[RLOption, GroupOption, str]]): Available options and/or groups.
            accept_value_on_blur (Optional[bool]): Add current value on blur.
            allow_duplicates (Optional[bool]): Allow duplicate tags.
            clear_button_props (Optional[dict[str, Any]]): Props for the clear button.
            clearable (Optional[bool]): Show clear button to remove all values.
            combobox_props (Optional[dict[str, Any]]): Props passed to the underlying combobox.
            default_dropdown_opened (Optional[bool]): Initial dropdown state.
            default_search_value (Optional[str]): Initial search query.
            description (Optional[str]): Helper text under the label.
            description_props (Optional[dict[str, Any]]): Props for the description element.
            disabled (Optional[bool]): Disable input interaction.
            dropdown_opened (Optional[bool]): Controlled dropdown open state.
            error (Optional[str]): Error message.
            error_props (Optional[dict[str, Any]]): Props for the error element.
            hidden_input_props (Optional[dict[str, Any]]): Props for the hidden form input.
            hidden_input_values_divider (Optional[str]): Divider for hidden input serialization.
            input_size (Optional[str]): Input size variant.
            input_wrapper_order (Optional[list[str]]): Order of input wrapper parts.
            key (Optional[str]): Explicit element key.
            label_props (Optional[dict[str, Any]]): Props for the label element.
            left_section (Optional[RouteLitElement]): Left section content.
            left_section_props (Optional[dict[str, Any]]): Props for the left section wrapper.
            left_section_width (Optional[str]): Width of the left section.
            limit (Optional[int]): Max number of items displayed in dropdown.
            max_dropdown_height (Optional[Union[str, int]]): Max height of the dropdown.
            max_tags (Optional[int]): Max number of tags that can be added.
            on_change (Optional[Callable[[list[str]], None]]): Change handler.
            pointer (Optional[bool]): Show pointer cursor on hover.
            radius (Optional[Union[str, int]]): Corner radius.
            required (Optional[bool]): Mark field as required.
            right_section (Optional[str]): Right section content.
            right_section_props (Optional[dict[str, Any]]): Props for the right section wrapper.
            right_section_width (Optional[str]): Width of the right section.
            scroll_area_props (Optional[dict[str, Any]]): Props for dropdown scroll area.
            search_value (Optional[str]): Controlled search query value.
            select_first_option_on_change (Optional[bool]): Auto-select first option on change.
            size (Optional[str]): Control size.
            split_chars (Optional[list[str]]): Characters that split input into tags.
            value (Optional[list[str]]): Current value (list of tags).
            with_asterisk (Optional[bool]): Show required asterisk.
            with_error_styles (Optional[bool]): Apply error styles when error is set.
            with_scroll_area (Optional[bool]): Wrap dropdown list in a scroll area.
            kwargs: Additional props to set.

        Returns:
            list[str]: Current list of tags.
        """
        return cast(
            list[str],
            self._x_checkbox_group(
                "tagsinput",
                key or self._new_widget_id("tagsinput", label),
                acceptValueOnBlur=accept_value_on_blur,
                allowDuplicates=allow_duplicates,
                clearButtonProps=clear_button_props,
                clearable=clearable,
                comboboxProps=combobox_props,
                defaultDropdownOpened=default_dropdown_opened,
                defaultSearchValue=default_search_value,
                description=description,
                descriptionProps=description_props,
                disabled=disabled,
                dropdownOpened=dropdown_opened,
                error=error,
                errorProps=error_props,
                hiddenInputProps=hidden_input_props,
                hiddenInputValuesDivider=hidden_input_values_divider,
                inputSize=input_size,
                inputWrapperOrder=input_wrapper_order,
                label=label,
                labelProps=label_props,
                leftSection=left_section,
                leftSectionProps=left_section_props,
                leftSectionWidth=left_section_width,
                limit=limit,
                maxDropdownHeight=max_dropdown_height,
                maxTags=max_tags,
                on_change=on_change,
                options=data,  # type: ignore[arg-type]
                options_attr="data",
                pointer=pointer,
                radius=radius,
                required=required,
                rightSection=right_section,
                rightSectionProps=right_section_props,
                rightSectionWidth=right_section_width,
                scrollAreaProps=scroll_area_props,
                searchValue=search_value,
                selectFirstOptionOnChange=select_first_option_on_change,
                size=size,
                splitChars=split_chars,
                value=value,
                withAsterisk=with_asterisk,
                withErrorStyles=with_error_styles,
                withScrollArea=with_scroll_area,
                **kwargs,
            ),
        )

    def action_icon(
        self,
        name: str,
        *,
        key: Optional[str] = None,
        on_click: Optional[Callable[[], None]] = None,
        rl_virtual: Optional[bool] = None,
        **kwargs: Any,
    ) -> bool:
        """
        Icon-only button for compact actions.

        Args:
            name (str): Icon name.
            key (Optional[str]): Explicit element key.
            on_click (Optional[Callable[[], None]]): Click handler.
            rl_virtual (Optional[bool]): Whether the element is virtual.
            kwargs: Additional props to set.

        Returns:
            bool: Click result flag.
        """
        return self._x_button(
            "actionicon",
            key or self._new_widget_id("actionicon", name),
            name=name,
            on_click=on_click,
            rl_virtual=rl_virtual,
            **kwargs,
        )

    def action_icon_group(
        self,
        border_width: Optional[str] = None,
        orientation: Optional[Literal["horizontal", "vertical"]] = None,
        **kwargs: Any,
    ) -> "RLBuilder":
        """
        Group multiple `action_icon` elements together.

        Args:
            border_width (Optional[str]): Border width between icons.
            orientation (Optional[Literal["horizontal", "vertical"]]): Layout direction.
            kwargs: Additional props to set.

        Returns:
            RLBuilder: A nested builder scoped to the group element.
        """
        element = self._create_element(
            key=self._new_text_id("actionicongroup"),
            name="actionicongroup",
            props={
                "borderWidth": border_width,
                "orientation": orientation,
                **kwargs,
            },
            virtual=True,
        )
        return cast(RLBuilder, self._build_nested_builder(element))

    def action_icon_group_section(
        self,
        text: Optional[str] = None,
        rl_virtual: bool = True,
        **kwargs: Any,
    ) -> "RLBuilder":
        """
        Section within an `action_icon_group`, usually for labels or extra content.

        Args:
            text (Optional[str]): Section text.
            rl_virtual (bool): Whether the element is virtual.
            kwargs: Additional props to set.

        Returns:
            RLBuilder: A nested builder scoped to the section element.
        """
        element = self._create_element(
            key=self._new_text_id("actionicongroupsection"),
            name="actionicongroupsection",
            props={
                "children": text,
                **kwargs,
            },
            virtual=rl_virtual,
        )
        return self._build_nested_builder(element)  # type: ignore[return-value]

    def button(
        self,
        text: str,
        *,
        color: Optional[str] = None,
        disabled: Optional[bool] = None,
        full_width: Optional[bool] = None,
        gradient: Optional[dict[str, Any]] = None,
        justify: Optional[str] = None,
        left_section: Optional[RouteLitElement] = None,
        left_section_props: Optional[dict[str, Any]] = None,
        left_section_width: Optional[str] = None,
        loading: Optional[bool] = None,
        key: Optional[str] = None,
        on_click: Optional[Callable[[], None]] = None,
        radius: Optional[Union[str, int]] = None,
        right_section: Optional[RouteLitElement] = None,
        right_section_props: Optional[dict[str, Any]] = None,
        right_section_width: Optional[str] = None,
        rl_virtual: Optional[bool] = None,
        size: Optional[str] = None,
        variant: Optional[str] = None,
        **kwargs: Any,
    ) -> bool:
        """
        Standard button component.

        Args:
            text (str): Button text.
            color (Optional[str]): Accent color or variant color.
            disabled (Optional[bool]): Disable interaction.
            full_width (Optional[bool]): Make button take full width.
            gradient (Optional[dict[str, Any]]): Gradient configuration for variant.
            justify (Optional[str]): Content justification.
            left_section (Optional[RouteLitElement]): Left adornment.
            left_section_props (Optional[dict[str, Any]]): Left adornment props.
            left_section_width (Optional[str]): Left adornment width.
            loading (Optional[bool]): Show loading state.
            key (Optional[str]): Explicit element key.
            on_click (Optional[Callable[[], None]]): Click handler.
            radius (Optional[Union[str, int]]): Corner radius.
            right_section (Optional[RouteLitElement]): Right adornment.
            right_section_props (Optional[dict[str, Any]]): Right adornment props.
            right_section_width (Optional[str]): Right adornment width.
            rl_virtual (Optional[bool]): Whether the element is virtual.
            size (Optional[str]): Control size.
            variant (Optional[str]): Visual variant.
            kwargs: Additional props to set.

        Returns:
            bool: Click result flag.
        """
        return self._x_button(
            "button",
            text,
            on_click=on_click,
            rl_virtual=rl_virtual,
            color=color,
            disabled=disabled,
            fullWidth=full_width,
            gradient=gradient,
            justify=justify,
            key=key or self._new_widget_id("button", text),
            leftSection=left_section,
            leftSectionProps=left_section_props,
            leftSectionWidth=left_section_width,
            loading=loading,
            radius=radius,
            rightSection=right_section,
            rightSectionProps=right_section_props,
            rightSectionWidth=right_section_width,
            size=size,
            variant=variant,
            **kwargs,
        )

    @staticmethod
    def icon(name: str, **kwargs: Any) -> RouteLitElement:
        """
        Create an icon element to be used as an adornment.

        Args:
            name (str): Icon name.
            kwargs: Additional props to set.

        Returns:
            RouteLitElement: Virtual icon element.
        """
        return RouteLitElement(
            name="icon",
            key="",
            props={
                "name": name,
                **kwargs,
            },
            virtual=True,
        )

    def anchor(
        self,
        href: str,
        text: str,
        *,
        c: Optional[str] = None,
        gradient: Optional[dict[str, Any]] = None,
        inherit: Optional[bool] = None,
        inline: Optional[bool] = None,
        is_external: bool = False,
        line_clamp: Optional[int] = None,
        replace: bool = False,
        size: Optional[str] = None,
        truncate: Optional[str] = None,
        underline: Optional[str] = None,
        variant: Optional[str] = None,
        **kwargs: Any,
    ) -> RouteLitElement:
        """
        Anchor link element that routes internally or opens external URLs.

        Args:
            href (str): Destination path or URL.
            text (str): Link text.
            c (Optional[str]): Text color.
            gradient (Optional[dict[str, Any]]): Gradient style.
            inherit (Optional[bool]): Inherit parent font styles.
            inline (Optional[bool]): Render inline.
            is_external (bool): Open in a new tab/window if true.
            line_clamp (Optional[int]): Clamp to a number of lines.
            replace (bool): Replace history entry when routing.
            size (Optional[str]): Text size.
            truncate (Optional[str]): Truncate overflow.
            underline (Optional[str]): Underline style.
            variant (Optional[str]): Visual variant.
            kwargs: Additional props to set.

        Returns:
            RouteLitElement: Configured anchor element.
        """
        return self.link(
            href,
            text,
            c=c,
            rl_element_type="anchor",
            gradient=gradient,
            is_external=is_external,
            inherit=inherit,
            inline=inline,
            lineClamp=line_clamp,
            replace=replace,
            size=size,
            truncate=truncate,
            underline=underline,
            variant=variant,
            **kwargs,
        )

    def nav_link(
        self,
        href: str,
        label: str,
        *,
        active: Optional[bool] = None,
        auto_contrast: Optional[bool] = None,
        children_offset: Optional[str] = None,
        color: Optional[str] = None,
        default_opened: Optional[bool] = None,
        description: Optional[str] = None,
        disable_right_section_rotation: Optional[bool] = None,
        disabled: Optional[bool] = None,
        exact: Optional[bool] = None,
        is_external: bool = False,
        left_section: Optional[RouteLitElement] = None,
        no_wrap: Optional[bool] = None,
        right_section: Optional[RouteLitElement] = None,
        **kwargs: Any,
    ) -> "RLBuilder":
        """
        Navigation link, typically used in sidebars or menus.

        Args:
            href (str): Destination path.
            label (str): Visible label.
            active (Optional[bool]): Force active state.
            auto_contrast (Optional[bool]): Improve contrast automatically.
            children_offset (Optional[str]): Indentation for children links.
            color (Optional[str]): Accent color.
            default_opened (Optional[bool]): Start expanded.
            description (Optional[str]): Helper text under the label.
            disable_right_section_rotation (Optional[bool]): Disable chevron rotation.
            disabled (Optional[bool]): Disable interaction.
            exact (Optional[bool]): Match route exactly.
            is_external (bool): Treat as external link.
            left_section (Optional[RouteLitElement]): Left adornment.
            no_wrap (Optional[bool]): Prevent label wrapping.
            right_section (Optional[RouteLitElement]): Right adornment.
            kwargs: Additional props to set.

        Returns:
            RLBuilder: A nested builder for child links/content.
        """
        element = self.link(
            href,
            label,
            active=active,
            autoContrast=auto_contrast,
            childrenOffset=children_offset,
            color=color,
            defaultOpened=default_opened,
            description=description,
            disableRightSectionRotation=disable_right_section_rotation,
            disabled=disabled,
            exact=exact,
            is_external=is_external,
            leftSection=left_section,
            noWrap=no_wrap,
            rightSection=right_section,
            rl_element_type="navlink",
            rl_text_attr="label",
            **kwargs,
        )
        return self._build_nested_builder(element)  # type: ignore[return-value]

    def tabs(
        self,
        tabs: list[Union[MTTab, str]],
        *,
        activate_tab_with_keyboard: Optional[bool] = None,
        allow_tab_deactivation: Optional[bool] = None,
        auto_contrast: Optional[bool] = None,
        color: Optional[str] = None,
        default_value: Optional[str] = None,
        inverted: Optional[bool] = None,
        keep_mounted: Optional[bool] = None,
        key: Optional[str] = None,
        loop: Optional[bool] = None,
        orientation: Optional[Literal["horizontal", "vertical"]] = None,
        placement: Optional[Literal["left", "right"]] = None,
        radius: Optional[Union[str, int]] = None,
        tablist_grow: Optional[bool] = None,
        tablist_justify: Optional[str] = None,
        variant: Optional[Literal["default", "outline", "pills"]] = None,
        **kwargs: Any,
    ) -> tuple["RLBuilder", ...]:
        """
        Tabs component with a tablist and corresponding tab panels.

        Args:
            tabs (list[Union[MTTab, str]]): Tabs configuration or values.
            activate_tab_with_keyboard (Optional[bool]): Enable keyboard navigation.
            allow_tab_deactivation (Optional[bool]): Allow deactivating active tab.
            auto_contrast (Optional[bool]): Improve contrast automatically.
            color (Optional[str]): Accent color.
            default_value (Optional[str]): Initially selected tab value.
            inverted (Optional[bool]): Invert styles.
            keep_mounted (Optional[bool]): Keep inactive panels mounted.
            key (Optional[str]): Explicit element key.
            loop (Optional[bool]): Loop focus within tabs.
            orientation (Optional[Literal["horizontal", "vertical"]]): Orientation.
            placement (Optional[Literal["left", "right"]]): Placement of tabs relative to panels.
            radius (Optional[Union[str, int]]): Corner radius.
            tablist_grow (Optional[bool]): Make tablist items grow.
            tablist_justify (Optional[str]): Tablist justification.
            variant (Optional[Literal["default", "outline", "pills"]]): Visual variant.
            kwargs: Additional props to set.

        Returns:
            tuple[RLBuilder, ...]: Panel builders, one per tab value.

        Example:
        ```python
        tab1, tab2 = ui.tabs(
            tabs=[
                ui.tab(value="tab1", label="Tab 1"),
                "Tab 2",
            ],
            default_value="tab1",
            variant="outline",
        )
        with tab1:
            ui.text("Tab body 1")
        with tab2:
            ui.text("Tab body 2")
        ```
        """
        default_value = default_value or (
            (tabs[0]["value"] if isinstance(tabs[0], dict) else tabs[0]) if tabs and len(tabs) > 0 else None
        )
        tabs_root = self._build_nested_builder(
            self._create_element(
                key=key or self._new_text_id("tabs"),
                name="tabs",
                props={
                    "activateTabWithKeyboard": activate_tab_with_keyboard,
                    "allowTabDeactivation": allow_tab_deactivation,
                    "autoContrast": auto_contrast,
                    "color": color,
                    "defaultValue": default_value,
                    "inverted": inverted,
                    "keepMounted": keep_mounted,
                    "loop": loop,
                    "orientation": orientation,
                    "placement": placement,
                    "radius": radius,
                    "variant": variant,
                    **kwargs,
                },
                virtual=True,
            )
        )
        tabs_panels = []
        with tabs_root:
            tab_list = self._build_nested_builder(
                self._create_element(
                    key=self._new_text_id("tablist"),
                    name="tablist",
                    props={
                        "grow": tablist_grow,
                        "justify": tablist_justify,
                    },
                    virtual=True,
                )
            )
            for tab in tabs:
                tab_props = {"value": tab} if isinstance(tab, str) else tab
                keep_mounted_val = tab_props.pop("keep_mounted", None)
                keep_mounted = keep_mounted_val if isinstance(keep_mounted_val, (bool, type(None))) else None
                left_section = tab_props.pop("left_section", None)
                right_section = tab_props.pop("right_section", None)
                label = tab_props.pop("label", None)
                tab_props["children"] = label or tab_props["value"]
                if left_section:
                    tab_props["leftSection"] = left_section  # type: ignore[assignment, arg-type]
                if right_section:
                    tab_props["rightSection"] = right_section  # type: ignore[assignment, arg-type]
                with tab_list:
                    self._create_element(
                        key=self._new_text_id("tab"),
                        name="tab",
                        props=tab_props,  # type: ignore[arg-type]
                        virtual=True,
                    )
                tabs_panels.append(
                    self._build_nested_builder(
                        self._create_element(
                            key=self._new_text_id("tabpanel"),
                            name="tabpanel",
                            props={
                                "value": tab_props["value"],
                                "keepMounted": keep_mounted,
                            },
                            virtual=True,
                        )
                    )
                )
        return tuple(tabs_panels)  # type: ignore[arg-type]

    @staticmethod
    def tab(
        value: str,
        label: Optional[str] = None,
        color: Optional[str] = None,
        left_section: Optional[RouteLitElement] = None,
        right_section: Optional[RouteLitElement] = None,
        size: Optional[Union[str, int]] = None,
        keep_mounted: Optional[bool] = None,
        **kwargs: Any,
    ) -> MTTab:
        """
        Helper to create an `MTTab` configuration object.
        Used to describe the props for each tab in the `tabs` function.

        Args:
            value (str): Tab value.
            label (Optional[str]): Tab label.
            color (Optional[str]): Accent color.
            left_section (Optional[RouteLitElement]): Left adornment for tab.
            right_section (Optional[RouteLitElement]): Right adornment for tab.
            size (Optional[Union[str, int]]): Size for the tab.
            keep_mounted (Optional[bool]): Keep panel mounted when inactive.
            kwargs: Additional props to set.

        Returns:
            MTTab: Tab configuration object.
        """
        return MTTab(  # type: ignore[no-any-return]
            value=value,
            label=label,
            color=color,
            left_section=left_section,
            right_section=right_section,
            size=size,
            keep_mounted=keep_mounted,
            **kwargs,  # type: ignore[typeddict-item]
        )

    def alert(
        self,
        title: str,
        *,
        auto_contrast: Optional[bool] = None,
        key: Optional[str] = None,
        color: Optional[str] = None,
        radius: Optional[Union[str, int]] = None,
        icon: Optional[RouteLitElement] = None,
        with_close_button: Optional[bool] = None,
        close_button_label: Optional[str] = None,
        on_close: Optional[Callable[[], bool]] = None,
        variant: Optional[Literal["default", "filled", "light", "outline", "white", "transparent"]] = None,
        text: Optional[str] = None,
        **kwargs: Any,
    ) -> "RLBuilder":
        """
        Inline alert with optional icon and close button.

        Args:
            title (str): Alert title.
            auto_contrast (Optional[bool]): Improve contrast automatically.
            key (Optional[str]): Explicit element key.
            color (Optional[str]): Color variant.
            radius (Optional[Union[str, int]]): Corner radius.
            icon (Optional[RouteLitElement]): Leading icon.
            with_close_button (Optional[bool]): Show close button.
            close_button_label (Optional[str]): Accessible label for close button.
            on_close (Optional[Callable[[], bool]]): Close handler.
            variant (Optional[Literal["default", "filled", "light", "outline", "white", "transparent"]]): Visual variant.
            text (Optional[str]): Alert content.
            kwargs: Additional props to set.

        Returns:
            RLBuilder: A nested builder scoped to the alert element.
        """
        return self._x_dialog(  # type: ignore[return-value]
            "alert",
            key or self._new_widget_id("alert", title),
            autoContrast=auto_contrast,
            closeButtonLabel=close_button_label,
            color=color,
            radius=radius,
            icon=icon,
            title=title,
            on_close=on_close,
            variant=variant,
            withCloseButton=with_close_button,
            children=text,
            **kwargs,
        )

    def notification(
        self,
        title: str,
        *,
        key: Optional[str] = None,
        close_button_props: Optional[dict[str, Any]] = None,
        color: Optional[str] = None,
        icon: Optional[RouteLitElement] = None,
        on_close: Optional[Callable[[], bool]] = None,
        radius: Optional[Union[str, int]] = None,
        text: Optional[str] = None,
        with_border: Optional[bool] = None,
        with_close_button: Optional[bool] = None,
        **kwargs: Any,
    ) -> "RLBuilder":
        """
        Notification element for transient messages.

        Args:
            title (str): Notification title.
            key (Optional[str]): Explicit element key.
            close_button_props (Optional[dict[str, Any]]): Close button props.
            color (Optional[str]): Color variant.
            icon (Optional[RouteLitElement]): Leading icon.
            on_close (Optional[Callable[[], bool]]): Close handler.
            radius (Optional[Union[str, int]]): Corner radius.
            text (Optional[str]): Notification content.
            with_border (Optional[bool]): Show border.
            with_close_button (Optional[bool]): Show close button.
            kwargs: Additional props to set.

        Returns:
            RLBuilder: A nested builder scoped to the notification element.
        """
        return self._x_dialog(  # type: ignore[return-value]
            "notification",
            key or self._new_widget_id("notification", title),
            closeButtonProps=close_button_props,
            color=color,
            radius=radius,
            icon=icon,
            title=title,
            on_close=on_close,
            withBorder=with_border,
            withCloseButton=with_close_button,
            children=text,
            **kwargs,
        )

    def progress(
        self,
        value: float,
        *,
        key: Optional[str] = None,
        animated: Optional[bool] = None,
        auto_contrast: Optional[bool] = None,
        color: Optional[str] = None,
        radius: Optional[Union[str, int]] = None,
        size: Optional[Union[str, int]] = None,
        striped: Optional[bool] = None,
        transition_duration: Optional[int] = None,
        **kwargs: Any,
    ) -> None:
        """
        Determinate progress bar.

        Args:
            value (float): Progress value from 0 to 100.
            key (Optional[str]): Explicit element key.
            animated (Optional[bool]): Animate stripes.
            auto_contrast (Optional[bool]): Improve contrast automatically.
            color (Optional[str]): Color variant.
            radius (Optional[Union[str, int]]): Corner radius.
            size (Optional[Union[str, int]]): Height of the bar.
            striped (Optional[bool]): Show stripes.
            transition_duration (Optional[int]): Animation duration in ms.
            kwargs: Additional props to set.
        """
        self._create_element(
            key=key or self._new_text_id("progress"),
            name="progress",
            props={
                "value": value,
                "animated": animated,
                "autoContrast": auto_contrast,
                "color": color,
                "radius": radius,
                "size": size,
                "striped": striped,
                "transitionDuration": transition_duration,
                **kwargs,
            },
        )

    def dialog(
        self,
        key: Optional[str] = None,
        *,
        with_close_button: Optional[bool] = None,
        **kwargs: Any,
    ) -> "RLBuilder":
        """
        Open a dialog container for arbitrary content.

        Args:
            key (Optional[str]): Explicit element key.
            with_close_button (Optional[bool]): Show close button.
            kwargs: Additional props to set.

        Returns:
            RLBuilder: A nested builder scoped to the dialog element.
        """
        return super()._x_dialog(  # type: ignore[return-value]
            "dialog",
            key or self._new_text_id("dialog"),
            opened=True,
            withCloseButton=with_close_button,
            **kwargs,
        )

    def drawer(
        self,
        key: Optional[str] = None,
        *,
        close_button_props: Optional[dict] = None,
        close_on_click_outside: Optional[bool] = None,
        close_on_escape: Optional[bool] = None,
        on_close: Optional[Callable[[], bool]] = None,
        keep_mounted: Optional[bool] = None,
        lock_scroll: Optional[bool] = None,
        offset: Optional[Union[str, int]] = None,
        overlay_props: Optional[dict] = None,
        padding: Optional[Union[str, int]] = None,
        portal_props: Optional[dict] = None,
        position: Optional[str] = None,
        radius: Optional[Union[str, int]] = None,
        remove_scroll_props: Optional[dict] = None,
        return_focus: Optional[bool] = None,
        scroll_area_component: Optional[str] = None,
        shadow: Optional[str] = None,
        size: Optional[Union[str, int]] = None,
        stack_id: Optional[str] = None,
        title: Optional[str] = None,
        transition_props: Optional[dict] = None,
        trap_focus: Optional[bool] = None,
        with_close_button: Optional[bool] = None,
        with_overlay: Optional[bool] = None,
        within_portal: Optional[bool] = None,
        z_index: Optional[Union[str, int]] = None,
        **kwargs: Any,
    ) -> "RLBuilder":
        """
        Drawer component that slides from screen edges.

        Args:
            key (Optional[str]): Explicit element key.
            close_button_props (Optional[dict]): Close button props.
            close_on_click_outside (Optional[bool]): Close when clicking outside.
            close_on_escape (Optional[bool]): Close on Escape key.
            on_close (Optional[Callable[[], bool]]): Close handler.
            keep_mounted (Optional[bool]): Keep in DOM when closed.
            lock_scroll (Optional[bool]): Lock document scroll when opened.
            offset (Optional[Union[str, int]]): Offset from viewport edges.
            overlay_props (Optional[dict]): Overlay props.
            padding (Optional[Union[str, int]]): Content padding.
            portal_props (Optional[dict]): Portal props.
            position (Optional[str]): Edge position.
            radius (Optional[Union[str, int]]): Corner radius.
            remove_scroll_props (Optional[dict]): Remove scroll props.
            return_focus (Optional[bool]): Return focus to trigger on close.
            scroll_area_component (Optional[str]): Custom scroll area component.
            shadow (Optional[str]): Shadow preset.
            size (Optional[Union[str, int]]): Drawer size.
            stack_id (Optional[str]): Stack identifier.
            title (Optional[str]): Header title.
            transition_props (Optional[dict]): Transition props.
            trap_focus (Optional[bool]): Trap focus inside drawer.
            with_close_button (Optional[bool]): Show close button.
            with_overlay (Optional[bool]): Show overlay.
            within_portal (Optional[bool]): Render within portal.
            z_index (Optional[Union[str, int]]): CSS z-index.
            kwargs: Additional props to set.

        Returns:
            RLBuilder: A nested builder scoped to the drawer element.
        """
        return super()._x_dialog(  # type: ignore[return-value]
            "drawer",
            key or self._new_text_id("drawer"),
            opened=True,
            closeButtonProps=close_button_props,
            closeOnClickOutside=close_on_click_outside,
            closeOnEscape=close_on_escape,
            keepMounted=keep_mounted,
            lockScroll=lock_scroll,
            offset=offset,
            on_close=on_close,
            overlayProps=overlay_props,
            padding=padding,
            portalProps=portal_props,
            position=position,
            radius=radius,
            removeScrollProps=remove_scroll_props,
            returnFocus=return_focus,
            scrollAreaComponent=scroll_area_component,
            shadow=shadow,
            size=size,
            stackId=stack_id,
            title=title,
            transitionProps=transition_props,
            trapFocus=trap_focus,
            withCloseButton=with_close_button,
            withOverlay=with_overlay,
            withinPortal=within_portal,
            zIndex=z_index,
            **kwargs,
        )

    def modal(
        self,
        key: Optional[str] = None,
        *,
        title: Optional[str] = None,
        with_close_button: Optional[bool] = None,
        **kwargs: Any,
    ) -> "RLBuilder":
        """
        Centered modal dialog.

        Args:
            key (Optional[str]): Explicit element key.
            title (Optional[str]): Header title.
            with_close_button (Optional[bool]): Show close button.
            kwargs: Additional props to set.

        Returns:
            RLBuilder: A nested builder scoped to the modal element.
        """
        return super()._x_dialog(  # type: ignore[return-value]
            "modal",
            key or self._new_text_id("modal"),
            opened=True,
            title=title,
            withCloseButton=with_close_button,
            **kwargs,
        )

    # override _dialog to use modal instead of dialog
    def _dialog(
        self,
        key: Optional[str] = None,
        **kwargs: Any,
    ) -> "RLBuilder":
        """
        Internal helper: open a modal by default when using dialog-like APIs.
        """
        return self.modal(key or self._new_text_id("modal"), **kwargs)

    def affix(
        self,
        key: Optional[str] = None,
        **kwargs: Any,
    ) -> "RLBuilder":
        """
        Position an element at a fixed offset from viewport edges.

        Args:
            key (Optional[str]): Explicit element key.
            kwargs: Additional props to set.

        Returns:
            RLBuilder: A nested builder scoped to the affix element.
        """
        return self._create_builder_element(  # type: ignore[return-value]
            name="affix",
            key=key or self._new_text_id("affix"),
            props=kwargs,
            virtual=True,
        )

    def image(
        self,
        src: str,
        *,
        key: Optional[str] = None,
        **kwargs: Any,
    ) -> None:
        """
        Display an image.

        Args:
            src (str): Image source URL.
            key (Optional[str]): Explicit element key.
            kwargs: Additional props to set.
        """
        self._create_element(
            name="image",
            key=key or self._new_widget_id("image", src),
            props={"src": src, **kwargs},
        )

    def number_formatter(
        self,
        value: Union[float, int, str],
        *,
        key: Optional[str] = None,
        **kwargs: Any,
    ) -> None:
        """
        Format and display a number according to given options.

        Args:
            value (Union[float, int, str]): Value to format.
            key (Optional[str]): Explicit element key.
            kwargs: Additional props to set.
        """
        self._create_element(
            key=key or self._new_text_id("numberformatter"),
            name="numberformatter",
            props={"value": value, **kwargs},
        )

    def spoiler(
        self,
        show_label: str = "Show more",
        hide_label: str = "Show less",
        *,
        key: Optional[str] = None,
        initial_state: bool = False,
        max_height: Optional[int] = None,
        **kwargs: Any,
    ) -> "RLBuilder":
        """
        Collapsible content with show/hide controls.

        Args:
            show_label (str): Label when collapsed.
            hide_label (str): Label when expanded.
            key (Optional[str]): Explicit element key.
            initial_state (bool): Initial expanded state.
            max_height (Optional[int]): Max visible height when collapsed.
            kwargs: Additional props to set.

        Returns:
            RLBuilder: A nested builder scoped to the spoiler element.
        """
        return self._create_builder_element(  # type: ignore[return-value]
            name="spoiler",
            key=key or self._new_text_id("spoiler"),
            props={
                "showLabel": show_label,
                "hideLabel": hide_label,
                "initialState": initial_state,
                "maxHeight": max_height,
                **kwargs,
            },
            virtual=True,
        )

    def text(  # type: ignore[override]
        self,
        text: str,
        *,
        key: Optional[str] = None,
        **kwargs: Any,
    ) -> None:
        """
        Render plain text content.

        Args:
            text (str): Text content.
            key (Optional[str]): Explicit element key.
            kwargs: Additional props to set.
        """
        self._create_element(
            name="text",
            key=key or self._new_text_id("text"),
            props={"children": text, **kwargs},
        )

    def title(  # type: ignore[override]
        self,
        text: str,
        *,
        key: Optional[str] = None,
        order: Optional[int] = None,
        **kwargs: Any,
    ) -> None:
        """
        Title text with semantic order (h1-h6).

        Args:
            text (str): Title content.
            key (Optional[str]): Explicit element key.
            order (Optional[int]): Heading level (1-6).
            kwargs: Additional props to set.
        """
        self._create_element(
            name="title",
            key=key or self._new_text_id("title"),
            props={"children": text, "order": order, **kwargs},
        )

    def table(
        self,
        key: Optional[str] = None,
        *,
        body: Optional[list[list[Any]]] = None,
        caption: Optional[str] = None,
        head: Optional[list[str]] = None,
        foot: Optional[list[str]] = None,
        sticky_header: Optional[bool] = None,
        **kwargs: Any,
    ) -> "RLBuilder":
        """
        Data table with optional head, body, foot and caption.

        Args:
            key (Optional[str]): Explicit element key.
            body (Optional[list[list[Any]]]): Table body rows.
            caption (Optional[str]): Table caption.
            head (Optional[list[str]]): Header row cells.
            foot (Optional[list[str]]): Footer row cells.
            sticky_header (Optional[bool]): Make header sticky when scrolling.
            kwargs: Additional props to set.

        Returns:
            RLBuilder: A nested builder scoped to the table element.
        """
        data = {
            "body": body,
            "caption": caption,
            "head": head,
            "foot": foot,
        }
        return self._create_builder_element(  # type: ignore[return-value]
            name="table",
            key=key or self._new_text_id("table"),
            props={"data": data, "stickyHeader": sticky_header, **kwargs},
        )

    def table_caption(
        self,
        text: str,
        *,
        key: Optional[str] = None,
        **kwargs: Any,
    ) -> None:
        """
        Add a caption to the current table.

        Args:
            text (str): Caption text.
            key (Optional[str]): Explicit element key.
            kwargs: Additional props to set.
        """
        self._create_element(
            name="tablecaption",
            key=key or self._new_text_id("tablecaption"),
            props={"children": text, **kwargs},
            virtual=True,
        )

    def table_head(
        self,
        key: Optional[str] = None,
        **kwargs: Any,
    ) -> "RLBuilder":
        """
        Create a table head section.

        Args:
            key (Optional[str]): Explicit element key.
            kwargs: Additional props to set.

        Returns:
            RLBuilder: A nested builder scoped to the head section.
        """
        return self._create_builder_element(  # type: ignore[return-value]
            name="tablehead",
            key=key or self._new_text_id("tablehead"),
            props=kwargs,
            virtual=True,
        )

    def table_foot(
        self,
        key: Optional[str] = None,
        **kwargs: Any,
    ) -> "RLBuilder":
        """
        Create a table foot section.

        Args:
            key (Optional[str]): Explicit element key.
            kwargs: Additional props to set.

        Returns:
            RLBuilder: A nested builder scoped to the foot section.
        """
        return self._create_builder_element(  # type: ignore[return-value]
            name="tablefoot",
            key=key or self._new_text_id("tablefoot"),
            props=kwargs,
            virtual=True,
        )

    def table_row(
        self,
        key: Optional[str] = None,
        **kwargs: Any,
    ) -> "RLBuilder":
        """
        Create a table row.

        Args:
            key (Optional[str]): Explicit element key.
            kwargs: Additional props to set.

        Returns:
            RLBuilder: A nested builder scoped to the row.
        """
        return self._create_builder_element(  # type: ignore[return-value]
            name="tablerow",
            key=key or self._new_text_id("tablerow"),
            props=kwargs,
            virtual=True,
        )

    def table_cell(
        self,
        text: Optional[str] = None,
        *,
        key: Optional[str] = None,
        **kwargs: Any,
    ) -> "RLBuilder":
        """
        Create a table cell.

        Args:
            text (Optional[str]): Cell text content.
            key (Optional[str]): Explicit element key.
            kwargs: Additional props to set.

        Returns:
            RLBuilder: A nested builder scoped to the cell.
        """
        return self._create_builder_element(  # type: ignore[return-value]
            name="tablecell",
            key=key or self._new_text_id("tablecell"),
            props={"children": text, **kwargs},
            virtual=True,
        )

    def table_header(
        self,
        text: Optional[str] = None,
        *,
        key: Optional[str] = None,
        **kwargs: Any,
    ) -> "RLBuilder":
        """
        Create a table header cell.

        Args:
            text (Optional[str]): Header text content.
            key (Optional[str]): Explicit element key.
            kwargs: Additional props to set.

        Returns:
            RLBuilder: A nested builder scoped to the header cell.
        """
        return self._create_builder_element(  # type: ignore[return-value]
            name="tableheader",
            key=key or self._new_text_id("tableheader"),
            props={"children": text, **kwargs},
            virtual=True,
        )

    def table_body(
        self,
        key: Optional[str] = None,
        **kwargs: Any,
    ) -> "RLBuilder":
        """
        Create a table body section.

        Args:
            key (Optional[str]): Explicit element key.
            kwargs: Additional props to set.

        Returns:
            RLBuilder: A nested builder scoped to the body section.
        """
        return self._create_builder_element(  # type: ignore[return-value]
            name="tablebody",
            key=key or self._new_text_id("tablebody"),
            props=kwargs,
            virtual=True,
        )

    def table_scroll_container(
        self,
        *,
        key: Optional[str] = None,
        max_height: Optional[Union[str, int]] = None,
        max_width: Optional[Union[str, int]] = None,
        min_height: Optional[Union[str, int]] = None,
        min_width: Optional[Union[str, int]] = None,
        **kwargs: Any,
    ) -> "RLBuilder":
        """
        Scrollable container for large tables.

        Args:
            key (Optional[str]): Explicit element key.
            max_height (Optional[Union[str, int]]): Maximum height.
            max_width (Optional[Union[str, int]]): Maximum width.
            min_height (Optional[Union[str, int]]): Minimum height.
            min_width (Optional[Union[str, int]]): Minimum width.
            kwargs: Additional props to set.

        Returns:
            RLBuilder: A nested builder scoped to the scroll container.
        """
        return self._create_builder_element(  # type: ignore[return-value]
            name="tablescrollcontainer",
            key=key or self._new_text_id("tablescrollcontainer"),
            props={
                "maxHeight": max_height,
                "maxWidth": max_width,
                "minHeight": min_height,
                "minWidth": min_width,
                **kwargs,
            },
            virtual=True,
        )

    def box(
        self,
        key: Optional[str] = None,
        **kwargs: Any,
    ) -> "RLBuilder":
        """
        Generic layout container.

        Args:
            key (Optional[str]): Explicit element key.
            kwargs: Additional props to set.

        Returns:
            RLBuilder: A nested builder scoped to the box element.
        """
        return self._create_builder_element(  # type: ignore[return-value]
            name="box",
            key=key or self._new_text_id("box"),
            props=kwargs,
            virtual=True,
        )

    def paper(
        self,
        *,
        key: Optional[str] = None,
        radius: Optional[Union[str, int]] = None,
        shadow: Optional[str] = None,
        with_border: Optional[bool] = None,
        **kwargs: Any,
    ) -> "RLBuilder":
        """
        Container with background, border, and shadow.

        Args:
            key (Optional[str]): Explicit element key.
            radius (Optional[Union[str, int]]): Corner radius.
            shadow (Optional[str]): Shadow preset.
            with_border (Optional[bool]): Show border.
            kwargs: Additional props to set.

        Returns:
            RLBuilder: A nested builder scoped to the paper element.
        """
        return self._create_builder_element(  # type: ignore[return-value]
            name="paper",
            key=key or self._new_text_id("paper"),
            props={
                "radius": radius,
                "shadow": shadow,
                "withBorder": with_border,
                **kwargs,
            },
            virtual=True,
        )

    def scroll_area(
        self,
        *,
        key: Optional[str] = None,
        offset_scrollbars: Optional[Union[bool, Literal["x", "y", "present"]]] = None,
        overscroll_behavior: Optional[str] = None,
        scroll_hide_delay: Optional[int] = None,
        scrollbar_size: Optional[Union[str, int]] = None,
        scrollbars: Optional[Union[bool, Literal["x", "y", "xy"]]] = None,
        type: Optional[Literal["auto", "scroll", "always", "hover", "never"]] = None,  # noqa: A002
        viewport_props: Optional[dict[str, Any]] = None,
        **kwargs: Any,
    ) -> "RLBuilder":
        """
        Scrollable area with configurable scrollbars and behavior.

        Args:
            key (Optional[str]): Explicit element key.
            offset_scrollbars (Optional[Union[bool, Literal["x", "y", "present"]]): Offset scrollbars from content.
            overscroll_behavior (Optional[str]): CSS overscroll behavior.
            scroll_hide_delay (Optional[int]): Delay before hiding scrollbars.
            scrollbar_size (Optional[Union[str, int]]): Scrollbar size.
            scrollbars (Optional[Union[bool, Literal["x", "y", "xy"]]): Which axes show scrollbars.
            type (Optional[Literal["auto", "scroll", "always", "hover", "never"]]): Scrollbar visibility policy.
            viewport_props (Optional[dict[str, Any]]): Viewport element props.
            kwargs: Additional props to set.

        Returns:
            RLBuilder: A nested builder scoped to the scroll area.
        """
        return self._create_builder_element(  # type: ignore[return-value]
            name="scrollarea",
            key=key or self._new_text_id("scrollarea"),
            props={
                "offsetScrollbars": offset_scrollbars,
                "overscrollBehavior": overscroll_behavior,
                "scrollHideDelay": scroll_hide_delay,
                "scrollbarSize": scrollbar_size,
                "scrollbars": scrollbars,
                "type": type,
                "viewportProps": viewport_props,
                **kwargs,
            },
            virtual=True,
        )

    def accordion(
        self,
        value: Optional[Union[list[str], str]] = None,
        *,
        key: Optional[str] = None,
        chevron: Optional[Any] = None,
        chevron_icon_size: Optional[Union[str, int]] = None,
        chevron_position: Optional[str] = None,
        chevron_size: Optional[Union[str, int]] = None,
        disable_chevron_rotation: Optional[bool] = None,
        loop: Optional[bool] = None,
        multiple: Optional[bool] = None,
        on_change: Optional[Callable[[Any], None]] = None,
        order: Optional[Literal[2, 3, 4, 5, 6]] = None,
        radius: Optional[Union[str, int]] = None,
        transition_duration: Optional[int] = None,
        variant: Optional[Literal["default", "filled", "separated", "contained", "unstyled"]] = None,
    ) -> "RLBuilder":
        """
        Accordion component.

        Args:
            value (Optional[Union[list[str], str]]): Controlled component value.
            key (Optional[str]): Unique key for the component.
            chevron (Optional[Any]): Custom chevron icon.
            chevron_icon_size (Optional[Union[str, int]]): Size of default chevron icon.
            chevron_position (Optional[str]): Position of chevron relative to label.
            chevron_size (Optional[Union[str, int]]): Size of chevron icon container.
            disable_chevron_rotation (Optional[bool]): Disable chevron rotation.
            loop (Optional[bool]): Loop through items with arrow keys.
            multiple (Optional[bool]): Allow multiple items open at once.
            on_change (Optional[Callable[[Any], None]]): Called when value changes.
            order (Optional[Literal[2,3,4,5,6]]): Heading order.
            radius (Optional[Union[str, int]]): Border radius.
            transition_duration (Optional[int]): Transition duration in ms.
            variant (Optional[Literal["default", "filled", "separated", "contained", "unstyled"]]): Visual variant.

        Returns:
            RLBuilder: A nested builder scoped to the accordion.
        """
        return self._create_builder_element(  # type: ignore[return-value]
            name="accordion",
            key=key or self._new_text_id("accordion"),
            props={
                "defaultValue": value,
                "chevron": chevron,
                "chevronIconSize": chevron_icon_size,
                "chevronPosition": chevron_position,
                "chevronSize": chevron_size,
                "disableChevronRotation": disable_chevron_rotation,
                "loop": loop,
                "multiple": multiple,
                "onChange": on_change,
                "order": order,
                "radius": radius,
                "transitionDuration": transition_duration,
                "variant": variant,
            },
            virtual=True,
        )

    def accordion_item(
        self,
        label: str,
        *,
        key: Optional[str] = None,
        chevron: Optional[RouteLitElement] = None,
        disabled: Optional[bool] = None,
        icon: Optional[RouteLitElement] = None,
        **kwargs: Any,
    ) -> "RLBuilder":
        """
        Accordion item component.
        """
        item_key = self._new_widget_id("accordionitem", label) if key is None else key
        accordion_item = self._create_builder_element(
            name="accordionitem",
            key=item_key,
            props={
                "value": item_key,
                **kwargs,
            },
            virtual=True,
        )
        with accordion_item:
            control_key = self._new_widget_id("accordioncontrol", label) if key is None else key + "-control"
            self._create_element(
                "accordioncontrol",
                key=control_key,
                props={
                    "chevron": chevron,
                    "disabled": disabled,
                    "icon": icon,
                    "children": label,
                },
                virtual=True,
            )
            panel_key = self._new_widget_id("accordionpanel", label) if key is None else key + "-panel"
            panel = self._create_builder_element(
                name="accordionpanel",
                key=panel_key,
                props={},
                virtual=True,
            )
            return panel  # type: ignore[return-value]

    def expander(
        self,
        title: str,
        *,
        is_open: Optional[bool] = None,
        key: Optional[str] = None,
        chevron: Optional[Any] = None,
        chevron_icon_size: Optional[Union[str, int]] = None,
        chevron_position: Optional[str] = None,
        chevron_size: Optional[Union[str, int]] = None,
        disabled: Optional[bool] = None,
        disable_chevron_rotation: Optional[bool] = None,
        icon: Optional[RouteLitElement] = None,
        radius: Optional[Union[str, int]] = None,
        transition_duration: Optional[int] = None,
        variant: Optional[Literal["default", "filled", "separated", "contained", "unstyled"]] = None,
        **kwargs: Any,
    ) -> "RLBuilder":
        """
        Expander component.
        This is a wrapper around the accordion component.

        Args:
            title (str): Title text shown in the expander header
            is_open (Optional[bool]): Whether the expander is initially expanded
            key (Optional[str]): Unique key for the component
            chevron (Optional[Any]): Custom chevron element
            chevron_icon_size (Optional[Union[str, int]]): Size of the chevron icon
            chevron_position (Optional[str]): Position of the chevron icon
            chevron_size (Optional[Union[str, int]]): Size of the chevron container
            disabled (Optional[bool]): Whether the expander is disabled
            disable_chevron_rotation (Optional[bool]): Whether to disable chevron rotation animation
            icon (Optional[RouteLitElement]): Icon element shown before the title
            radius (Optional[Union[str, int]]): Border radius
            transition_duration (Optional[int]): Duration of expand/collapse animation in ms
            variant (Optional[Literal["default", "filled", "separated", "contained", "unstyled"]]): Visual variant
            kwargs (Any): Additional props to pass to the accordion component

        Returns:
            RLBuilder: Builder for the expander content
        """
        value = self._new_widget_id("accordionitem", title) if key is None else key
        accordion = self.accordion(
            key=key,
            chevron=chevron,
            chevron_icon_size=chevron_icon_size,
            chevron_position=chevron_position,
            chevron_size=chevron_size,
            disable_chevron_rotation=disable_chevron_rotation,
            radius=radius,
            transition_duration=transition_duration,
            variant=variant,
            value=value if is_open else None,
            **kwargs,
        )
        with accordion:
            item = self.accordion_item(
                label=title,
                key=value,
                disabled=disabled,
                icon=icon,
            )
            return item

    def _format_datetime(self, value: Any) -> Optional[datetime.datetime]:
        if isinstance(value, datetime.datetime):
            return value
        if isinstance(value, str):
            return datetime.datetime.fromisoformat(value)
        return None

    def date_time_picker(
        self,
        label: str,
        value: Optional[Union[datetime.datetime, str]] = None,
        *,
        clearable: Optional[bool] = None,
        columns_to_scroll: Optional[int] = None,
        description: Optional[str] = None,
        disabled: Optional[bool] = None,
        dropdown_type: Optional[Literal["modal", "popover"]] = None,
        error: Optional[str] = None,
        first_day_of_week: Optional[Literal[0, 1, 2, 3, 4, 5, 6]] = None,
        header_controls_order: Optional[list[Literal["level", "next", "previous"]]] = None,
        hide_outside_dates: Optional[bool] = None,
        hide_weekdays: Optional[bool] = None,
        highlight_today: Optional[bool] = None,
        input_size: Optional[str] = None,
        input_wrapper_order: Optional[list[str]] = None,
        label_props: Optional[dict[str, Any]] = None,
        label_separator: Optional[str] = None,
        left_section: Optional[RouteLitElement] = None,
        left_section_props: Optional[dict[str, Any]] = None,
        left_section_width: Optional[str] = None,
        level: Optional[Literal["month", "year", "decade"]] = None,
        locale: Optional[str] = None,
        max_date: Optional[Union[datetime.datetime, str]] = None,
        max_level: Optional[Literal["month", "year", "decade"]] = None,
        min_date: Optional[Union[datetime.datetime, str]] = None,
        months_list_format: Optional[str] = None,
        number_of_columns: Optional[int] = None,
        next_label: Optional[str] = None,
        next_icon: Optional[RouteLitElement] = None,
        on_change: Optional[Callable[[datetime.datetime], None]] = None,
        popover_props: Optional[dict[str, Any]] = None,
        presets: Optional[list[dict[str, Any]]] = None,
        previous_icon: Optional[RouteLitElement] = None,
        previous_label: Optional[str] = None,
        placeholder: Optional[str] = None,
        radius: Optional[Union[str, int]] = None,
        read_only: Optional[bool] = None,
        required: Optional[bool] = None,
        right_section: Optional[RouteLitElement] = None,
        right_section_pointer_events: Optional[str] = None,
        right_section_props: Optional[dict[str, Any]] = None,
        right_section_width: Optional[str] = None,
        size: Optional[str] = None,
        sort_dates: Optional[bool] = None,
        submit_button_props: Optional[dict[str, Any]] = None,
        time_picker_props: Optional[dict[str, Any]] = None,
        value_format: Optional[str] = None,
        weekday_format: Optional[str] = None,
        weekend_days: Optional[list[Literal[0, 1, 2, 3, 4, 5, 6]]] = None,
        with_asterisk: Optional[bool] = None,
        with_cell_spacing: Optional[bool] = None,
        with_error_styles: Optional[bool] = None,
        with_seconds: Optional[bool] = None,
        with_week_numbers: Optional[bool] = None,
        wrapper_props: Optional[dict[str, Any]] = None,
        year_label_format: Optional[str] = None,
        years_list_format: Optional[str] = None,
        pointer: Optional[bool] = None,
        key: Optional[str] = None,
        **kwargs: Any,
    ) -> Optional[datetime.datetime]:
        """
        Date-time picker input with calendar and time selection.

        Args:
            label (str): Field label.
            value (Optional[Union[datetime.datetime, str]]): Current value.
            clearable (Optional[bool]): Show clear button.
            columns_to_scroll (Optional[int]): Number of months to scroll.
            description (Optional[str]): Helper text under the label.
            disabled (Optional[bool]): Disable interaction.
            dropdown_type (Optional[Literal["modal", "popover"]]): Dropdown type.
            error (Optional[str]): Error message.
            first_day_of_week (Optional[Literal[0,1,2,3,4,5,6]]): First day of week.
            header_controls_order (Optional[list[Literal["level", "next", "previous"]]]): Header controls order.
            hide_outside_dates (Optional[bool]): Hide outside month dates.
            hide_weekdays (Optional[bool]): Hide weekday labels.
            highlight_today (Optional[bool]): Highlight current date.
            input_size (Optional[str]): Control size.
            input_wrapper_order (Optional[list[str]]): Input wrapper parts order.
            label_props (Optional[dict[str, Any]]): Label props.
            label_separator (Optional[str]): Separator between date and time.
            left_section (Optional[RouteLitElement]): Left adornment.
            left_section_props (Optional[dict[str, Any]]): Left adornment props.
            left_section_width (Optional[str]): Left adornment width.
            level (Optional[Literal["month", "year", "decade"]]): Initial calendar level.
            locale (Optional[str]): Locale code.
            max_date (Optional[Union[datetime.datetime, str]]): Max date.
            max_level (Optional[Literal["month", "year", "decade"]]): Max calendar level.
            min_date (Optional[Union[datetime.datetime, str]]): Min date.
            months_list_format (Optional[str]): Months list format.
            number_of_columns (Optional[int]): Number of months displayed.
            next_label (Optional[str]): Next button label.
            next_icon (Optional[RouteLitElement]): Next button icon.
            on_change (Optional[Callable[[datetime.datetime], None]]): Change handler.
            popover_props (Optional[dict[str, Any]]): Popover props.
            presets (Optional[list[dict[str, Any]]]): Presets configuration.
            previous_icon (Optional[RouteLitElement]): Previous button icon.
            previous_label (Optional[str]): Previous button label.
            placeholder (Optional[str]): Input placeholder.
            radius (Optional[Union[str, int]]): Corner radius.
            read_only (Optional[bool]): Read-only state.
            required (Optional[bool]): Mark as required.
            right_section (Optional[RouteLitElement]): Right adornment.
            right_section_pointer_events (Optional[str]): Pointer events for right section.
            right_section_props (Optional[dict[str, Any]]): Right adornment props.
            right_section_width (Optional[str]): Right adornment width.
            size (Optional[str]): Control size.
            sort_dates (Optional[bool]): Sort selected dates.
            submit_button_props (Optional[dict[str, Any]]): Submit button props.
            time_picker_props (Optional[dict[str, Any]]): Time picker props.
            value_format (Optional[str]): Output value format.
            weekday_format (Optional[str]): Weekday label format.
            weekend_days (Optional[list[Literal[0,1,2,3,4,5,6]]]): Weekend days indices.
            with_asterisk (Optional[bool]): Show required asterisk.
            with_cell_spacing (Optional[bool]): Add spacing between cells.
            with_error_styles (Optional[bool]): Apply error styles.
            with_seconds (Optional[bool]): Include seconds selector.
            with_week_numbers (Optional[bool]): Show week numbers.
            wrapper_props (Optional[dict[str, Any]]): Wrapper props.
            year_label_format (Optional[str]): Year label format.
            years_list_format (Optional[str]): Years list format.
            pointer (Optional[bool]): Use pointer cursor.
            key (Optional[str]): Explicit element key.
            kwargs: Additional props to set.

        Returns:
            Optional[datetime.datetime]: Current value.
        """
        return cast(
            Optional[datetime.datetime],
            self._x_input(
                "datetimepicker",
                key or self._new_widget_id("datetimepicker", label),
                clearable=clearable,
                columnsToScroll=columns_to_scroll,
                description=description,
                disabled=disabled,
                dropdownType=dropdown_type,
                error=error,
                firstDayOfWeek=first_day_of_week,
                headerControlsOrder=header_controls_order,
                hideOutsideDates=hide_outside_dates,
                hideWeekdays=hide_weekdays,
                highlightToday=highlight_today,
                inputSize=input_size,
                inputWrapperOrder=input_wrapper_order,
                label=label,
                labelProps=label_props,
                labelSeparator=label_separator,
                value=value,
                leftSection=left_section,
                leftSectionProps=left_section_props,
                leftSectionWidth=left_section_width,
                level=level,
                locale=locale,
                maxDate=max_date,
                maxLevel=max_level,
                minDate=min_date,
                monthsListFormat=months_list_format,
                nextIcon=next_icon,
                nextLabel=next_label,
                numberOfColumns=number_of_columns,
                on_change=on_change,
                popoverProps=popover_props,
                presets=presets,
                previousIcon=previous_icon,
                previousLabel=previous_label,
                placeholder=placeholder,
                radius=radius,
                readOnly=read_only,
                required=required,
                rightSection=right_section,
                rightSectionPointerEvents=right_section_pointer_events,
                rightSectionProps=right_section_props,
                rightSectionWidth=right_section_width,
                rl_format_func=self._format_datetime,
                size=size,
                sortDates=sort_dates,
                submitButtonProps=submit_button_props,
                timePickerProps=time_picker_props,
                valueFormat=value_format,
                weekdayFormat=weekday_format,
                weekendDays=weekend_days,
                withAsterisk=with_asterisk,
                withCellSpacing=with_cell_spacing,
                withErrorStyles=with_error_styles,
                withSeconds=with_seconds,
                withWeekNumbers=with_week_numbers,
                wrapperProps=wrapper_props,
                yearLabelFormat=year_label_format,
                yearsListFormat=years_list_format,
                pointer=pointer,
                **kwargs,
            ),
        )

    def _format_date_picker(
        self, value: Any
    ) -> Optional[Union[datetime.date, list[datetime.date], tuple[datetime.date, datetime.date]]]:
        if isinstance(value, datetime.date):
            return value
        if isinstance(value, str):
            return datetime.date.fromisoformat(value)
        if isinstance(value, list):
            return [datetime.date.fromisoformat(x) if isinstance(x, str) else x for x in value]
        return None

    def date_picker(
        self,
        label: str,
        value: Optional[
            Union[
                datetime.date,
                str,
                list[str],
                list[datetime.date],
                tuple[str, str],
                tuple[datetime.date, datetime.date],
            ]
        ] = None,
        *,
        allow_deselect: Optional[bool] = None,
        allow_single_date_in_range: Optional[bool] = None,
        aria_labels: Optional[dict] = None,
        columns_to_scroll: Optional[int] = None,
        decade_label_format: Optional[str] = None,
        default_level: Optional[Literal["month", "year", "decade"]] = None,
        description: Optional[str] = None,
        enable_keyboard_navigation: Optional[bool] = None,
        first_day_of_week: Optional[Literal[0, 1, 2, 3, 4, 5, 6]] = None,
        header_controls_order: Optional[list[Literal["level", "next", "previous"]]] = None,
        hide_outside_dates: Optional[bool] = None,
        hide_weekdays: Optional[bool] = None,
        highlight_today: Optional[bool] = None,
        key: Optional[str] = None,
        level: Optional[str] = None,
        locale: Optional[str] = None,
        max_date: Optional[Union[str, datetime.date]] = None,
        max_level: Optional[str] = None,
        min_date: Optional[Union[str, datetime.date]] = None,
        month_label_format: Optional[str] = None,
        months_list_format: Optional[str] = None,
        next_icon: Optional[RouteLitElement] = None,
        next_label: Optional[str] = None,
        number_of_columns: Optional[int] = None,
        on_change: Optional[
            Callable[
                [
                    Union[
                        datetime.date,
                        list[datetime.date],
                        tuple[datetime.date, datetime.date],
                    ]
                ],
                None,
            ]
        ] = None,
        presets: Optional[list] = None,
        previous_icon: Optional[RouteLitElement] = None,
        previous_label: Optional[str] = None,
        size: Optional[str] = None,
        type: Optional[Literal["default", "range", "multiple"]] = None,  # noqa: A002
        weekday_format: Optional[str] = None,
        weekend_days: Optional[list[Literal[0, 1, 2, 3, 4, 5, 6]]] = None,
        with_cell_spacing: Optional[bool] = None,
        with_week_numbers: Optional[bool] = None,
        year_label_format: Optional[str] = None,
        years_list_format: Optional[str] = None,
        **kwargs: Any,
    ) -> Optional[Union[datetime.date, list[datetime.date], tuple[datetime.date, datetime.date]]]:
        """
        Calendar date picker supporting single, range, and multiple modes.

        Args:
            label (str): Field label.
            value (Optional[...]): Current value in the selected mode.
            allow_deselect (Optional[bool]): Allow clearing selection.
            allow_single_date_in_range (Optional[bool]): Allow single date in range mode.
            aria_labels (Optional[dict]): ARIA labels.
            columns_to_scroll (Optional[int]): Months to scroll.
            decade_label_format (Optional[str]): Decade label format.
            default_level (Optional[Literal["month", "year", "decade"]]): Initial calendar level.
            description (Optional[str]): Helper text under the label.
            enable_keyboard_navigation (Optional[bool]): Enable keyboard navigation.
            first_day_of_week (Optional[Literal[0,1,2,3,4,5,6]]): First day of week.
            header_controls_order (Optional[list[...]]): Header controls order.
            hide_outside_dates (Optional[bool]): Hide outside month dates.
            hide_weekdays (Optional[bool]): Hide weekday labels.
            highlight_today (Optional[bool]): Highlight current date.
            key (Optional[str]): Explicit element key.
            level (Optional[str]): Current level.
            locale (Optional[str]): Locale code.
            max_date (Optional[Union[str, datetime.date]]): Max date.
            max_level (Optional[str]): Max level.
            min_date (Optional[Union[str, datetime.date]]): Min date.
            month_label_format (Optional[str]): Month label format.
            months_list_format (Optional[str]): Months list format.
            next_icon (Optional[RouteLitElement]): Next button icon.
            next_label (Optional[str]): Next button label.
            number_of_columns (Optional[int]): Months displayed.
            on_change (Optional[Callable[[...], None]]): Change handler.
            presets (Optional[list]): Preset ranges.
            previous_icon (Optional[RouteLitElement]): Previous button icon.
            previous_label (Optional[str]): Previous button label.
            size (Optional[str]): Control size.
            type (Optional[Literal["default", "range", "multiple"]]): Picker mode.
            weekday_format (Optional[str]): Weekday label format.
            weekend_days (Optional[list[...]]): Weekend days indices.
            with_cell_spacing (Optional[bool]): Add spacing between cells.
            with_week_numbers (Optional[bool]): Show week numbers.
            year_label_format (Optional[str]): Year label format.
            years_list_format (Optional[str]): Years list format.
            kwargs: Additional props to set.

        Returns:
            Optional[Union[datetime.date, list[datetime.date], tuple[datetime.date, datetime.date]]]: Current value.
        """
        return cast(
            Optional[
                Union[
                    datetime.date,
                    list[datetime.date],
                    tuple[datetime.date, datetime.date],
                ]
            ],
            self._x_input(
                "datepicker",
                key or self._new_widget_id("datepicker", label),
                label=label,
                description=description,
                value=value,
                allowDeselect=allow_deselect,
                allowSingleDateInRange=allow_single_date_in_range,
                ariaLabels=aria_labels,
                columnsToScroll=columns_to_scroll,
                decadeLabelFormat=decade_label_format,
                defaultLevel=default_level,
                enableKeyboardNavigation=enable_keyboard_navigation,
                firstDayOfWeek=first_day_of_week,
                headerControlsOrder=header_controls_order,
                hideOutsideDates=hide_outside_dates,
                hideWeekdays=hide_weekdays,
                highlightToday=highlight_today,
                level=level,
                locale=locale,
                maxDate=max_date,
                maxLevel=max_level,
                minDate=min_date,
                monthLabelFormat=month_label_format,
                monthsListFormat=months_list_format,
                nextIcon=next_icon,
                nextLabel=next_label,
                numberOfColumns=number_of_columns,
                onChange=on_change,
                presets=presets,
                previousIcon=previous_icon,
                previousLabel=previous_label,
                size=size,
                type=type,
                weekdayFormat=weekday_format,
                weekendDays=weekend_days,
                withCellSpacing=with_cell_spacing,
                withWeekNumbers=with_week_numbers,
                yearLabelFormat=year_label_format,
                yearsListFormat=years_list_format,
                rl_format_func=self._format_date_picker,
                **kwargs,
            ),
        )

    def date_picker_input(
        self,
        label: str,
        value: Optional[
            Union[
                datetime.date,
                str,
                list[str],
                list[datetime.date],
                tuple[str, str],
                tuple[datetime.date, datetime.date],
            ]
        ] = None,
        *,
        key: Optional[str] = None,
        description: Optional[str] = None,
        on_change: Optional[Callable[[Any], None]] = None,
        allow_deselect: Optional[bool] = None,
        allow_single_date_in_range: Optional[bool] = None,
        aria_labels: Optional[dict] = None,
        clear_button_props: Optional[dict] = None,
        clearable: Optional[bool] = None,
        close_on_change: Optional[bool] = None,
        columns_to_scroll: Optional[int] = None,
        decade_label_format: Optional[str] = None,
        default_level: Optional[Literal["month", "year", "decade"]] = None,
        description_props: Optional[dict] = None,
        disabled: Optional[bool] = None,
        dropdown_type: Optional[Literal["modal", "popover"]] = None,
        enable_keyboard_navigation: Optional[bool] = None,
        error: Optional[str] = None,
        error_props: Optional[dict] = None,
        first_day_of_week: Optional[Literal[0, 1, 2, 3, 4, 5, 6]] = None,
        header_controls_order: Optional[list[Literal["level", "next", "previous"]]] = None,
        hide_outside_dates: Optional[bool] = None,
        hide_weekdays: Optional[bool] = None,
        highlight_today: Optional[bool] = None,
        input_size: Optional[str] = None,
        input_wrapper_order: Optional[list[Literal["input", "label", "description", "error"]]] = None,
        label_props: Optional[dict] = None,
        label_separator: Optional[str] = None,
        left_section: Optional[RouteLitElement] = None,
        left_section_pointer_events: Optional[str] = None,
        left_section_props: Optional[dict] = None,
        left_section_width: Optional[str] = None,
        level: Optional[Literal["month", "year", "decade"]] = None,
        locale: Optional[str] = None,
        max_date: Optional[Union[str, datetime.date]] = None,
        max_level: Optional[Literal["month", "year", "decade"]] = None,
        min_date: Optional[Union[str, datetime.date]] = None,
        modal_props: Optional[dict] = None,
        month_label_format: Optional[str] = None,
        months_list_format: Optional[str] = None,
        next_icon: Optional[RouteLitElement] = None,
        next_label: Optional[str] = None,
        number_of_columns: Optional[int] = None,
        placeholder: Optional[str] = None,
        pointer: Optional[bool] = None,
        popover_props: Optional[dict] = None,
        presets: Optional[list] = None,
        previous_icon: Optional[RouteLitElement] = None,
        previous_label: Optional[str] = None,
        radius: Optional[Union[str, int]] = None,
        read_only: Optional[bool] = None,
        required: Optional[bool] = None,
        right_section: Optional[RouteLitElement] = None,
        right_section_pointer_events: Optional[str] = None,
        right_section_props: Optional[dict] = None,
        right_section_width: Optional[str] = None,
        size: Optional[str] = None,
        sort_dates: Optional[bool] = None,
        type: Optional[str] = None,  # noqa: A002
        value_format: Optional[str] = None,
        weekday_format: Optional[str] = None,
        weekend_days: Optional[list] = None,
        with_asterisk: Optional[bool] = None,
        with_cell_spacing: Optional[bool] = None,
        with_error_styles: Optional[bool] = None,
        with_week_numbers: Optional[bool] = None,
        wrapper_props: Optional[dict] = None,
        year_label_format: Optional[str] = None,
        years_list_format: Optional[str] = None,
        **kwargs: Any,
    ) -> Optional[Union[datetime.date, list[datetime.date], tuple[datetime.date, datetime.date]]]:
        """
        Text input with integrated date picker dropdown.

        Args:
            label (str): Field label.
            value (Optional[...]): Current value in the selected mode.
            key (Optional[str]): Explicit element key.
            description (Optional[str]): Helper text.
            on_change (Optional[Callable[[Any], None]]): Change handler.
            allow_deselect (Optional[bool]): Allow clearing selection.
            allow_single_date_in_range (Optional[bool]): Allow single date in range mode.
            aria_labels (Optional[dict]): ARIA labels.
            clear_button_props (Optional[dict]): Clear button props.
            clearable (Optional[bool]): Enable clear button.
            close_on_change (Optional[bool]): Close dropdown on change.
            columns_to_scroll (Optional[int]): Months to scroll.
            decade_label_format (Optional[str]): Decade label format.
            default_level (Optional[Literal["month", "year", "decade"]]): Initial calendar level.
            description_props (Optional[dict]): Description props.
            disabled (Optional[bool]): Disable interaction.
            dropdown_type (Optional[Literal["modal", "popover"]]): Dropdown type.
            enable_keyboard_navigation (Optional[bool]): Enable keyboard navigation.
            error (Optional[str]): Error message.
            error_props (Optional[dict]): Error props.
            first_day_of_week (Optional[Literal[0,1,2,3,4,5,6]]): First day of week.
            header_controls_order (Optional[list[...]]): Header controls order.
            hide_outside_dates (Optional[bool]): Hide outside month dates.
            hide_weekdays (Optional[bool]): Hide weekday labels.
            highlight_today (Optional[bool]): Highlight current date.
            input_size (Optional[str]): Control size.
            input_wrapper_order (Optional[list[Literal["input","label","description","error"]]]): Wrapper parts order.
            label_props (Optional[dict]): Label props.
            label_separator (Optional[str]): Separator for range values.
            left_section (Optional[RouteLitElement]): Left adornment.
            left_section_pointer_events (Optional[str]): Pointer events for left section.
            left_section_props (Optional[dict]): Left adornment props.
            left_section_width (Optional[str]): Left adornment width.
            level (Optional[Literal["month", "year", "decade"]]): Initial calendar level.
            locale (Optional[str]): Locale code.
            max_date (Optional[Union[str, datetime.date]]): Max date.
            max_level (Optional[Literal["month", "year", "decade"]]): Max calendar level.
            min_date (Optional[Union[str, datetime.date]]): Min date.
            modal_props (Optional[dict]): Modal props.
            month_label_format (Optional[str]): Month label format.
            months_list_format (Optional[str]): Months list format.
            next_icon (Optional[RouteLitElement]): Next button icon.
            next_label (Optional[str]): Next button label.
            number_of_columns (Optional[int]): Months displayed.
            placeholder (Optional[str]): Input placeholder.
            pointer (Optional[bool]): Use pointer cursor.
            popover_props (Optional[dict]): Popover props.
            presets (Optional[list]): Preset ranges.
            previous_icon (Optional[RouteLitElement]): Previous button icon.
            previous_label (Optional[str]): Previous button label.
            radius (Optional[Union[str, int]]): Corner radius.
            read_only (Optional[bool]): Read-only state.
            required (Optional[bool]): Mark as required.
            right_section (Optional[RouteLitElement]): Right adornment.
            right_section_pointer_events (Optional[str]): Pointer events for right section.
            right_section_props (Optional[dict]): Right adornment props.
            right_section_width (Optional[str]): Right adornment width.
            size (Optional[str]): Control size.
            sort_dates (Optional[bool]): Sort selected dates.
            type (Optional[str]): Picker mode.
            value_format (Optional[str]): Output value format.
            weekday_format (Optional[str]): Weekday label format.
            weekend_days (Optional[list]): Weekend days indices.
            with_asterisk (Optional[bool]): Show required asterisk.
            with_cell_spacing (Optional[bool]): Add spacing between cells.
            with_error_styles (Optional[bool]): Apply error styles.
            with_week_numbers (Optional[bool]): Show week numbers.
            wrapper_props (Optional[dict]): Wrapper props.
            year_label_format (Optional[str]): Year label format.
            years_list_format (Optional[str]): Years list format.
            kwargs: Additional props to set.

        Returns:
            Optional[Union[datetime.date, list[datetime.date], tuple[datetime.date, datetime.date]]]: Current value.
        """
        return cast(
            Optional[
                Union[
                    datetime.date,
                    list[datetime.date],
                    tuple[datetime.date, datetime.date],
                ]
            ],
            self._x_input(
                "datepickerinput",
                key or self._new_widget_id("datepickerinput", label),
                label=label,
                description=description,
                value=value,
                allowDeselect=allow_deselect,
                allowSingleDateInRange=allow_single_date_in_range,
                ariaLabels=aria_labels,
                clearButtonProps=clear_button_props,
                clearable=clearable,
                closeOnChange=close_on_change,
                columnsToScroll=columns_to_scroll,
                decadeLabelFormat=decade_label_format,
                defaultLevel=default_level,
                descriptionProps=description_props,
                disabled=disabled,
                dropdownType=dropdown_type,
                enableKeyboardNavigation=enable_keyboard_navigation,
                error=error,
                errorProps=error_props,
                firstDayOfWeek=first_day_of_week,
                headerControlsOrder=header_controls_order,
                hideOutsideDates=hide_outside_dates,
                hideWeekdays=hide_weekdays,
                highlightToday=highlight_today,
                inputSize=input_size,
                inputWrapperOrder=input_wrapper_order,
                labelProps=label_props,
                labelSeparator=label_separator,
                leftSection=left_section,
                leftSectionPointerEvents=left_section_pointer_events,
                leftSectionProps=left_section_props,
                leftSectionWidth=left_section_width,
                level=level,
                locale=locale,
                maxDate=max_date,
                maxLevel=max_level,
                minDate=min_date,
                modalProps=modal_props,
                monthLabelFormat=month_label_format,
                monthsListFormat=months_list_format,
                nextIcon=next_icon,
                nextLabel=next_label,
                numberOfColumns=number_of_columns,
                on_change=on_change,
                placeholder=placeholder,
                pointer=pointer,
                popoverProps=popover_props,
                presets=presets,
                previousIcon=previous_icon,
                previousLabel=previous_label,
                radius=radius,
                readOnly=read_only,
                required=required,
                rightSection=right_section,
                rightSectionPointerEvents=right_section_pointer_events,
                rightSectionProps=right_section_props,
                rightSectionWidth=right_section_width,
                size=size,
                sortDates=sort_dates,
                type=type,
                valueFormat=value_format,
                weekdayFormat=weekday_format,
                weekendDays=weekend_days,
                withAsterisk=with_asterisk,
                withCellSpacing=with_cell_spacing,
                withErrorStyles=with_error_styles,
                withWeekNumbers=with_week_numbers,
                wrapperProps=wrapper_props,
                yearLabelFormat=year_label_format,
                yearsListFormat=years_list_format,
                rl_format_func=self._format_date_picker,
                **kwargs,
            ),
        )

    def _format_time(self, value: Optional[Union[datetime.time, str]]) -> Optional[datetime.time]:
        if value is None:
            return None
        if isinstance(value, str):
            return datetime.time.fromisoformat(value)
        return value

    def time_input(
        self,
        label: str,
        value: Optional[Union[datetime.time, str]] = None,
        *,
        key: Optional[str] = None,
        on_change: Optional[Callable[[Any], None]] = None,
        description: Optional[Any] = None,
        description_props: Optional[dict[str, Any]] = None,
        disabled: Optional[bool] = None,
        error: Optional[Any] = None,
        error_props: Optional[dict[str, Any]] = None,
        input_size: Optional[str] = None,
        input_wrapper_order: Optional[list[str]] = None,
        label_props: Optional[dict[str, Any]] = None,
        left_section: Optional[Any] = None,
        left_section_pointer_events: Optional[str] = None,
        left_section_props: Optional[dict[str, Any]] = None,
        left_section_width: Optional[Union[str, int]] = None,
        max_time: Optional[str] = None,
        min_time: Optional[str] = None,
        pointer: Optional[bool] = None,
        radius: Optional[Union[str, int]] = None,
        required: Optional[bool] = None,
        right_section: Optional[Any] = None,
        right_section_pointer_events: Optional[str] = None,
        right_section_props: Optional[dict[str, Any]] = None,
        right_section_width: Optional[Union[str, int]] = None,
        size: Optional[str] = None,
        with_asterisk: Optional[bool] = None,
        with_error_styles: Optional[bool] = None,
        with_seconds: Optional[bool] = None,
        wrapper_props: Optional[dict[str, Any]] = None,
        **kwargs: Any,
    ) -> Optional[datetime.time]:
        """
        Time input with support for parsing from string.

        Args:
            label (str): Field label.
            value (Optional[Union[datetime.time, str]]): Current value.
            key (Optional[str]): Explicit element key.
            on_change (Optional[Callable[[Any], None]]): Change handler.
            description (Optional[Any]): Contents of Input.Description component.
            description_props (Optional[dict[str, Any]]): Props passed to Input.Description component.
            disabled (Optional[bool]): Sets disabled attribute on input element.
            error (Optional[Any]): Contents of Input.Error component.
            error_props (Optional[dict[str, Any]]): Props passed to Input.Error component.
            input_size (Optional[str]): Size attribute for input element.
            input_wrapper_order (Optional[list[str]]): Controls order of elements.
            label_props (Optional[dict[str, Any]]): Props passed to Input.Label component.
            left_section (Optional[Any]): Content displayed on left side of input.
            left_section_pointer_events (Optional[str]): Pointer events style for left section.
            left_section_props (Optional[dict[str, Any]]): Props for left section element.
            left_section_width (Optional[Union[str, int]]): Width of left section.
            max_time (Optional[str]): Maximum possible time value.
            min_time (Optional[str]): Minimum possible time value.
            pointer (Optional[bool]): Whether input should have pointer cursor.
            radius (Optional[Union[str, int]]): Border radius value.
            required (Optional[bool]): Whether input is required.
            right_section (Optional[Any]): Content displayed on right side of input.
            right_section_pointer_events (Optional[str]): Pointer events style for right section.
            right_section_props (Optional[dict[str, Any]]): Props for right section element.
            right_section_width (Optional[Union[str, int]]): Width of right section.
            size (Optional[str]): Controls input height and padding.
            with_asterisk (Optional[bool]): Whether to show required asterisk.
            with_error_styles (Optional[bool]): Whether to show error styling.
            with_seconds (Optional[bool]): Whether to show seconds input.
            wrapper_props (Optional[dict[str, Any]]): Props for root element.
            kwargs: Additional props to set.

        Returns:
            Optional[datetime.time]: Current value.
        """
        return cast(
            Optional[datetime.time],
            self._x_input(
                "timeinput",
                key=key or self._new_widget_id("timeinput", label),
                label=label,
                value=value,
                description=description,
                descriptionProps=description_props,
                disabled=disabled,
                error=error,
                errorProps=error_props,
                inputSize=input_size,
                inputWrapperOrder=input_wrapper_order,
                labelProps=label_props,
                leftSection=left_section,
                leftSectionPointerEvents=left_section_pointer_events,
                leftSectionProps=left_section_props,
                leftSectionWidth=left_section_width,
                maxTime=max_time,
                minTime=min_time,
                pointer=pointer,
                radius=radius,
                required=required,
                rightSection=right_section,
                rightSectionPointerEvents=right_section_pointer_events,
                rightSectionProps=right_section_props,
                rightSectionWidth=right_section_width,
                size=size,
                withAsterisk=with_asterisk,
                withErrorStyles=with_error_styles,
                withSeconds=with_seconds,
                wrapperProps=wrapper_props,
                rl_format_func=self._format_time,
                on_change=on_change,
                **kwargs,
            ),
        )

    def time_picker(
        self,
        label: str,
        value: Optional[Union[datetime.time, str]] = None,
        *,
        key: Optional[str] = None,
        on_change: Optional[Callable[[Any], None]] = None,
        am_pm_input_label: Optional[str] = None,
        am_pm_labels: Optional[dict[str, str]] = None,
        am_pm_select_props: Optional[dict[str, Any]] = None,
        clear_button_props: Optional[dict[str, Any]] = None,
        clearable: Optional[bool] = None,
        description: Optional[Any] = None,
        description_props: Optional[dict[str, Any]] = None,
        disabled: Optional[bool] = None,
        error: Optional[Any] = None,
        error_props: Optional[dict[str, Any]] = None,
        form: Optional[str] = None,
        format: Optional[str] = None,  # noqa: A002
        hidden_input_props: Optional[dict[str, Any]] = None,
        hours_input_label: Optional[str] = None,
        hours_input_props: Optional[dict[str, Any]] = None,
        hours_step: Optional[int] = None,
        input_size: Optional[str] = None,
        input_wrapper_order: Optional[list[str]] = None,
        label_props: Optional[dict[str, Any]] = None,
        left_section: Optional[Any] = None,
        left_section_pointer_events: Optional[str] = None,
        left_section_props: Optional[dict[str, Any]] = None,
        left_section_width: Optional[Union[str, int]] = None,
        max: Optional[str] = None,  # noqa: A002
        max_dropdown_content_height: Optional[int] = None,
        min: Optional[str] = None,  # noqa: A002
        minutes_input_label: Optional[str] = None,
        minutes_input_props: Optional[dict[str, Any]] = None,
        minutes_step: Optional[int] = None,
        name: Optional[str] = None,
        pointer: Optional[bool] = None,
        popover_props: Optional[dict[str, Any]] = None,
        presets: Optional[Any] = None,
        radius: Optional[Union[str, int]] = None,
        read_only: Optional[bool] = None,
        required: Optional[bool] = None,
        right_section: Optional[Any] = None,
        right_section_pointer_events: Optional[str] = None,
        right_section_props: Optional[dict[str, Any]] = None,
        right_section_width: Optional[Union[str, int]] = None,
        scroll_area_props: Optional[dict[str, Any]] = None,
        seconds_input_label: Optional[str] = None,
        seconds_input_props: Optional[dict[str, Any]] = None,
        seconds_step: Optional[int] = None,
        size: Optional[str] = None,
        with_asterisk: Optional[bool] = None,
        with_dropdown: Optional[bool] = None,
        with_error_styles: Optional[bool] = None,
        with_seconds: Optional[bool] = None,
        wrapper_props: Optional[dict[str, Any]] = None,
        **kwargs: Any,
    ) -> Optional[datetime.time]:
        """
        Time picker with support for parsing from string.

        Args:
            label (str): Label text.
            value (Optional[Union[datetime.time, str]]): Current value.
            key (Optional[str]): Unique key for the widget.
            on_change (Optional[Callable[[Any], None]]): Called when value changes.
            am_pm_input_label (Optional[str]): aria-label of am/pm input.
            am_pm_labels (Optional[dict[str, str]]): Labels used for am/pm values.
            am_pm_select_props (Optional[dict[str, Any]]): Props for am/pm select.
            clear_button_props (Optional[dict[str, Any]]): Props for clear button.
            clearable (Optional[bool]): Whether clear button should be displayed.
            description (Optional[Any]): Description content.
            description_props (Optional[dict[str, Any]]): Props for description.
            disabled (Optional[bool]): Whether component is disabled.
            error (Optional[Any]): Error content.
            error_props (Optional[dict[str, Any]]): Props for error.
            form (Optional[str]): Form prop for hidden input.
            format (Optional[str]): Time format ('12h' or '24h').
            hidden_input_props (Optional[dict[str, Any]]): Props for hidden input.
            hours_input_label (Optional[str]): aria-label of hours input.
            hours_input_props (Optional[dict[str, Any]]): Props for hours input.
            hours_step (Optional[int]): Hours increment/decrement step.
            input_size (Optional[str]): Size attribute for input element.
            input_wrapper_order (Optional[list[str]]): Order of elements.
            label_props (Optional[dict[str, Any]]): Props for label.
            left_section (Optional[Any]): Left section content.
            left_section_pointer_events (Optional[str]): Left section pointer events.
            left_section_props (Optional[dict[str, Any]]): Props for left section.
            left_section_width (Optional[Union[str, int]]): Left section width.
            max (Optional[str]): Max time value (hh:mm:ss).
            max_dropdown_content_height (Optional[int]): Max dropdown height in px.
            min (Optional[str]): Min time value (hh:mm:ss).
            minutes_input_label (Optional[str]): aria-label of minutes input.
            minutes_input_props (Optional[dict[str, Any]]): Props for minutes input.
            minutes_step (Optional[int]): Minutes increment/decrement step.
            name (Optional[str]): Name prop for hidden input.
            pointer (Optional[bool]): Whether to show pointer cursor.
            popover_props (Optional[dict[str, Any]]): Props for popover.
            presets (Optional[Any]): Time presets for dropdown.
            radius (Optional[Union[str, int]]): Border radius.
            read_only (Optional[bool]): Whether value is read-only.
            required (Optional[bool]): Whether field is required.
            right_section (Optional[Any]): Right section content.
            right_section_pointer_events (Optional[str]): Right section pointer events.
            right_section_props (Optional[dict[str, Any]]): Props for right section.
            right_section_width (Optional[Union[str, int]]): Right section width.
            scroll_area_props (Optional[dict[str, Any]]): Props for scroll areas.
            seconds_input_label (Optional[str]): aria-label of seconds input.
            seconds_input_props (Optional[dict[str, Any]]): Props for seconds input.
            seconds_step (Optional[int]): Seconds increment/decrement step.
            size (Optional[str]): Controls input height and padding.
            value (Optional[Union[datetime.time, str]]): Current value.
            with_asterisk (Optional[bool]): Whether to show required asterisk.
            with_dropdown (Optional[bool]): Whether to show dropdown.
            with_error_styles (Optional[bool]): Whether to show error styling.
            with_seconds (Optional[bool]): Whether to show seconds input.
            wrapper_props (Optional[dict[str, Any]]): Props for root element.
            kwargs: Additional props to set.

        Returns:
            Optional[datetime.time]: Current value.
        """
        return cast(
            Optional[datetime.time],
            self._x_input(
                "timepicker",
                key=key or self._new_widget_id("timepicker", label),
                label=label,
                value=value,
                amPmInputLabel=am_pm_input_label,
                amPmLabels=am_pm_labels,
                amPmSelectProps=am_pm_select_props,
                clearButtonProps=clear_button_props,
                clearable=clearable,
                description=description,
                descriptionProps=description_props,
                disabled=disabled,
                error=error,
                errorProps=error_props,
                form=form,
                format=format,
                hiddenInputProps=hidden_input_props,
                hoursInputLabel=hours_input_label,
                hoursInputProps=hours_input_props,
                hoursStep=hours_step,
                inputSize=input_size,
                inputWrapperOrder=input_wrapper_order,
                labelProps=label_props,
                leftSection=left_section,
                leftSectionPointerEvents=left_section_pointer_events,
                leftSectionProps=left_section_props,
                leftSectionWidth=left_section_width,
                max=max,
                maxDropdownContentHeight=max_dropdown_content_height,
                min=min,
                minutesInputLabel=minutes_input_label,
                minutesInputProps=minutes_input_props,
                minutesStep=minutes_step,
                name=name,
                pointer=pointer,
                popoverProps=popover_props,
                presets=presets,
                radius=radius,
                readOnly=read_only,
                required=required,
                rightSection=right_section,
                rightSectionPointerEvents=right_section_pointer_events,
                rightSectionProps=right_section_props,
                rightSectionWidth=right_section_width,
                scrollAreaProps=scroll_area_props,
                secondsInputLabel=seconds_input_label,
                secondsInputProps=seconds_input_props,
                secondsStep=seconds_step,
                size=size,
                withAsterisk=with_asterisk,
                withDropdown=with_dropdown,
                withErrorStyles=with_error_styles,
                withSeconds=with_seconds,
                wrapperProps=wrapper_props,
                rl_format_func=self._format_time,
                on_change=on_change,
                **kwargs,
            ),
        )

    def area_chart(
        self,
        data: list,
        data_key: str,
        series: list[dict[str, Any]],
        *,
        key: Optional[str] = None,
        active_dot_props: Optional[dict[str, Any]] = None,
        area_chart_props: Optional[dict[str, Any]] = None,
        area_props: Optional[dict[str, Any]] = None,
        connect_nulls: Optional[bool] = None,
        curve_type: Optional[str] = None,
        dot_props: Optional[dict[str, Any]] = None,
        fill_opacity: float = 0.2,
        grid_axis: Optional[str] = None,
        grid_color: Optional[str] = None,
        grid_props: Optional[dict[str, Any]] = None,
        legend_props: Optional[dict[str, Any]] = None,
        orientation: Optional[str] = None,
        reference_lines: Optional[list[dict[str, Any]]] = None,
        right_y_axis_label: Optional[str] = None,
        right_y_axis_props: Optional[dict[str, Any]] = None,
        split_colors: Optional[list[str]] = None,
        split_offset: Optional[float] = None,
        stroke_dasharray: Optional[Union[str, int]] = None,
        stroke_width: Optional[int] = None,
        text_color: Optional[str] = None,
        tick_line: Optional[str] = None,
        tooltip_animation_duration: int = 0,
        tooltip_props: Optional[dict[str, Any]] = None,
        type: Optional[str] = None,  # noqa: A002
        unit: Optional[str] = None,
        with_dots: Optional[bool] = None,
        with_gradient: Optional[bool] = None,
        with_legend: Optional[bool] = None,
        with_point_labels: Optional[bool] = None,
        with_right_y_axis: Optional[bool] = None,
        with_tooltip: Optional[bool] = None,
        with_x_axis: Optional[bool] = None,
        with_y_axis: Optional[bool] = None,
        x_axis_label: Optional[str] = None,
        x_axis_props: Optional[dict[str, Any]] = None,
        y_axis_label: Optional[str] = None,
        y_axis_props: Optional[dict[str, Any]] = None,
        **kwargs: Any,
    ) -> "RLBuilder":
        """
        Area chart for time series or continuous data.

        Args:
            data (list): Dataset.
            data_key (str): X-axis data key.
            series (list[dict[str, Any]]): Series configuration.
            key (Optional[str]): Explicit element key.
            active_dot_props (Optional[dict[str, Any]]): Active dot props.
            area_chart_props (Optional[dict[str, Any]]): Chart container props.
            area_props (Optional[dict[str, Any]]): Area props.
            connect_nulls (Optional[bool]): Connect across null values.
            curve_type (Optional[str]): Curve interpolation type.
            dot_props (Optional[dict[str, Any]]): Dot props.
            fill_opacity (float): Fill opacity for area.
            grid_axis (Optional[str]): Grid axis.
            grid_color (Optional[str]): Grid color.
            grid_props (Optional[dict[str, Any]]): Grid props.
            legend_props (Optional[dict[str, Any]]): Legend props.
            orientation (Optional[str]): Chart orientation.
            reference_lines (Optional[list[dict[str, Any]]]): Reference lines.
            right_y_axis_label (Optional[str]): Secondary Y axis label.
            right_y_axis_props (Optional[dict[str, Any]]): Secondary Y axis props.
            split_colors (Optional[list[str]]): Split area colors.
            split_offset (Optional[float]): Split offset value.
            stroke_dasharray (Optional[Union[str, int]]): Stroke dash pattern.
            stroke_width (Optional[int]): Line width.
            text_color (Optional[str]): Text color.
            tick_line (Optional[str]): Tick line display.
            tooltip_animation_duration (int): Tooltip animation duration.
            tooltip_props (Optional[dict[str, Any]]): Tooltip props.
            type (Optional[str]): Chart type variant.
            unit (Optional[str]): Unit suffix.
            with_dots (Optional[bool]): Show dots.
            with_gradient (Optional[bool]): Fill with gradient.
            with_legend (Optional[bool]): Show legend.
            with_point_labels (Optional[bool]): Show point labels.
            with_right_y_axis (Optional[bool]): Enable right Y axis.
            with_tooltip (Optional[bool]): Show tooltip.
            with_x_axis (Optional[bool]): Show X axis.
            with_y_axis (Optional[bool]): Show Y axis.
            x_axis_label (Optional[str]): X axis label.
            x_axis_props (Optional[dict[str, Any]]): X axis props.
            y_axis_label (Optional[str]): Y axis label.
            y_axis_props (Optional[dict[str, Any]]): Y axis props.
            kwargs: Additional props to set.

        Returns:
            RLBuilder: A nested builder scoped to the area chart element.
        """
        return self._create_builder_element(  # type: ignore[return-value]
            name="areachart",
            key=key or self._new_text_id("areachart"),
            props={
                "data": data,
                "dataKey": data_key,
                "series": series,
                "activeDotProps": active_dot_props,
                "areaChartProps": area_chart_props,
                "areaProps": area_props,
                "connectNulls": connect_nulls,
                "curveType": curve_type,
                "dotProps": dot_props,
                "fillOpacity": fill_opacity,
                "gridAxis": grid_axis,
                "gridColor": grid_color,
                "gridProps": grid_props,
                "legendProps": legend_props,
                "orientation": orientation,
                "referenceLines": reference_lines,
                "rightYAxisLabel": right_y_axis_label,
                "rightYAxisProps": right_y_axis_props,
                "splitColors": split_colors,
                "splitOffset": split_offset,
                "strokeDasharray": stroke_dasharray,
                "strokeWidth": stroke_width,
                "textColor": text_color,
                "tickLine": tick_line,
                "tooltipAnimationDuration": tooltip_animation_duration,
                "tooltipProps": tooltip_props,
                "type": type,
                "unit": unit,
                "withDots": with_dots,
                "withGradient": with_gradient,
                "withLegend": with_legend,
                "withPointLabels": with_point_labels,
                "withRightYAxis": with_right_y_axis,
                "withTooltip": with_tooltip,
                "withXAxis": with_x_axis,
                "withYAxis": with_y_axis,
                "xAxisLabel": x_axis_label,
                "xAxisProps": x_axis_props,
                "yAxisLabel": y_axis_label,
                "yAxisProps": y_axis_props,
                **kwargs,
            },
        )

    def bar_chart(
        self,
        data: list,
        data_key: str,
        series: list[dict[str, Any]],
        *,
        bar_chart_props: Optional[dict[str, Any]] = None,
        bar_label_color: Optional[str] = None,
        bar_props: Optional[dict[str, Any]] = None,
        cursor_fill: Optional[str] = None,
        fill_opacity: Optional[float] = None,
        get_bar_color: Optional[Callable[[float, dict[str, Any]], str]] = None,
        grid_axis: Optional[Literal["none", "x", "y", "xy"]] = None,
        grid_color: Optional[str] = None,
        grid_props: Optional[dict[str, Any]] = None,
        key: Optional[str] = None,
        legend_props: Optional[dict[str, Any]] = None,
        max_bar_width: Optional[int] = None,
        min_bar_size: Optional[int] = None,
        orientation: Optional[Literal["horizontal", "vertical"]] = None,
        reference_lines: Optional[list[dict[str, Any]]] = None,
        right_y_axis_label: Optional[str] = None,
        right_y_axis_props: Optional[dict[str, Any]] = None,
        stroke_dasharray: Optional[Union[str, int]] = None,
        text_color: Optional[str] = None,
        tick_line: Optional[Literal["none", "x", "y", "xy"]] = None,
        tooltip_animation_duration: Optional[int] = None,
        tooltip_props: Optional[dict[str, Any]] = None,
        type: Optional[str] = None,  # noqa: A002
        unit: Optional[str] = None,
        value_label_props: Optional[dict[str, Any]] = None,
        with_bar_value_label: Optional[bool] = None,
        with_legend: Optional[bool] = None,
        with_right_y_axis: Optional[bool] = None,
        with_tooltip: Optional[bool] = None,
        with_x_axis: Optional[bool] = None,
        with_y_axis: Optional[bool] = None,
        x_axis_label: Optional[str] = None,
        x_axis_props: Optional[dict[str, Any]] = None,
        y_axis_label: Optional[str] = None,
        y_axis_props: Optional[dict[str, Any]] = None,
        **kwargs: Any,
    ) -> "RLBuilder":
        """
        Bar chart for categorical or time series data.

        Args:
            data (list): Dataset.
            data_key (str): X-axis data key.
            series (list[dict[str, Any]]): Series configuration.
            bar_chart_props (Optional[dict[str, Any]]): Chart container props.
            bar_label_color (Optional[str]): Value label color.
            bar_props (Optional[dict[str, Any]]): Bar props.
            cursor_fill (Optional[str]): Cursor overlay color.
            fill_opacity (Optional[float]): Bar fill opacity.
            get_bar_color (Optional[Callable[[float, dict[str, Any]], str]]): Dynamic color callback.
            grid_axis (Optional[Literal["none","x","y","xy"]]): Grid axis.
            grid_color (Optional[str]): Grid color.
            grid_props (Optional[dict[str, Any]]): Grid props.
            key (Optional[str]): Explicit element key.
            legend_props (Optional[dict[str, Any]]): Legend props.
            max_bar_width (Optional[int]): Max bar width.
            min_bar_size (Optional[int]): Min bar size.
            orientation (Optional[Literal["horizontal","vertical"]]): Orientation.
            reference_lines (Optional[list[dict[str, Any]]]): Reference lines.
            right_y_axis_label (Optional[str]): Secondary Y axis label.
            right_y_axis_props (Optional[dict[str, Any]]): Secondary Y axis props.
            stroke_dasharray (Optional[Union[str, int]]): Border dash pattern.
            text_color (Optional[str]): Text color.
            tick_line (Optional[Literal["none","x","y","xy"]]): Tick line display.
            tooltip_animation_duration (Optional[int]): Tooltip animation duration.
            tooltip_props (Optional[dict[str, Any]]): Tooltip props.
            type (Optional[str]): Chart type variant.
            unit (Optional[str]): Unit suffix.
            value_label_props (Optional[dict[str, Any]]): Value label props.
            with_bar_value_label (Optional[bool]): Show value labels above bars.
            with_legend (Optional[bool]): Show legend.
            with_right_y_axis (Optional[bool]): Enable right Y axis.
            with_tooltip (Optional[bool]): Show tooltip.
            with_x_axis (Optional[bool]): Show X axis.
            with_y_axis (Optional[bool]): Show Y axis.
            x_axis_label (Optional[str]): X axis label.
            x_axis_props (Optional[dict[str, Any]]): X axis props.
            y_axis_label (Optional[str]): Y axis label.
            y_axis_props (Optional[dict[str, Any]]): Y axis props.
            kwargs: Additional props to set.

        Returns:
            RLBuilder: A nested builder scoped to the bar chart element.
        """
        return self._create_builder_element(  # type: ignore[return-value]
            name="barchart",
            key=key or self._new_text_id("barchart"),
            props={
                "data": data,
                "dataKey": data_key,
                "series": series,
                "barChartProps": bar_chart_props,
                "barLabelColor": bar_label_color,
                "barProps": bar_props,
                "cursorFill": cursor_fill,
                "fillOpacity": fill_opacity,
                "getBarColor": get_bar_color,
                "gridAxis": grid_axis,
                "gridColor": grid_color,
                "gridProps": grid_props,
                "legendProps": legend_props,
                "maxBarWidth": max_bar_width,
                "minBarSize": min_bar_size,
                "orientation": orientation,
                "referenceLines": reference_lines,
                "rightYAxisLabel": right_y_axis_label,
                "rightYAxisProps": right_y_axis_props,
                "strokeDasharray": stroke_dasharray,
                "textColor": text_color,
                "tickLine": tick_line,
                "tooltipAnimationDuration": tooltip_animation_duration,
                "tooltipProps": tooltip_props,
                "type": type,
                "unit": unit,
                "valueLabelProps": value_label_props,
                "withBarValueLabel": with_bar_value_label,
                "withLegend": with_legend,
                "withRightYAxis": with_right_y_axis,
                "withTooltip": with_tooltip,
                "withXAxis": with_x_axis,
                "withYAxis": with_y_axis,
                "xAxisLabel": x_axis_label,
                "xAxisProps": x_axis_props,
                "yAxisLabel": y_axis_label,
                "yAxisProps": y_axis_props,
                **kwargs,
            },
        )

    def line_chart(
        self,
        data: list,
        data_key: str,
        series: list[dict[str, Any]],
        *,
        key: Optional[str] = None,
        active_dot_props: Optional[dict[str, Any]] = None,
        connect_nulls: Optional[bool] = None,
        curve_type: Optional[str] = None,
        dot_props: Optional[dict[str, Any]] = None,
        fill_opacity: Optional[float] = None,
        gradient_stops: Optional[list[dict[str, Any]]] = None,
        grid_axis: Optional[str] = None,
        grid_color: Optional[str] = None,
        grid_props: Optional[dict[str, Any]] = None,
        legend_props: Optional[dict[str, Any]] = None,
        line_chart_props: Optional[dict[str, Any]] = None,
        line_props: Optional[dict[str, Any]] = None,
        orientation: Optional[str] = None,
        reference_lines: Optional[list[dict[str, Any]]] = None,
        right_y_axis_label: Optional[str] = None,
        right_y_axis_props: Optional[dict[str, Any]] = None,
        stroke_dasharray: Optional[str] = None,
        stroke_width: Optional[float] = None,
        text_color: Optional[str] = None,
        tick_line: Optional[str] = None,
        tooltip_animation_duration: Optional[int] = None,
        tooltip_props: Optional[dict[str, Any]] = None,
        type: Optional[str] = None,  # noqa: A002
        unit: Optional[str] = None,
        with_dots: Optional[bool] = None,
        with_legend: Optional[bool] = None,
        with_point_labels: Optional[bool] = None,
        with_right_y_axis: Optional[bool] = None,
        with_tooltip: Optional[bool] = None,
        with_x_axis: Optional[bool] = None,
        with_y_axis: Optional[bool] = None,
        x_axis_label: Optional[str] = None,
        x_axis_props: Optional[dict[str, Any]] = None,
        y_axis_label: Optional[str] = None,
        y_axis_props: Optional[dict[str, Any]] = None,
        **kwargs: Any,
    ) -> "RLBuilder":
        """
        Line chart for continuous data.

        Args:
            data (list): Dataset.
            data_key (str): X-axis data key.
            series (list[dict[str, Any]]): Series configuration.
            key (Optional[str]): Explicit element key.
            active_dot_props (Optional[dict[str, Any]]): Active dot props.
            connect_nulls (Optional[bool]): Connect across null values.
            curve_type (Optional[str]): Curve interpolation type.
            dot_props (Optional[dict[str, Any]]): Dot props.
            fill_opacity (Optional[float]): Area fill opacity for gradients.
            gradient_stops (Optional[list[dict[str, Any]]]): Gradient configuration.
            grid_axis (Optional[str]): Grid axis.
            grid_color (Optional[str]): Grid color.
            grid_props (Optional[dict[str, Any]]): Grid props.
            legend_props (Optional[dict[str, Any]]): Legend props.
            line_chart_props (Optional[dict[str, Any]]): Chart container props.
            line_props (Optional[dict[str, Any]]): Line props.
            orientation (Optional[str]): Chart orientation.
            reference_lines (Optional[list[dict[str, Any]]]): Reference lines.
            right_y_axis_label (Optional[str]): Secondary Y axis label.
            right_y_axis_props (Optional[dict[str, Any]]): Secondary Y axis props.
            stroke_dasharray (Optional[str]): Line dash pattern.
            stroke_width (Optional[float]): Line width.
            text_color (Optional[str]): Text color.
            tick_line (Optional[str]): Tick line display.
            tooltip_animation_duration (Optional[int]): Tooltip animation duration.
            tooltip_props (Optional[dict[str, Any]]): Tooltip props.
            type (Optional[str]): Chart type variant.
            unit (Optional[str]): Unit suffix.
            with_dots (Optional[bool]): Show dots.
            with_legend (Optional[bool]): Show legend.
            with_point_labels (Optional[bool]): Show point labels.
            with_right_y_axis (Optional[bool]): Enable right Y axis.
            with_tooltip (Optional[bool]): Show tooltip.
            with_x_axis (Optional[bool]): Show X axis.
            with_y_axis (Optional[bool]): Show Y axis.
            x_axis_label (Optional[str]): X axis label.
            x_axis_props (Optional[dict[str, Any]]): X axis props.
            y_axis_label (Optional[str]): Y axis label.
            y_axis_props (Optional[dict[str, Any]]): Y axis props.
            kwargs: Additional props to set.

        Returns:
            RLBuilder: A nested builder scoped to the line chart element.
        """
        return self._create_builder_element(  # type: ignore[return-value]
            name="linechart",
            key=key or self._new_text_id("linechart"),
            props={
                "data": data,
                "dataKey": data_key,
                "series": series,
                "activeDotProps": active_dot_props,
                "connectNulls": connect_nulls,
                "curveType": curve_type,
                "dotProps": dot_props,
                "fillOpacity": fill_opacity,
                "gradientStops": gradient_stops,
                "gridAxis": grid_axis,
                "gridColor": grid_color,
                "gridProps": grid_props,
                "legendProps": legend_props,
                "lineChartProps": line_chart_props,
                "lineProps": line_props,
                "orientation": orientation,
                "referenceLines": reference_lines,
                "rightYAxisLabel": right_y_axis_label,
                "rightYAxisProps": right_y_axis_props,
                "strokeDasharray": stroke_dasharray,
                "strokeWidth": stroke_width,
                "textColor": text_color,
                "tickLine": tick_line,
                "tooltipAnimationDuration": tooltip_animation_duration,
                "tooltipProps": tooltip_props,
                "type": type,
                "unit": unit,
                "withDots": with_dots,
                "withLegend": with_legend,
                "withPointLabels": with_point_labels,
                "withRightYAxis": with_right_y_axis,
                "withTooltip": with_tooltip,
                "withXAxis": with_x_axis,
                "withYAxis": with_y_axis,
                "xAxisLabel": x_axis_label,
                "xAxisProps": x_axis_props,
                "yAxisLabel": y_axis_label,
                "yAxisProps": y_axis_props,
                **kwargs,
            },
        )

    def composite_chart(
        self,
        data: list,
        data_key: str,
        series: list[dict[str, Any]],
        *,
        key: Optional[str] = None,
        active_dot_props: Optional[dict[str, Any]] = None,
        area_props: Optional[dict[str, Any]] = None,
        bar_props: Optional[dict[str, Any]] = None,
        children: Optional[Any] = None,
        composed_chart_props: Optional[dict[str, Any]] = None,
        connect_nulls: Optional[bool] = None,
        curve_type: Optional[str] = None,
        dot_props: Optional[dict[str, Any]] = None,
        grid_axis: Optional[str] = None,
        grid_color: Optional[str] = None,
        grid_props: Optional[dict[str, Any]] = None,
        legend_props: Optional[dict[str, Any]] = None,
        line_props: Optional[dict[str, Any]] = None,
        max_bar_width: Optional[int] = None,
        min_bar_size: Optional[int] = None,
        reference_lines: Optional[list[dict[str, Any]]] = None,
        right_y_axis_label: Optional[str] = None,
        right_y_axis_props: Optional[dict[str, Any]] = None,
        stroke_dasharray: Optional[str] = None,
        stroke_width: Optional[int] = None,
        text_color: Optional[str] = None,
        tick_line: Optional[str] = None,
        tooltip_animation_duration: Optional[int] = None,
        tooltip_props: Optional[dict[str, Any]] = None,
        unit: Optional[str] = None,
        with_bar_value_label: Optional[bool] = None,
        with_dots: Optional[bool] = None,
        with_legend: Optional[bool] = None,
        with_point_labels: Optional[bool] = None,
        with_right_y_axis: Optional[bool] = None,
        with_tooltip: Optional[bool] = None,
        with_x_axis: Optional[bool] = None,
        with_y_axis: Optional[bool] = None,
        x_axis_label: Optional[str] = None,
        x_axis_props: Optional[dict[str, Any]] = None,
        y_axis_label: Optional[str] = None,
        y_axis_props: Optional[dict[str, Any]] = None,
        **kwargs: Any,
    ) -> "RLBuilder":
        """
        Composite chart that can combine bars, lines, and areas.

        Args:
            data (list): Dataset.
            data_key (str): X-axis data key.
            series (list[dict[str, Any]]): Series configuration.
            key (Optional[str]): Explicit element key.
            active_dot_props (Optional[dict[str, Any]]): Active dot props.
            area_props (Optional[dict[str, Any]]): Area props.
            bar_props (Optional[dict[str, Any]]): Bar props.
            children (Optional[Any]): Extra child elements.
            composed_chart_props (Optional[dict[str, Any]]): Chart container props.
            connect_nulls (Optional[bool]): Connect across null values.
            curve_type (Optional[str]): Curve interpolation type.
            dot_props (Optional[dict[str, Any]]): Dot props.
            grid_axis (Optional[str]): Grid axis.
            grid_color (Optional[str]): Grid color.
            grid_props (Optional[dict[str, Any]]): Grid props.
            legend_props (Optional[dict[str, Any]]): Legend props.
            line_props (Optional[dict[str, Any]]): Line props.
            max_bar_width (Optional[int]): Max bar width.
            min_bar_size (Optional[int]): Min bar size.
            reference_lines (Optional[list[dict[str, Any]]]): Reference lines.
            right_y_axis_label (Optional[str]): Secondary Y axis label.
            right_y_axis_props (Optional[dict[str, Any]]): Secondary Y axis props.
            stroke_dasharray (Optional[str]): Stroke dash pattern.
            stroke_width (Optional[int]): Line width.
            text_color (Optional[str]): Text color.
            tick_line (Optional[str]): Tick line display.
            tooltip_animation_duration (Optional[int]): Tooltip animation duration.
            tooltip_props (Optional[dict[str, Any]]): Tooltip props.
            unit (Optional[str]): Unit suffix.
            with_bar_value_label (Optional[bool]): Show value labels on bars.
            with_dots (Optional[bool]): Show dots on lines.
            with_legend (Optional[bool]): Show legend.
            with_point_labels (Optional[bool]): Show point labels on lines.
            with_right_y_axis (Optional[bool]): Enable right Y axis.
            with_tooltip (Optional[bool]): Show tooltip.
            with_x_axis (Optional[bool]): Show X axis.
            with_y_axis (Optional[bool]): Show Y axis.
            x_axis_label (Optional[str]): X axis label.
            x_axis_props (Optional[dict[str, Any]]): X axis props.
            y_axis_label (Optional[str]): Y axis label.
            y_axis_props (Optional[dict[str, Any]]): Y axis props.
            kwargs: Additional props to set.

        Returns:
            RLBuilder: A nested builder scoped to the composite chart element.
        """
        return self._create_builder_element(  # type: ignore[return-value]
            name="compositechart",
            key=key or self._new_text_id("compositechart"),
            props={
                "data": data,
                "dataKey": data_key,
                "series": series,
                "activeDotProps": active_dot_props,
                "areaProps": area_props,
                "barProps": bar_props,
                "children": children,
                "composedChartProps": composed_chart_props,
                "connectNulls": connect_nulls,
                "curveType": curve_type,
                "dotProps": dot_props,
                "gridAxis": grid_axis,
                "gridColor": grid_color,
                "gridProps": grid_props,
                "legendProps": legend_props,
                "lineProps": line_props,
                "maxBarWidth": max_bar_width,
                "minBarSize": min_bar_size,
                "referenceLines": reference_lines,
                "rightYAxisLabel": right_y_axis_label,
                "rightYAxisProps": right_y_axis_props,
                "strokeDasharray": stroke_dasharray,
                "strokeWidth": stroke_width,
                "textColor": text_color,
                "tickLine": tick_line,
                "tooltipAnimationDuration": tooltip_animation_duration,
                "tooltipProps": tooltip_props,
                "unit": unit,
                "withBarValueLabel": with_bar_value_label,
                "withDots": with_dots,
                "withLegend": with_legend,
                "withPointLabels": with_point_labels,
                "withRightYAxis": with_right_y_axis,
                "withTooltip": with_tooltip,
                "withXAxis": with_x_axis,
                "withYAxis": with_y_axis,
                "xAxisLabel": x_axis_label,
                "xAxisProps": x_axis_props,
                "yAxisLabel": y_axis_label,
                "yAxisProps": y_axis_props,
                **kwargs,
            },
        )

    def donut_chart(
        self,
        data: list,
        *,
        chart_label: Optional[Union[str, int]] = None,
        end_angle: Optional[int] = None,
        key: Optional[str] = None,
        label_color: Optional[str] = None,
        labels_type: Optional[str] = None,
        padding_angle: Optional[int] = None,
        pie_chart_props: Optional[dict[str, Any]] = None,
        pie_props: Optional[dict[str, Any]] = None,
        size: Optional[int] = None,
        start_angle: Optional[int] = None,
        stroke_color: Optional[str] = None,
        stroke_width: Optional[int] = None,
        thickness: Optional[int] = None,
        tooltip_animation_duration: Optional[int] = None,
        tooltip_data_source: Optional[Literal["all", "segment"]] = None,
        tooltip_props: Optional[dict[str, Any]] = None,
        with_labels: Optional[bool] = None,
        with_labels_line: Optional[bool] = None,
        with_tooltip: Optional[bool] = None,
        **kwargs: Any,
    ) -> "RLBuilder":
        """
        Donut chart to visualize parts of a whole.

        Args:
            data (list): Dataset.
            chart_label (Optional[Union[str, int]]): Center label.
            end_angle (Optional[int]): End angle.
            key (Optional[str]): Explicit element key.
            label_color (Optional[str]): Label color.
            labels_type (Optional[str]): Label content type.
            padding_angle (Optional[int]): Angle between segments.
            pie_chart_props (Optional[dict[str, Any]]): Chart container props.
            pie_props (Optional[dict[str, Any]]): Pie props.
            size (Optional[int]): Chart size.
            start_angle (Optional[int]): Start angle.
            stroke_color (Optional[str]): Segment border color.
            stroke_width (Optional[int]): Segment border width.
            thickness (Optional[int]): Ring thickness.
            tooltip_animation_duration (Optional[int]): Tooltip animation duration.
            tooltip_data_source (Optional[Literal["all","segment"]]): Tooltip data source.
            tooltip_props (Optional[dict[str, Any]]): Tooltip props.
            with_labels (Optional[bool]): Show labels.
            with_labels_line (Optional[bool]): Show label connector lines.
            with_tooltip (Optional[bool]): Show tooltip.
            kwargs: Additional props to set.

        Returns:
            RLBuilder: A nested builder scoped to the donut chart element.
        """
        return self._create_builder_element(  # type: ignore[return-value]
            name="donutchart",
            key=key or self._new_text_id("donutchart"),
            props={
                "data": data,
                "chartLabel": chart_label,
                "endAngle": end_angle,
                "labelColor": label_color,
                "labelsType": labels_type,
                "paddingAngle": padding_angle,
                "pieChartProps": pie_chart_props,
                "pieProps": pie_props,
                "size": size,
                "startAngle": start_angle,
                "strokeColor": stroke_color,
                "strokeWidth": stroke_width,
                "thickness": thickness,
                "tooltipAnimationDuration": tooltip_animation_duration,
                "tooltipDataSource": tooltip_data_source,
                "tooltipProps": tooltip_props,
                "withLabels": with_labels,
                "withLabelsLine": with_labels_line,
                "withTooltip": with_tooltip,
                **kwargs,
            },
        )

    def funnel_chart(
        self,
        data: list,
        *,
        funnel_chart_props: Optional[dict[str, Any]] = None,
        funnel_props: Optional[dict[str, Any]] = None,
        key: Optional[str] = None,
        label_color: Optional[str] = None,
        labels_position: Optional[Literal["left", "right", "inside"]] = None,
        size: Optional[int] = None,
        stroke_color: Optional[str] = None,
        stroke_width: Optional[int] = None,
        tooltip_animation_duration: Optional[int] = None,
        tooltip_data_source: Optional[Literal["all", "segment"]] = None,
        tooltip_props: Optional[dict[str, Any]] = None,
        value_formatter: Optional[Any] = None,
        with_labels: Optional[bool] = None,
        with_tooltip: Optional[bool] = None,
        **kwargs: Any,
    ) -> "RLBuilder":
        """
        Funnel chart for conversion or pipeline visualization.

        Args:
            data (list): Dataset.
            funnel_chart_props (Optional[dict[str, Any]]): Chart container props.
            funnel_props (Optional[dict[str, Any]]): Funnel props.
            key (Optional[str]): Explicit element key.
            label_color (Optional[str]): Label color.
            labels_position (Optional[Literal["left","right","inside"]]): Labels position.
            size (Optional[int]): Chart size.
            stroke_color (Optional[str]): Border color.
            stroke_width (Optional[int]): Border width.
            tooltip_animation_duration (Optional[int]): Tooltip animation duration.
            tooltip_data_source (Optional[Literal["all","segment"]]): Tooltip data source.
            tooltip_props (Optional[dict[str, Any]]): Tooltip props.
            value_formatter (Optional[Any]): Value formatter.
            with_labels (Optional[bool]): Show labels.
            with_tooltip (Optional[bool]): Show tooltip.
            kwargs: Additional props to set.

        Returns:
            RLBuilder: A nested builder scoped to the funnel chart element.
        """
        return self._create_builder_element(  # type: ignore[return-value]
            name="funnelchart",
            key=key or self._new_text_id("funnelchart"),
            props={
                "data": data,
                "funnelChartProps": funnel_chart_props,
                "funnelProps": funnel_props,
                "labelColor": label_color,
                "labelsPosition": labels_position,
                "size": size,
                "strokeColor": stroke_color,
                "strokeWidth": stroke_width,
                "tooltipAnimationDuration": tooltip_animation_duration,
                "tooltipDataSource": tooltip_data_source,
                "tooltipProps": tooltip_props,
                "valueFormatter": value_formatter,
                "withLabels": with_labels,
                "withTooltip": with_tooltip,
                **kwargs,
            },
        )

    def pie_chart(
        self,
        data: list,
        *,
        end_angle: Optional[int] = None,
        key: Optional[str] = None,
        label_color: Optional[str] = None,
        labels_position: Optional[Literal["outside", "inside"]] = None,
        labels_type: Optional[Literal["value", "percent"]] = None,
        padding_angle: Optional[int] = None,
        pie_chart_props: Optional[dict[str, Any]] = None,
        pie_props: Optional[dict[str, Any]] = None,
        size: Optional[int] = None,
        start_angle: Optional[int] = None,
        stroke_color: Optional[str] = None,
        stroke_width: Optional[int] = None,
        tooltip_animation_duration: Optional[int] = None,
        tooltip_data_source: Optional[Literal["all", "segment"]] = None,
        tooltip_props: Optional[dict[str, Any]] = None,
        with_labels: Optional[bool] = None,
        with_labels_line: Optional[bool] = None,
        with_tooltip: Optional[bool] = None,
        **kwargs: Any,
    ) -> "RLBuilder":
        """
        Pie chart to visualize parts of a whole.

        Args:
            data (list): Dataset.
            end_angle (Optional[int]): End angle.
            key (Optional[str]): Explicit element key.
            label_color (Optional[str]): Label color.
            labels_position (Optional[Literal["outside","inside"]]): Labels position.
            labels_type (Optional[Literal["value","percent"]]): Label content.
            padding_angle (Optional[int]): Angle between segments.
            pie_chart_props (Optional[dict[str, Any]]): Chart container props.
            pie_props (Optional[dict[str, Any]]): Pie props.
            size (Optional[int]): Chart size.
            start_angle (Optional[int]): Start angle.
            stroke_color (Optional[str]): Border color.
            stroke_width (Optional[int]): Border width.
            tooltip_animation_duration (Optional[int]): Tooltip animation duration.
            tooltip_data_source (Optional[Literal["all","segment"]]): Tooltip data source.
            tooltip_props (Optional[dict[str, Any]]): Tooltip props.
            with_labels (Optional[bool]): Show labels.
            with_labels_line (Optional[bool]): Show label connector lines.
            with_tooltip (Optional[bool]): Show tooltip.
            kwargs: Additional props to set.

        Returns:
            RLBuilder: A nested builder scoped to the pie chart element.
        """
        return self._create_builder_element(  # type: ignore[return-value]
            name="piechart",
            key=key or self._new_text_id("piechart"),
            props={
                "data": data,
                "endAngle": end_angle,
                "labelColor": label_color,
                "labelsPosition": labels_position,
                "labelsType": labels_type,
                "paddingAngle": padding_angle,
                "pieChartProps": pie_chart_props,
                "pieProps": pie_props,
                "size": size,
                "startAngle": start_angle,
                "strokeColor": stroke_color,
                "strokeWidth": stroke_width,
                "tooltipAnimationDuration": tooltip_animation_duration,
                "tooltipDataSource": tooltip_data_source,
                "tooltipProps": tooltip_props,
                "withLabels": with_labels,
                "withLabelsLine": with_labels_line,
                "withTooltip": with_tooltip,
                **kwargs,
            },
        )

    def radar_chart(
        self,
        data: list,
        data_key: str,
        series: list[dict[str, Any]],
        *,
        active_dot_props: Optional[dict[str, Any]] = None,
        dot_props: Optional[dict[str, Any]] = None,
        grid_color: Optional[str] = None,
        key: Optional[str] = None,
        legend_props: Optional[dict[str, Any]] = None,
        polar_angle_axis_props: Optional[dict[str, Any]] = None,
        polar_grid_props: Optional[dict[str, Any]] = None,
        polar_radius_axis_props: Optional[dict[str, Any]] = None,
        radar_chart_props: Optional[dict[str, Any]] = None,
        radar_props: Optional[dict[str, Any]] = None,
        text_color: Optional[str] = None,
        tooltip_animation_duration: Optional[int] = None,
        tooltip_props: Optional[dict[str, Any]] = None,
        with_dots: Optional[bool] = None,
        with_legend: Optional[bool] = None,
        with_polar_angle_axis: Optional[bool] = None,
        with_polar_grid: Optional[bool] = None,
        with_polar_radius_axis: Optional[bool] = None,
        with_tooltip: Optional[bool] = None,
        **kwargs: Any,
    ) -> "RLBuilder":
        """
        Radar chart for multi-dimensional categorical data.

        Args:
            data (list): Dataset.
            data_key (str): Key for category labels.
            series (list[dict[str, Any]]): Series configuration.
            active_dot_props (Optional[dict[str, Any]]): Active dot props.
            dot_props (Optional[dict[str, Any]]): Dot props.
            grid_color (Optional[str]): Grid color.
            key (Optional[str]): Explicit element key.
            legend_props (Optional[dict[str, Any]]): Legend props.
            polar_angle_axis_props (Optional[dict[str, Any]]): Polar angle axis props.
            polar_grid_props (Optional[dict[str, Any]]): Polar grid props.
            polar_radius_axis_props (Optional[dict[str, Any]]): Polar radius axis props.
            radar_chart_props (Optional[dict[str, Any]]): Chart container props.
            radar_props (Optional[dict[str, Any]]): Radar area/line props.
            text_color (Optional[str]): Text color.
            tooltip_animation_duration (Optional[int]): Tooltip animation duration.
            tooltip_props (Optional[dict[str, Any]]): Tooltip props.
            with_dots (Optional[bool]): Show dots.
            with_legend (Optional[bool]): Show legend.
            with_polar_angle_axis (Optional[bool]): Show angle axis.
            with_polar_grid (Optional[bool]): Show polar grid.
            with_polar_radius_axis (Optional[bool]): Show radius axis.
            with_tooltip (Optional[bool]): Show tooltip.
            kwargs: Additional props to set.

        Returns:
            RLBuilder: A nested builder scoped to the radar chart element.
        """
        return self._create_builder_element(  # type: ignore[return-value]
            name="radarchart",
            key=key or self._new_text_id("radarchart"),
            props={
                "activeDotProps": active_dot_props,
                "data": data,
                "dataKey": data_key,
                "dotProps": dot_props,
                "gridColor": grid_color,
                "legendProps": legend_props,
                "polarAngleAxisProps": polar_angle_axis_props,
                "polarGridProps": polar_grid_props,
                "polarRadiusAxisProps": polar_radius_axis_props,
                "radarChartProps": radar_chart_props,
                "radarProps": radar_props,
                "series": series,
                "textColor": text_color,
                "tooltipAnimationDuration": tooltip_animation_duration,
                "tooltipProps": tooltip_props,
                "withDots": with_dots,
                "withLegend": with_legend,
                "withPolarAngleAxis": with_polar_angle_axis,
                "withPolarGrid": with_polar_grid,
                "withPolarRadiusAxis": with_polar_radius_axis,
                "withTooltip": with_tooltip,
                **kwargs,
            },
        )

    def scatter_chart(
        self,
        data: list,
        data_key: dict[str, str],
        *,
        grid_axis: Optional[str] = None,
        grid_color: Optional[str] = None,
        grid_props: Optional[dict[str, Any]] = None,
        labels: Optional[dict[str, str]] = None,
        legend_props: Optional[dict[str, Any]] = None,
        orientation: Optional[str] = None,
        point_labels: Optional[str] = None,
        reference_lines: Optional[list[dict[str, Any]]] = None,
        right_y_axis_label: Optional[str] = None,
        right_y_axis_props: Optional[dict[str, Any]] = None,
        scatter_chart_props: Optional[dict[str, Any]] = None,
        scatter_props: Optional[dict[str, Any]] = None,
        stroke_dasharray: Optional[Union[str, int]] = None,
        text_color: Optional[str] = None,
        tick_line: Optional[str] = None,
        tooltip_animation_duration: Optional[int] = None,
        tooltip_props: Optional[dict[str, Any]] = None,
        unit: Optional[dict[str, str]] = None,
        value_formatter: Optional[Any] = None,
        with_legend: Optional[bool] = None,
        with_right_y_axis: Optional[bool] = None,
        with_tooltip: Optional[bool] = None,
        with_x_axis: Optional[bool] = None,
        with_y_axis: Optional[bool] = None,
        x_axis_label: Optional[str] = None,
        x_axis_props: Optional[dict[str, Any]] = None,
        y_axis_label: Optional[str] = None,
        y_axis_props: Optional[dict[str, Any]] = None,
        key: Optional[str] = None,
        **kwargs: Any,
    ) -> "RLBuilder":
        """
        Scatter chart for visualizing correlation between two variables.

        Args:
            data (list): Dataset.
            data_key (dict[str, str]): Mapping for x/y keys.
            grid_axis (Optional[str]): Grid axis.
            grid_color (Optional[str]): Grid color.
            grid_props (Optional[dict[str, Any]]): Grid props.
            labels (Optional[dict[str, str]]): Axis labels.
            legend_props (Optional[dict[str, Any]]): Legend props.
            orientation (Optional[str]): Orientation.
            point_labels (Optional[str]): Point labels key.
            reference_lines (Optional[list[dict[str, Any]]]): Reference lines.
            right_y_axis_label (Optional[str]): Secondary Y axis label.
            right_y_axis_props (Optional[dict[str, Any]]): Secondary Y axis props.
            scatter_chart_props (Optional[dict[str, Any]]): Chart container props.
            scatter_props (Optional[dict[str, Any]]): Scatter props.
            stroke_dasharray (Optional[Union[str, int]]): Stroke dash pattern.
            text_color (Optional[str]): Text color.
            tick_line (Optional[str]): Tick line display.
            tooltip_animation_duration (Optional[int]): Tooltip animation duration.
            tooltip_props (Optional[dict[str, Any]]): Tooltip props.
            unit (Optional[dict[str, str]]): Axis units.
            value_formatter (Optional[Any]): Value formatter.
            with_legend (Optional[bool]): Show legend.
            with_right_y_axis (Optional[bool]): Enable right Y axis.
            with_tooltip (Optional[bool]): Show tooltip.
            with_x_axis (Optional[bool]): Show X axis.
            with_y_axis (Optional[bool]): Show Y axis.
            x_axis_label (Optional[str]): X axis label.
            x_axis_props (Optional[dict[str, Any]]): X axis props.
            y_axis_label (Optional[str]): Y axis label.
            y_axis_props (Optional[dict[str, Any]]): Y axis props.
            key (Optional[str]): Explicit element key.
            kwargs: Additional props to set.

        Returns:
            RLBuilder: A nested builder scoped to the scatter chart element.
        """
        return self._create_builder_element(  # type: ignore[return-value]
            name="scatterchart",
            key=key or self._new_text_id("scatterchart"),
            props={
                "data": data,
                "dataKey": data_key,
                "gridAxis": grid_axis,
                "gridColor": grid_color,
                "gridProps": grid_props,
                "labels": labels,
                "legendProps": legend_props,
                "orientation": orientation,
                "pointLabels": point_labels,
                "referenceLines": reference_lines,
                "rightYAxisLabel": right_y_axis_label,
                "rightYAxisProps": right_y_axis_props,
                "scatterChartProps": scatter_chart_props,
                "scatterProps": scatter_props,
                "strokeDasharray": stroke_dasharray,
                "textColor": text_color,
                "tickLine": tick_line,
                "tooltipAnimationDuration": tooltip_animation_duration,
                "tooltipProps": tooltip_props,
                "unit": unit,
                "valueFormatter": value_formatter,
                "withLegend": with_legend,
                "withRightYAxis": with_right_y_axis,
                "withTooltip": with_tooltip,
                "withXAxis": with_x_axis,
                "withYAxis": with_y_axis,
                "xAxisLabel": x_axis_label,
                "xAxisProps": x_axis_props,
                "yAxisLabel": y_axis_label,
                "yAxisProps": y_axis_props,
                **kwargs,
            },
        )

    def bubble_chart(
        self,
        data: list[dict[str, Any]],
        data_key: dict[str, str],
        range: tuple[int, int],  # noqa: A002
        *,
        color: Optional[str] = None,
        grid_color: Optional[str] = None,
        key: Optional[str] = None,
        label: Optional[str] = None,
        scatter_props: Optional[dict[str, Any]] = None,
        text_color: Optional[str] = None,
        tooltip_props: Optional[dict[str, Any]] = None,
        with_tooltip: Optional[bool] = None,
        x_axis_props: Optional[dict[str, Any]] = None,
        y_axis_props: Optional[dict[str, Any]] = None,
        z_axis_props: Optional[dict[str, Any]] = None,
        **kwargs: Any,
    ) -> "RLBuilder":
        """
        Bubble chart for three-dimensional data (x, y, z-size).

        Args:
            data (list[dict[str, Any]]): Dataset with x, y, z.
            data_key (dict[str, str]): Mapping for x/y/z keys.
            range (tuple[int, int]): Bubble size range.
            color (Optional[str]): Bubble color.
            grid_color (Optional[str]): Grid color.
            key (Optional[str]): Explicit element key.
            label (Optional[str]): Series label.
            scatter_props (Optional[dict[str, Any]]): Scatter props.
            text_color (Optional[str]): Text color.
            tooltip_props (Optional[dict[str, Any]]): Tooltip props.
            with_tooltip (Optional[bool]): Show tooltip.
            x_axis_props (Optional[dict[str, Any]]): X axis props.
            y_axis_props (Optional[dict[str, Any]]): Y axis props.
            z_axis_props (Optional[dict[str, Any]]): Z axis props.
            kwargs: Additional props to set.

        Returns:
            RLBuilder: A nested builder scoped to the bubble chart element.
        """
        return self._create_builder_element(  # type: ignore[return-value]
            name="bubblechart",
            key=key or self._new_text_id("bubblechart"),
            props={
                "data": data,
                "dataKey": data_key,
                "range": range,
                "color": color,
                "gridColor": grid_color,
                "label": label,
                "scatterProps": scatter_props,
                "textColor": text_color,
                "tooltipProps": tooltip_props,
                "withTooltip": with_tooltip,
                "xAxisProps": x_axis_props,
                "yAxisProps": y_axis_props,
                "zAxisProps": z_axis_props,
                **kwargs,
            },
        )

    def radial_bar_chart(
        self,
        data: list[dict[str, Any]],
        data_key: str,
        *,
        bar_size: Optional[int] = None,
        empty_background_color: Optional[str] = None,
        end_angle: Optional[int] = None,
        key: Optional[str] = None,
        legend_props: Optional[dict[str, Any]] = None,
        radial_bar_chart_props: Optional[dict[str, Any]] = None,
        radial_bar_props: Optional[dict[str, Any]] = None,
        start_angle: Optional[int] = None,
        tooltip_props: Optional[dict[str, Any]] = None,
        with_background: Optional[bool] = None,
        with_labels: Optional[bool] = None,
        with_legend: Optional[bool] = None,
        with_tooltip: Optional[bool] = None,
        **kwargs: Any,
    ) -> "RLBuilder":
        """
        Radial bar chart for circular bar visualizations.

        Args:
            data (list[dict[str, Any]]): Dataset.
            data_key (str): Value key.
            bar_size (Optional[int]): Bar thickness.
            empty_background_color (Optional[str]): Empty background color.
            end_angle (Optional[int]): End angle.
            key (Optional[str]): Explicit element key.
            legend_props (Optional[dict[str, Any]]): Legend props.
            radial_bar_chart_props (Optional[dict[str, Any]]): Chart container props.
            radial_bar_props (Optional[dict[str, Any]]): Bar props.
            start_angle (Optional[int]): Start angle.
            tooltip_props (Optional[dict[str, Any]]): Tooltip props.
            with_background (Optional[bool]): Show circular background.
            with_labels (Optional[bool]): Show labels.
            with_legend (Optional[bool]): Show legend.
            with_tooltip (Optional[bool]): Show tooltip.
            kwargs: Additional props to set.

        Returns:
            RLBuilder: A nested builder scoped to the radial bar chart element.
        """
        return self._create_builder_element(  # type: ignore[return-value]
            name="radialbarchart",
            key=key or self._new_text_id("radialbarchart"),
            props={
                "data": data,
                "dataKey": data_key,
                "barSize": bar_size,
                "emptyBackgroundColor": empty_background_color,
                "endAngle": end_angle,
                "legendProps": legend_props,
                "radialBarChartProps": radial_bar_chart_props,
                "radialBarProps": radial_bar_props,
                "startAngle": start_angle,
                "tooltipProps": tooltip_props,
                "withBackground": with_background,
                "withLabels": with_labels,
                "withLegend": with_legend,
                "withTooltip": with_tooltip,
                **kwargs,
            },
        )

    def sparkline_chart(
        self,
        data: list[Union[int, float, None]],
        *,
        area_props: Optional[dict[str, Any]] = None,
        color: Optional[str] = None,
        connect_nulls: Optional[bool] = None,
        curve_type: Optional[str] = None,
        fill_opacity: Optional[float] = None,
        key: Optional[str] = None,
        stroke_width: Optional[int] = None,
        trend_colors: Optional[dict[str, Any]] = None,
        with_gradient: Optional[bool] = None,
        **kwargs: Any,
    ) -> "RLBuilder":
        """
        Compact sparkline chart for trends.

        Args:
            data (list[Union[int, float, None]]): Dataset.
            area_props (Optional[dict[str, Any]]): Area props.
            color (Optional[str]): Line/area color.
            connect_nulls (Optional[bool]): Connect across null values.
            curve_type (Optional[str]): Curve interpolation type.
            fill_opacity (Optional[float]): Area fill opacity.
            key (Optional[str]): Explicit element key.
            stroke_width (Optional[int]): Line width.
            trend_colors (Optional[dict[str, Any]]): Trend color overrides.
            with_gradient (Optional[bool]): Fill with gradient.
            kwargs: Additional props to set.

        Returns:
            RLBuilder: A nested builder scoped to the sparkline element.
        """
        return self._create_builder_element(  # type: ignore[return-value]
            name="sparkline",
            key=key or self._new_text_id("sparkline"),
            props={
                "data": data,
                "areaProps": area_props,
                "color": color,
                "connectNulls": connect_nulls,
                "curveType": curve_type,
                "fillOpacity": fill_opacity,
                "strokeWidth": stroke_width,
                "trendColors": trend_colors,
                "withGradient": with_gradient,
                **kwargs,
            },
        )

    def heatmap(
        self,
        data: dict[str, Union[int, float]],
        *,
        colors: Optional[list[str]] = None,
        domain: Optional[tuple[Union[int, float], Union[int, float]]] = None,
        end_date: Optional[Union[str, Any]] = None,
        first_day_of_week: Optional[int] = None,
        font_size: Optional[int] = None,
        gap: Optional[int] = None,
        get_rect_props: Optional[Any] = None,
        get_tooltip_label: Optional[Any] = None,
        key: Optional[str] = None,
        month_labels: Optional[list[str]] = None,
        months_labels_height: Optional[int] = None,
        rect_radius: Optional[int] = None,
        rect_size: Optional[int] = None,
        start_date: Optional[Union[str, Any]] = None,
        tooltip_props: Optional[dict[str, Any]] = None,
        weekday_labels: Optional[list[str]] = None,
        weekdays_labels_width: Optional[int] = None,
        with_month_labels: Optional[bool] = None,
        with_outside_dates: Optional[bool] = None,
        with_tooltip: Optional[bool] = None,
        with_weekday_labels: Optional[bool] = None,
        **kwargs: Any,
    ) -> "RLBuilder":
        """
        Calendar heatmap for visualizing value intensity over dates.

        Args:
            data (dict[str, Union[int, float]]): Mapping of ISO date -> value.
            colors (Optional[list[str]]): Color scale.
            domain (Optional[tuple[Union[int, float], Union[int, float]]]): Min/max domain.
            end_date (Optional[Union[str, Any]]): End date.
            first_day_of_week (Optional[int]): First day of the week.
            font_size (Optional[int]): Font size for labels.
            gap (Optional[int]): Gap between cells.
            get_rect_props (Optional[Any]): Custom rect props callback.
            get_tooltip_label (Optional[Any]): Tooltip label callback.
            key (Optional[str]): Explicit element key.
            month_labels (Optional[list[str]]): Month labels.
            months_labels_height (Optional[int]): Month labels height.
            rect_radius (Optional[int]): Cell border radius.
            rect_size (Optional[int]): Cell size.
            start_date (Optional[Union[str, Any]]): Start date.
            tooltip_props (Optional[dict[str, Any]]): Tooltip props.
            weekday_labels (Optional[list[str]]): Weekday labels.
            weekdays_labels_width (Optional[int]): Weekday labels width.
            with_month_labels (Optional[bool]): Show month labels.
            with_outside_dates (Optional[bool]): Show dates outside range.
            with_tooltip (Optional[bool]): Show tooltip.
            with_weekday_labels (Optional[bool]): Show weekday labels.
            kwargs: Additional props to set.

        Returns:
            RLBuilder: A nested builder scoped to the heatmap element.
        """
        return self._create_builder_element(  # type: ignore[return-value]
            name="heatmap",
            key=key or self._new_text_id("heatmap"),
            props={
                "data": data,
                "colors": colors,
                "domain": domain,
                "endDate": end_date,
                "firstDayOfWeek": first_day_of_week,
                "fontSize": font_size,
                "gap": gap,
                "getRectProps": get_rect_props,
                "getTooltipLabel": get_tooltip_label,
                "monthLabels": month_labels,
                "monthsLabelsHeight": months_labels_height,
                "rectRadius": rect_radius,
                "rectSize": rect_size,
                "startDate": start_date,
                "tooltipProps": tooltip_props,
                "weekdayLabels": weekday_labels,
                "weekdaysLabelsWidth": weekdays_labels_width,
                "withMonthLabels": with_month_labels,
                "withOutsideDates": with_outside_dates,
                "withTooltip": with_tooltip,
                "withWeekdayLabels": with_weekday_labels,
                **kwargs,
            },
        )

sidebar property

Get the sidebar builder.

Returns:

Name Type Description
RLBuilder RLBuilder

The sidebar builder.

Example:

with ui.sidebar:
    ui.subheader("Sidebar")

# or

ui.sidebar.subheader("Sidebar")

accordion(value=None, *, key=None, chevron=None, chevron_icon_size=None, chevron_position=None, chevron_size=None, disable_chevron_rotation=None, loop=None, multiple=None, on_change=None, order=None, radius=None, transition_duration=None, variant=None)

Accordion component.

Parameters:

Name Type Description Default
value Optional[Union[list[str], str]]

Controlled component value.

None
key Optional[str]

Unique key for the component.

None
chevron Optional[Any]

Custom chevron icon.

None
chevron_icon_size Optional[Union[str, int]]

Size of default chevron icon.

None
chevron_position Optional[str]

Position of chevron relative to label.

None
chevron_size Optional[Union[str, int]]

Size of chevron icon container.

None
disable_chevron_rotation Optional[bool]

Disable chevron rotation.

None
loop Optional[bool]

Loop through items with arrow keys.

None
multiple Optional[bool]

Allow multiple items open at once.

None
on_change Optional[Callable[[Any], None]]

Called when value changes.

None
order Optional[Literal[2, 3, 4, 5, 6]]

Heading order.

None
radius Optional[Union[str, int]]

Border radius.

None
transition_duration Optional[int]

Transition duration in ms.

None
variant Optional[Literal['default', 'filled', 'separated', 'contained', 'unstyled']]

Visual variant.

None

Returns:

Name Type Description
RLBuilder RLBuilder

A nested builder scoped to the accordion.

Source code in src/routelit_mantine/builder.py
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
def accordion(
    self,
    value: Optional[Union[list[str], str]] = None,
    *,
    key: Optional[str] = None,
    chevron: Optional[Any] = None,
    chevron_icon_size: Optional[Union[str, int]] = None,
    chevron_position: Optional[str] = None,
    chevron_size: Optional[Union[str, int]] = None,
    disable_chevron_rotation: Optional[bool] = None,
    loop: Optional[bool] = None,
    multiple: Optional[bool] = None,
    on_change: Optional[Callable[[Any], None]] = None,
    order: Optional[Literal[2, 3, 4, 5, 6]] = None,
    radius: Optional[Union[str, int]] = None,
    transition_duration: Optional[int] = None,
    variant: Optional[Literal["default", "filled", "separated", "contained", "unstyled"]] = None,
) -> "RLBuilder":
    """
    Accordion component.

    Args:
        value (Optional[Union[list[str], str]]): Controlled component value.
        key (Optional[str]): Unique key for the component.
        chevron (Optional[Any]): Custom chevron icon.
        chevron_icon_size (Optional[Union[str, int]]): Size of default chevron icon.
        chevron_position (Optional[str]): Position of chevron relative to label.
        chevron_size (Optional[Union[str, int]]): Size of chevron icon container.
        disable_chevron_rotation (Optional[bool]): Disable chevron rotation.
        loop (Optional[bool]): Loop through items with arrow keys.
        multiple (Optional[bool]): Allow multiple items open at once.
        on_change (Optional[Callable[[Any], None]]): Called when value changes.
        order (Optional[Literal[2,3,4,5,6]]): Heading order.
        radius (Optional[Union[str, int]]): Border radius.
        transition_duration (Optional[int]): Transition duration in ms.
        variant (Optional[Literal["default", "filled", "separated", "contained", "unstyled"]]): Visual variant.

    Returns:
        RLBuilder: A nested builder scoped to the accordion.
    """
    return self._create_builder_element(  # type: ignore[return-value]
        name="accordion",
        key=key or self._new_text_id("accordion"),
        props={
            "defaultValue": value,
            "chevron": chevron,
            "chevronIconSize": chevron_icon_size,
            "chevronPosition": chevron_position,
            "chevronSize": chevron_size,
            "disableChevronRotation": disable_chevron_rotation,
            "loop": loop,
            "multiple": multiple,
            "onChange": on_change,
            "order": order,
            "radius": radius,
            "transitionDuration": transition_duration,
            "variant": variant,
        },
        virtual=True,
    )

accordion_item(label, *, key=None, chevron=None, disabled=None, icon=None, **kwargs)

Accordion item component.

Source code in src/routelit_mantine/builder.py
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
def accordion_item(
    self,
    label: str,
    *,
    key: Optional[str] = None,
    chevron: Optional[RouteLitElement] = None,
    disabled: Optional[bool] = None,
    icon: Optional[RouteLitElement] = None,
    **kwargs: Any,
) -> "RLBuilder":
    """
    Accordion item component.
    """
    item_key = self._new_widget_id("accordionitem", label) if key is None else key
    accordion_item = self._create_builder_element(
        name="accordionitem",
        key=item_key,
        props={
            "value": item_key,
            **kwargs,
        },
        virtual=True,
    )
    with accordion_item:
        control_key = self._new_widget_id("accordioncontrol", label) if key is None else key + "-control"
        self._create_element(
            "accordioncontrol",
            key=control_key,
            props={
                "chevron": chevron,
                "disabled": disabled,
                "icon": icon,
                "children": label,
            },
            virtual=True,
        )
        panel_key = self._new_widget_id("accordionpanel", label) if key is None else key + "-panel"
        panel = self._create_builder_element(
            name="accordionpanel",
            key=panel_key,
            props={},
            virtual=True,
        )
        return panel  # type: ignore[return-value]

action_icon(name, *, key=None, on_click=None, rl_virtual=None, **kwargs)

Icon-only button for compact actions.

Parameters:

Name Type Description Default
name str

Icon name.

required
key Optional[str]

Explicit element key.

None
on_click Optional[Callable[[], None]]

Click handler.

None
rl_virtual Optional[bool]

Whether the element is virtual.

None
kwargs Any

Additional props to set.

{}

Returns:

Name Type Description
bool bool

Click result flag.

Source code in src/routelit_mantine/builder.py
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
def action_icon(
    self,
    name: str,
    *,
    key: Optional[str] = None,
    on_click: Optional[Callable[[], None]] = None,
    rl_virtual: Optional[bool] = None,
    **kwargs: Any,
) -> bool:
    """
    Icon-only button for compact actions.

    Args:
        name (str): Icon name.
        key (Optional[str]): Explicit element key.
        on_click (Optional[Callable[[], None]]): Click handler.
        rl_virtual (Optional[bool]): Whether the element is virtual.
        kwargs: Additional props to set.

    Returns:
        bool: Click result flag.
    """
    return self._x_button(
        "actionicon",
        key or self._new_widget_id("actionicon", name),
        name=name,
        on_click=on_click,
        rl_virtual=rl_virtual,
        **kwargs,
    )

action_icon_group(border_width=None, orientation=None, **kwargs)

Group multiple action_icon elements together.

Parameters:

Name Type Description Default
border_width Optional[str]

Border width between icons.

None
orientation Optional[Literal['horizontal', 'vertical']]

Layout direction.

None
kwargs Any

Additional props to set.

{}

Returns:

Name Type Description
RLBuilder RLBuilder

A nested builder scoped to the group element.

Source code in src/routelit_mantine/builder.py
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
def action_icon_group(
    self,
    border_width: Optional[str] = None,
    orientation: Optional[Literal["horizontal", "vertical"]] = None,
    **kwargs: Any,
) -> "RLBuilder":
    """
    Group multiple `action_icon` elements together.

    Args:
        border_width (Optional[str]): Border width between icons.
        orientation (Optional[Literal["horizontal", "vertical"]]): Layout direction.
        kwargs: Additional props to set.

    Returns:
        RLBuilder: A nested builder scoped to the group element.
    """
    element = self._create_element(
        key=self._new_text_id("actionicongroup"),
        name="actionicongroup",
        props={
            "borderWidth": border_width,
            "orientation": orientation,
            **kwargs,
        },
        virtual=True,
    )
    return cast(RLBuilder, self._build_nested_builder(element))

action_icon_group_section(text=None, rl_virtual=True, **kwargs)

Section within an action_icon_group, usually for labels or extra content.

Parameters:

Name Type Description Default
text Optional[str]

Section text.

None
rl_virtual bool

Whether the element is virtual.

True
kwargs Any

Additional props to set.

{}

Returns:

Name Type Description
RLBuilder RLBuilder

A nested builder scoped to the section element.

Source code in src/routelit_mantine/builder.py
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
def action_icon_group_section(
    self,
    text: Optional[str] = None,
    rl_virtual: bool = True,
    **kwargs: Any,
) -> "RLBuilder":
    """
    Section within an `action_icon_group`, usually for labels or extra content.

    Args:
        text (Optional[str]): Section text.
        rl_virtual (bool): Whether the element is virtual.
        kwargs: Additional props to set.

    Returns:
        RLBuilder: A nested builder scoped to the section element.
    """
    element = self._create_element(
        key=self._new_text_id("actionicongroupsection"),
        name="actionicongroupsection",
        props={
            "children": text,
            **kwargs,
        },
        virtual=rl_virtual,
    )
    return self._build_nested_builder(element)  # type: ignore[return-value]

affix(key=None, **kwargs)

Position an element at a fixed offset from viewport edges.

Parameters:

Name Type Description Default
key Optional[str]

Explicit element key.

None
kwargs Any

Additional props to set.

{}

Returns:

Name Type Description
RLBuilder RLBuilder

A nested builder scoped to the affix element.

Source code in src/routelit_mantine/builder.py
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
def affix(
    self,
    key: Optional[str] = None,
    **kwargs: Any,
) -> "RLBuilder":
    """
    Position an element at a fixed offset from viewport edges.

    Args:
        key (Optional[str]): Explicit element key.
        kwargs: Additional props to set.

    Returns:
        RLBuilder: A nested builder scoped to the affix element.
    """
    return self._create_builder_element(  # type: ignore[return-value]
        name="affix",
        key=key or self._new_text_id("affix"),
        props=kwargs,
        virtual=True,
    )

alert(title, *, auto_contrast=None, key=None, color=None, radius=None, icon=None, with_close_button=None, close_button_label=None, on_close=None, variant=None, text=None, **kwargs)

Inline alert with optional icon and close button.

Parameters:

Name Type Description Default
title str

Alert title.

required
auto_contrast Optional[bool]

Improve contrast automatically.

None
key Optional[str]

Explicit element key.

None
color Optional[str]

Color variant.

None
radius Optional[Union[str, int]]

Corner radius.

None
icon Optional[RouteLitElement]

Leading icon.

None
with_close_button Optional[bool]

Show close button.

None
close_button_label Optional[str]

Accessible label for close button.

None
on_close Optional[Callable[[], bool]]

Close handler.

None
variant Optional[Literal['default', 'filled', 'light', 'outline', 'white', 'transparent']]

Visual variant.

None
text Optional[str]

Alert content.

None
kwargs Any

Additional props to set.

{}

Returns:

Name Type Description
RLBuilder RLBuilder

A nested builder scoped to the alert element.

Source code in src/routelit_mantine/builder.py
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
def alert(
    self,
    title: str,
    *,
    auto_contrast: Optional[bool] = None,
    key: Optional[str] = None,
    color: Optional[str] = None,
    radius: Optional[Union[str, int]] = None,
    icon: Optional[RouteLitElement] = None,
    with_close_button: Optional[bool] = None,
    close_button_label: Optional[str] = None,
    on_close: Optional[Callable[[], bool]] = None,
    variant: Optional[Literal["default", "filled", "light", "outline", "white", "transparent"]] = None,
    text: Optional[str] = None,
    **kwargs: Any,
) -> "RLBuilder":
    """
    Inline alert with optional icon and close button.

    Args:
        title (str): Alert title.
        auto_contrast (Optional[bool]): Improve contrast automatically.
        key (Optional[str]): Explicit element key.
        color (Optional[str]): Color variant.
        radius (Optional[Union[str, int]]): Corner radius.
        icon (Optional[RouteLitElement]): Leading icon.
        with_close_button (Optional[bool]): Show close button.
        close_button_label (Optional[str]): Accessible label for close button.
        on_close (Optional[Callable[[], bool]]): Close handler.
        variant (Optional[Literal["default", "filled", "light", "outline", "white", "transparent"]]): Visual variant.
        text (Optional[str]): Alert content.
        kwargs: Additional props to set.

    Returns:
        RLBuilder: A nested builder scoped to the alert element.
    """
    return self._x_dialog(  # type: ignore[return-value]
        "alert",
        key or self._new_widget_id("alert", title),
        autoContrast=auto_contrast,
        closeButtonLabel=close_button_label,
        color=color,
        radius=radius,
        icon=icon,
        title=title,
        on_close=on_close,
        variant=variant,
        withCloseButton=with_close_button,
        children=text,
        **kwargs,
    )

anchor(href, text, *, c=None, gradient=None, inherit=None, inline=None, is_external=False, line_clamp=None, replace=False, size=None, truncate=None, underline=None, variant=None, **kwargs)

Anchor link element that routes internally or opens external URLs.

Parameters:

Name Type Description Default
href str

Destination path or URL.

required
text str

Link text.

required
c Optional[str]

Text color.

None
gradient Optional[dict[str, Any]]

Gradient style.

None
inherit Optional[bool]

Inherit parent font styles.

None
inline Optional[bool]

Render inline.

None
is_external bool

Open in a new tab/window if true.

False
line_clamp Optional[int]

Clamp to a number of lines.

None
replace bool

Replace history entry when routing.

False
size Optional[str]

Text size.

None
truncate Optional[str]

Truncate overflow.

None
underline Optional[str]

Underline style.

None
variant Optional[str]

Visual variant.

None
kwargs Any

Additional props to set.

{}

Returns:

Name Type Description
RouteLitElement RouteLitElement

Configured anchor element.

Source code in src/routelit_mantine/builder.py
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
def anchor(
    self,
    href: str,
    text: str,
    *,
    c: Optional[str] = None,
    gradient: Optional[dict[str, Any]] = None,
    inherit: Optional[bool] = None,
    inline: Optional[bool] = None,
    is_external: bool = False,
    line_clamp: Optional[int] = None,
    replace: bool = False,
    size: Optional[str] = None,
    truncate: Optional[str] = None,
    underline: Optional[str] = None,
    variant: Optional[str] = None,
    **kwargs: Any,
) -> RouteLitElement:
    """
    Anchor link element that routes internally or opens external URLs.

    Args:
        href (str): Destination path or URL.
        text (str): Link text.
        c (Optional[str]): Text color.
        gradient (Optional[dict[str, Any]]): Gradient style.
        inherit (Optional[bool]): Inherit parent font styles.
        inline (Optional[bool]): Render inline.
        is_external (bool): Open in a new tab/window if true.
        line_clamp (Optional[int]): Clamp to a number of lines.
        replace (bool): Replace history entry when routing.
        size (Optional[str]): Text size.
        truncate (Optional[str]): Truncate overflow.
        underline (Optional[str]): Underline style.
        variant (Optional[str]): Visual variant.
        kwargs: Additional props to set.

    Returns:
        RouteLitElement: Configured anchor element.
    """
    return self.link(
        href,
        text,
        c=c,
        rl_element_type="anchor",
        gradient=gradient,
        is_external=is_external,
        inherit=inherit,
        inline=inline,
        lineClamp=line_clamp,
        replace=replace,
        size=size,
        truncate=truncate,
        underline=underline,
        variant=variant,
        **kwargs,
    )

area_chart(data, data_key, series, *, key=None, active_dot_props=None, area_chart_props=None, area_props=None, connect_nulls=None, curve_type=None, dot_props=None, fill_opacity=0.2, grid_axis=None, grid_color=None, grid_props=None, legend_props=None, orientation=None, reference_lines=None, right_y_axis_label=None, right_y_axis_props=None, split_colors=None, split_offset=None, stroke_dasharray=None, stroke_width=None, text_color=None, tick_line=None, tooltip_animation_duration=0, tooltip_props=None, type=None, unit=None, with_dots=None, with_gradient=None, with_legend=None, with_point_labels=None, with_right_y_axis=None, with_tooltip=None, with_x_axis=None, with_y_axis=None, x_axis_label=None, x_axis_props=None, y_axis_label=None, y_axis_props=None, **kwargs)

Area chart for time series or continuous data.

Parameters:

Name Type Description Default
data list

Dataset.

required
data_key str

X-axis data key.

required
series list[dict[str, Any]]

Series configuration.

required
key Optional[str]

Explicit element key.

None
active_dot_props Optional[dict[str, Any]]

Active dot props.

None
area_chart_props Optional[dict[str, Any]]

Chart container props.

None
area_props Optional[dict[str, Any]]

Area props.

None
connect_nulls Optional[bool]

Connect across null values.

None
curve_type Optional[str]

Curve interpolation type.

None
dot_props Optional[dict[str, Any]]

Dot props.

None
fill_opacity float

Fill opacity for area.

0.2
grid_axis Optional[str]

Grid axis.

None
grid_color Optional[str]

Grid color.

None
grid_props Optional[dict[str, Any]]

Grid props.

None
legend_props Optional[dict[str, Any]]

Legend props.

None
orientation Optional[str]

Chart orientation.

None
reference_lines Optional[list[dict[str, Any]]]

Reference lines.

None
right_y_axis_label Optional[str]

Secondary Y axis label.

None
right_y_axis_props Optional[dict[str, Any]]

Secondary Y axis props.

None
split_colors Optional[list[str]]

Split area colors.

None
split_offset Optional[float]

Split offset value.

None
stroke_dasharray Optional[Union[str, int]]

Stroke dash pattern.

None
stroke_width Optional[int]

Line width.

None
text_color Optional[str]

Text color.

None
tick_line Optional[str]

Tick line display.

None
tooltip_animation_duration int

Tooltip animation duration.

0
tooltip_props Optional[dict[str, Any]]

Tooltip props.

None
type Optional[str]

Chart type variant.

None
unit Optional[str]

Unit suffix.

None
with_dots Optional[bool]

Show dots.

None
with_gradient Optional[bool]

Fill with gradient.

None
with_legend Optional[bool]

Show legend.

None
with_point_labels Optional[bool]

Show point labels.

None
with_right_y_axis Optional[bool]

Enable right Y axis.

None
with_tooltip Optional[bool]

Show tooltip.

None
with_x_axis Optional[bool]

Show X axis.

None
with_y_axis Optional[bool]

Show Y axis.

None
x_axis_label Optional[str]

X axis label.

None
x_axis_props Optional[dict[str, Any]]

X axis props.

None
y_axis_label Optional[str]

Y axis label.

None
y_axis_props Optional[dict[str, Any]]

Y axis props.

None
kwargs Any

Additional props to set.

{}

Returns:

Name Type Description
RLBuilder RLBuilder

A nested builder scoped to the area chart element.

Source code in src/routelit_mantine/builder.py
4498
4499
4500
4501
4502
4503
4504
4505
4506
4507
4508
4509
4510
4511
4512
4513
4514
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534
4535
4536
4537
4538
4539
4540
4541
4542
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555
4556
4557
4558
4559
4560
4561
4562
4563
4564
4565
4566
4567
4568
4569
4570
4571
4572
4573
4574
4575
4576
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597
4598
4599
4600
4601
4602
4603
4604
4605
4606
4607
4608
4609
4610
4611
4612
4613
4614
4615
4616
4617
4618
4619
4620
4621
4622
4623
4624
4625
4626
4627
4628
4629
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640
def area_chart(
    self,
    data: list,
    data_key: str,
    series: list[dict[str, Any]],
    *,
    key: Optional[str] = None,
    active_dot_props: Optional[dict[str, Any]] = None,
    area_chart_props: Optional[dict[str, Any]] = None,
    area_props: Optional[dict[str, Any]] = None,
    connect_nulls: Optional[bool] = None,
    curve_type: Optional[str] = None,
    dot_props: Optional[dict[str, Any]] = None,
    fill_opacity: float = 0.2,
    grid_axis: Optional[str] = None,
    grid_color: Optional[str] = None,
    grid_props: Optional[dict[str, Any]] = None,
    legend_props: Optional[dict[str, Any]] = None,
    orientation: Optional[str] = None,
    reference_lines: Optional[list[dict[str, Any]]] = None,
    right_y_axis_label: Optional[str] = None,
    right_y_axis_props: Optional[dict[str, Any]] = None,
    split_colors: Optional[list[str]] = None,
    split_offset: Optional[float] = None,
    stroke_dasharray: Optional[Union[str, int]] = None,
    stroke_width: Optional[int] = None,
    text_color: Optional[str] = None,
    tick_line: Optional[str] = None,
    tooltip_animation_duration: int = 0,
    tooltip_props: Optional[dict[str, Any]] = None,
    type: Optional[str] = None,  # noqa: A002
    unit: Optional[str] = None,
    with_dots: Optional[bool] = None,
    with_gradient: Optional[bool] = None,
    with_legend: Optional[bool] = None,
    with_point_labels: Optional[bool] = None,
    with_right_y_axis: Optional[bool] = None,
    with_tooltip: Optional[bool] = None,
    with_x_axis: Optional[bool] = None,
    with_y_axis: Optional[bool] = None,
    x_axis_label: Optional[str] = None,
    x_axis_props: Optional[dict[str, Any]] = None,
    y_axis_label: Optional[str] = None,
    y_axis_props: Optional[dict[str, Any]] = None,
    **kwargs: Any,
) -> "RLBuilder":
    """
    Area chart for time series or continuous data.

    Args:
        data (list): Dataset.
        data_key (str): X-axis data key.
        series (list[dict[str, Any]]): Series configuration.
        key (Optional[str]): Explicit element key.
        active_dot_props (Optional[dict[str, Any]]): Active dot props.
        area_chart_props (Optional[dict[str, Any]]): Chart container props.
        area_props (Optional[dict[str, Any]]): Area props.
        connect_nulls (Optional[bool]): Connect across null values.
        curve_type (Optional[str]): Curve interpolation type.
        dot_props (Optional[dict[str, Any]]): Dot props.
        fill_opacity (float): Fill opacity for area.
        grid_axis (Optional[str]): Grid axis.
        grid_color (Optional[str]): Grid color.
        grid_props (Optional[dict[str, Any]]): Grid props.
        legend_props (Optional[dict[str, Any]]): Legend props.
        orientation (Optional[str]): Chart orientation.
        reference_lines (Optional[list[dict[str, Any]]]): Reference lines.
        right_y_axis_label (Optional[str]): Secondary Y axis label.
        right_y_axis_props (Optional[dict[str, Any]]): Secondary Y axis props.
        split_colors (Optional[list[str]]): Split area colors.
        split_offset (Optional[float]): Split offset value.
        stroke_dasharray (Optional[Union[str, int]]): Stroke dash pattern.
        stroke_width (Optional[int]): Line width.
        text_color (Optional[str]): Text color.
        tick_line (Optional[str]): Tick line display.
        tooltip_animation_duration (int): Tooltip animation duration.
        tooltip_props (Optional[dict[str, Any]]): Tooltip props.
        type (Optional[str]): Chart type variant.
        unit (Optional[str]): Unit suffix.
        with_dots (Optional[bool]): Show dots.
        with_gradient (Optional[bool]): Fill with gradient.
        with_legend (Optional[bool]): Show legend.
        with_point_labels (Optional[bool]): Show point labels.
        with_right_y_axis (Optional[bool]): Enable right Y axis.
        with_tooltip (Optional[bool]): Show tooltip.
        with_x_axis (Optional[bool]): Show X axis.
        with_y_axis (Optional[bool]): Show Y axis.
        x_axis_label (Optional[str]): X axis label.
        x_axis_props (Optional[dict[str, Any]]): X axis props.
        y_axis_label (Optional[str]): Y axis label.
        y_axis_props (Optional[dict[str, Any]]): Y axis props.
        kwargs: Additional props to set.

    Returns:
        RLBuilder: A nested builder scoped to the area chart element.
    """
    return self._create_builder_element(  # type: ignore[return-value]
        name="areachart",
        key=key or self._new_text_id("areachart"),
        props={
            "data": data,
            "dataKey": data_key,
            "series": series,
            "activeDotProps": active_dot_props,
            "areaChartProps": area_chart_props,
            "areaProps": area_props,
            "connectNulls": connect_nulls,
            "curveType": curve_type,
            "dotProps": dot_props,
            "fillOpacity": fill_opacity,
            "gridAxis": grid_axis,
            "gridColor": grid_color,
            "gridProps": grid_props,
            "legendProps": legend_props,
            "orientation": orientation,
            "referenceLines": reference_lines,
            "rightYAxisLabel": right_y_axis_label,
            "rightYAxisProps": right_y_axis_props,
            "splitColors": split_colors,
            "splitOffset": split_offset,
            "strokeDasharray": stroke_dasharray,
            "strokeWidth": stroke_width,
            "textColor": text_color,
            "tickLine": tick_line,
            "tooltipAnimationDuration": tooltip_animation_duration,
            "tooltipProps": tooltip_props,
            "type": type,
            "unit": unit,
            "withDots": with_dots,
            "withGradient": with_gradient,
            "withLegend": with_legend,
            "withPointLabels": with_point_labels,
            "withRightYAxis": with_right_y_axis,
            "withTooltip": with_tooltip,
            "withXAxis": with_x_axis,
            "withYAxis": with_y_axis,
            "xAxisLabel": x_axis_label,
            "xAxisProps": x_axis_props,
            "yAxisLabel": y_axis_label,
            "yAxisProps": y_axis_props,
            **kwargs,
        },
    )

autocomplete(label, data, *, auto_select_on_blur=None, clear_button_props=None, clearable=None, combobox_props=None, default_drowndown_open=None, description=None, disabled=None, dropdown_opened=None, error=None, key=None, left_section=None, left_section_props=None, left_section_width=None, limit=None, on_change=None, radius=None, required=None, right_section=None, right_section_props=None, right_section_width=None, size=None, value=None, with_asterisk=None, **kwargs)

Autocomplete text input with suggestions dropdown.

Parameters:

Name Type Description Default
label str

Field label.

required
data list[Union[str, GroupOption]]

Options and groups.

required
auto_select_on_blur Optional[bool]

Auto select highlighted option on blur.

None
clear_button_props Optional[dict[str, Any]]

Props for clear button.

None
clearable Optional[bool]

Enable clear button.

None
combobox_props Optional[dict[str, Any]]

Props for combobox.

None
default_drowndown_open Optional[bool]

Open dropdown by default.

None
description Optional[str]

Helper text under the label.

None
disabled Optional[bool]

Disable interaction.

None
dropdown_opened Optional[bool]

Control dropdown visibility.

None
error Optional[str]

Error message.

None
key Optional[str]

Explicit element key.

None
left_section Optional[RouteLitElement]

Left adornment.

None
left_section_props Optional[dict[str, Any]]

Left adornment props.

None
left_section_width Optional[str]

Left adornment width.

None
limit Optional[int]

Max number of options shown.

None
on_change Optional[Callable[[str], None]]

Change handler.

None
radius Optional[Union[str, int]]

Corner radius.

None
required Optional[bool]

Mark as required.

None
right_section Optional[RouteLitElement]

Right adornment.

None
right_section_props Optional[dict[str, Any]]

Right adornment props.

None
right_section_width Optional[str]

Right adornment width.

None
size Optional[str]

Control size.

None
value Optional[str]

Current value.

None
with_asterisk Optional[bool]

Show required asterisk.

None
kwargs Any

Additional props to set.

{}

Returns:

Type Description
Optional[str]

Optional[str]: Current value.

Source code in src/routelit_mantine/builder.py
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
def autocomplete(
    self,
    label: str,
    data: list[Union[str, GroupOption]],
    *,
    auto_select_on_blur: Optional[bool] = None,
    clear_button_props: Optional[dict[str, Any]] = None,
    clearable: Optional[bool] = None,
    combobox_props: Optional[dict[str, Any]] = None,
    default_drowndown_open: Optional[bool] = None,
    description: Optional[str] = None,
    disabled: Optional[bool] = None,
    dropdown_opened: Optional[bool] = None,
    error: Optional[str] = None,
    key: Optional[str] = None,
    left_section: Optional[RouteLitElement] = None,
    left_section_props: Optional[dict[str, Any]] = None,
    left_section_width: Optional[str] = None,
    limit: Optional[int] = None,
    on_change: Optional[Callable[[str], None]] = None,
    radius: Optional[Union[str, int]] = None,
    required: Optional[bool] = None,
    right_section: Optional[RouteLitElement] = None,
    right_section_props: Optional[dict[str, Any]] = None,
    right_section_width: Optional[str] = None,
    size: Optional[str] = None,
    value: Optional[str] = None,
    with_asterisk: Optional[bool] = None,
    **kwargs: Any,
) -> Optional[str]:
    """
    Autocomplete text input with suggestions dropdown.

    Args:
        label (str): Field label.
        data (list[Union[str, GroupOption]]): Options and groups.
        auto_select_on_blur (Optional[bool]): Auto select highlighted option on blur.
        clear_button_props (Optional[dict[str, Any]]): Props for clear button.
        clearable (Optional[bool]): Enable clear button.
        combobox_props (Optional[dict[str, Any]]): Props for combobox.
        default_drowndown_open (Optional[bool]): Open dropdown by default.
        description (Optional[str]): Helper text under the label.
        disabled (Optional[bool]): Disable interaction.
        dropdown_opened (Optional[bool]): Control dropdown visibility.
        error (Optional[str]): Error message.
        key (Optional[str]): Explicit element key.
        left_section (Optional[RouteLitElement]): Left adornment.
        left_section_props (Optional[dict[str, Any]]): Left adornment props.
        left_section_width (Optional[str]): Left adornment width.
        limit (Optional[int]): Max number of options shown.
        on_change (Optional[Callable[[str], None]]): Change handler.
        radius (Optional[Union[str, int]]): Corner radius.
        required (Optional[bool]): Mark as required.
        right_section (Optional[RouteLitElement]): Right adornment.
        right_section_props (Optional[dict[str, Any]]): Right adornment props.
        right_section_width (Optional[str]): Right adornment width.
        size (Optional[str]): Control size.
        value (Optional[str]): Current value.
        with_asterisk (Optional[bool]): Show required asterisk.
        kwargs: Additional props to set.

    Returns:
        Optional[str]: Current value.
    """
    return self._x_input(
        "autocomplete",
        key or self._new_widget_id("autocomplete", label),
        autoSelectOnBlur=auto_select_on_blur,
        clearButtonProps=clear_button_props,
        clearable=clearable,
        comboboxProps=combobox_props,
        data=data,
        defaultDropdownOpen=default_drowndown_open,
        description=description,
        disabled=disabled,
        dropdownOpened=dropdown_opened,
        error=error,
        label=label,
        leftSection=left_section,
        leftSectionProps=left_section_props,
        leftSectionWidth=left_section_width,
        limit=limit,
        on_change=on_change,
        radius=radius,
        required=required,
        rightSection=right_section,
        rightSectionProps=right_section_props,
        rightSectionWidth=right_section_width,
        size=size,
        value=value,
        withAsterisk=with_asterisk,
        **kwargs,
    )

bar_chart(data, data_key, series, *, bar_chart_props=None, bar_label_color=None, bar_props=None, cursor_fill=None, fill_opacity=None, get_bar_color=None, grid_axis=None, grid_color=None, grid_props=None, key=None, legend_props=None, max_bar_width=None, min_bar_size=None, orientation=None, reference_lines=None, right_y_axis_label=None, right_y_axis_props=None, stroke_dasharray=None, text_color=None, tick_line=None, tooltip_animation_duration=None, tooltip_props=None, type=None, unit=None, value_label_props=None, with_bar_value_label=None, with_legend=None, with_right_y_axis=None, with_tooltip=None, with_x_axis=None, with_y_axis=None, x_axis_label=None, x_axis_props=None, y_axis_label=None, y_axis_props=None, **kwargs)

Bar chart for categorical or time series data.

Parameters:

Name Type Description Default
data list

Dataset.

required
data_key str

X-axis data key.

required
series list[dict[str, Any]]

Series configuration.

required
bar_chart_props Optional[dict[str, Any]]

Chart container props.

None
bar_label_color Optional[str]

Value label color.

None
bar_props Optional[dict[str, Any]]

Bar props.

None
cursor_fill Optional[str]

Cursor overlay color.

None
fill_opacity Optional[float]

Bar fill opacity.

None
get_bar_color Optional[Callable[[float, dict[str, Any]], str]]

Dynamic color callback.

None
grid_axis Optional[Literal['none', 'x', 'y', 'xy']]

Grid axis.

None
grid_color Optional[str]

Grid color.

None
grid_props Optional[dict[str, Any]]

Grid props.

None
key Optional[str]

Explicit element key.

None
legend_props Optional[dict[str, Any]]

Legend props.

None
max_bar_width Optional[int]

Max bar width.

None
min_bar_size Optional[int]

Min bar size.

None
orientation Optional[Literal['horizontal', 'vertical']]

Orientation.

None
reference_lines Optional[list[dict[str, Any]]]

Reference lines.

None
right_y_axis_label Optional[str]

Secondary Y axis label.

None
right_y_axis_props Optional[dict[str, Any]]

Secondary Y axis props.

None
stroke_dasharray Optional[Union[str, int]]

Border dash pattern.

None
text_color Optional[str]

Text color.

None
tick_line Optional[Literal['none', 'x', 'y', 'xy']]

Tick line display.

None
tooltip_animation_duration Optional[int]

Tooltip animation duration.

None
tooltip_props Optional[dict[str, Any]]

Tooltip props.

None
type Optional[str]

Chart type variant.

None
unit Optional[str]

Unit suffix.

None
value_label_props Optional[dict[str, Any]]

Value label props.

None
with_bar_value_label Optional[bool]

Show value labels above bars.

None
with_legend Optional[bool]

Show legend.

None
with_right_y_axis Optional[bool]

Enable right Y axis.

None
with_tooltip Optional[bool]

Show tooltip.

None
with_x_axis Optional[bool]

Show X axis.

None
with_y_axis Optional[bool]

Show Y axis.

None
x_axis_label Optional[str]

X axis label.

None
x_axis_props Optional[dict[str, Any]]

X axis props.

None
y_axis_label Optional[str]

Y axis label.

None
y_axis_props Optional[dict[str, Any]]

Y axis props.

None
kwargs Any

Additional props to set.

{}

Returns:

Name Type Description
RLBuilder RLBuilder

A nested builder scoped to the bar chart element.

Source code in src/routelit_mantine/builder.py
4642
4643
4644
4645
4646
4647
4648
4649
4650
4651
4652
4653
4654
4655
4656
4657
4658
4659
4660
4661
4662
4663
4664
4665
4666
4667
4668
4669
4670
4671
4672
4673
4674
4675
4676
4677
4678
4679
4680
4681
4682
4683
4684
4685
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722
4723
4724
4725
4726
4727
4728
4729
4730
4731
4732
4733
4734
4735
4736
4737
4738
4739
4740
4741
4742
4743
4744
4745
4746
4747
4748
4749
4750
4751
4752
4753
4754
4755
4756
4757
4758
4759
4760
4761
4762
4763
4764
4765
4766
4767
4768
4769
4770
4771
4772
4773
4774
4775
def bar_chart(
    self,
    data: list,
    data_key: str,
    series: list[dict[str, Any]],
    *,
    bar_chart_props: Optional[dict[str, Any]] = None,
    bar_label_color: Optional[str] = None,
    bar_props: Optional[dict[str, Any]] = None,
    cursor_fill: Optional[str] = None,
    fill_opacity: Optional[float] = None,
    get_bar_color: Optional[Callable[[float, dict[str, Any]], str]] = None,
    grid_axis: Optional[Literal["none", "x", "y", "xy"]] = None,
    grid_color: Optional[str] = None,
    grid_props: Optional[dict[str, Any]] = None,
    key: Optional[str] = None,
    legend_props: Optional[dict[str, Any]] = None,
    max_bar_width: Optional[int] = None,
    min_bar_size: Optional[int] = None,
    orientation: Optional[Literal["horizontal", "vertical"]] = None,
    reference_lines: Optional[list[dict[str, Any]]] = None,
    right_y_axis_label: Optional[str] = None,
    right_y_axis_props: Optional[dict[str, Any]] = None,
    stroke_dasharray: Optional[Union[str, int]] = None,
    text_color: Optional[str] = None,
    tick_line: Optional[Literal["none", "x", "y", "xy"]] = None,
    tooltip_animation_duration: Optional[int] = None,
    tooltip_props: Optional[dict[str, Any]] = None,
    type: Optional[str] = None,  # noqa: A002
    unit: Optional[str] = None,
    value_label_props: Optional[dict[str, Any]] = None,
    with_bar_value_label: Optional[bool] = None,
    with_legend: Optional[bool] = None,
    with_right_y_axis: Optional[bool] = None,
    with_tooltip: Optional[bool] = None,
    with_x_axis: Optional[bool] = None,
    with_y_axis: Optional[bool] = None,
    x_axis_label: Optional[str] = None,
    x_axis_props: Optional[dict[str, Any]] = None,
    y_axis_label: Optional[str] = None,
    y_axis_props: Optional[dict[str, Any]] = None,
    **kwargs: Any,
) -> "RLBuilder":
    """
    Bar chart for categorical or time series data.

    Args:
        data (list): Dataset.
        data_key (str): X-axis data key.
        series (list[dict[str, Any]]): Series configuration.
        bar_chart_props (Optional[dict[str, Any]]): Chart container props.
        bar_label_color (Optional[str]): Value label color.
        bar_props (Optional[dict[str, Any]]): Bar props.
        cursor_fill (Optional[str]): Cursor overlay color.
        fill_opacity (Optional[float]): Bar fill opacity.
        get_bar_color (Optional[Callable[[float, dict[str, Any]], str]]): Dynamic color callback.
        grid_axis (Optional[Literal["none","x","y","xy"]]): Grid axis.
        grid_color (Optional[str]): Grid color.
        grid_props (Optional[dict[str, Any]]): Grid props.
        key (Optional[str]): Explicit element key.
        legend_props (Optional[dict[str, Any]]): Legend props.
        max_bar_width (Optional[int]): Max bar width.
        min_bar_size (Optional[int]): Min bar size.
        orientation (Optional[Literal["horizontal","vertical"]]): Orientation.
        reference_lines (Optional[list[dict[str, Any]]]): Reference lines.
        right_y_axis_label (Optional[str]): Secondary Y axis label.
        right_y_axis_props (Optional[dict[str, Any]]): Secondary Y axis props.
        stroke_dasharray (Optional[Union[str, int]]): Border dash pattern.
        text_color (Optional[str]): Text color.
        tick_line (Optional[Literal["none","x","y","xy"]]): Tick line display.
        tooltip_animation_duration (Optional[int]): Tooltip animation duration.
        tooltip_props (Optional[dict[str, Any]]): Tooltip props.
        type (Optional[str]): Chart type variant.
        unit (Optional[str]): Unit suffix.
        value_label_props (Optional[dict[str, Any]]): Value label props.
        with_bar_value_label (Optional[bool]): Show value labels above bars.
        with_legend (Optional[bool]): Show legend.
        with_right_y_axis (Optional[bool]): Enable right Y axis.
        with_tooltip (Optional[bool]): Show tooltip.
        with_x_axis (Optional[bool]): Show X axis.
        with_y_axis (Optional[bool]): Show Y axis.
        x_axis_label (Optional[str]): X axis label.
        x_axis_props (Optional[dict[str, Any]]): X axis props.
        y_axis_label (Optional[str]): Y axis label.
        y_axis_props (Optional[dict[str, Any]]): Y axis props.
        kwargs: Additional props to set.

    Returns:
        RLBuilder: A nested builder scoped to the bar chart element.
    """
    return self._create_builder_element(  # type: ignore[return-value]
        name="barchart",
        key=key or self._new_text_id("barchart"),
        props={
            "data": data,
            "dataKey": data_key,
            "series": series,
            "barChartProps": bar_chart_props,
            "barLabelColor": bar_label_color,
            "barProps": bar_props,
            "cursorFill": cursor_fill,
            "fillOpacity": fill_opacity,
            "getBarColor": get_bar_color,
            "gridAxis": grid_axis,
            "gridColor": grid_color,
            "gridProps": grid_props,
            "legendProps": legend_props,
            "maxBarWidth": max_bar_width,
            "minBarSize": min_bar_size,
            "orientation": orientation,
            "referenceLines": reference_lines,
            "rightYAxisLabel": right_y_axis_label,
            "rightYAxisProps": right_y_axis_props,
            "strokeDasharray": stroke_dasharray,
            "textColor": text_color,
            "tickLine": tick_line,
            "tooltipAnimationDuration": tooltip_animation_duration,
            "tooltipProps": tooltip_props,
            "type": type,
            "unit": unit,
            "valueLabelProps": value_label_props,
            "withBarValueLabel": with_bar_value_label,
            "withLegend": with_legend,
            "withRightYAxis": with_right_y_axis,
            "withTooltip": with_tooltip,
            "withXAxis": with_x_axis,
            "withYAxis": with_y_axis,
            "xAxisLabel": x_axis_label,
            "xAxisProps": x_axis_props,
            "yAxisLabel": y_axis_label,
            "yAxisProps": y_axis_props,
            **kwargs,
        },
    )

box(key=None, **kwargs)

Generic layout container.

Parameters:

Name Type Description Default
key Optional[str]

Explicit element key.

None
kwargs Any

Additional props to set.

{}

Returns:

Name Type Description
RLBuilder RLBuilder

A nested builder scoped to the box element.

Source code in src/routelit_mantine/builder.py
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
def box(
    self,
    key: Optional[str] = None,
    **kwargs: Any,
) -> "RLBuilder":
    """
    Generic layout container.

    Args:
        key (Optional[str]): Explicit element key.
        kwargs: Additional props to set.

    Returns:
        RLBuilder: A nested builder scoped to the box element.
    """
    return self._create_builder_element(  # type: ignore[return-value]
        name="box",
        key=key or self._new_text_id("box"),
        props=kwargs,
        virtual=True,
    )

bubble_chart(data, data_key, range, *, color=None, grid_color=None, key=None, label=None, scatter_props=None, text_color=None, tooltip_props=None, with_tooltip=None, x_axis_props=None, y_axis_props=None, z_axis_props=None, **kwargs)

Bubble chart for three-dimensional data (x, y, z-size).

Parameters:

Name Type Description Default
data list[dict[str, Any]]

Dataset with x, y, z.

required
data_key dict[str, str]

Mapping for x/y/z keys.

required
range tuple[int, int]

Bubble size range.

required
color Optional[str]

Bubble color.

None
grid_color Optional[str]

Grid color.

None
key Optional[str]

Explicit element key.

None
label Optional[str]

Series label.

None
scatter_props Optional[dict[str, Any]]

Scatter props.

None
text_color Optional[str]

Text color.

None
tooltip_props Optional[dict[str, Any]]

Tooltip props.

None
with_tooltip Optional[bool]

Show tooltip.

None
x_axis_props Optional[dict[str, Any]]

X axis props.

None
y_axis_props Optional[dict[str, Any]]

Y axis props.

None
z_axis_props Optional[dict[str, Any]]

Z axis props.

None
kwargs Any

Additional props to set.

{}

Returns:

Name Type Description
RLBuilder RLBuilder

A nested builder scoped to the bubble chart element.

Source code in src/routelit_mantine/builder.py
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546
def bubble_chart(
    self,
    data: list[dict[str, Any]],
    data_key: dict[str, str],
    range: tuple[int, int],  # noqa: A002
    *,
    color: Optional[str] = None,
    grid_color: Optional[str] = None,
    key: Optional[str] = None,
    label: Optional[str] = None,
    scatter_props: Optional[dict[str, Any]] = None,
    text_color: Optional[str] = None,
    tooltip_props: Optional[dict[str, Any]] = None,
    with_tooltip: Optional[bool] = None,
    x_axis_props: Optional[dict[str, Any]] = None,
    y_axis_props: Optional[dict[str, Any]] = None,
    z_axis_props: Optional[dict[str, Any]] = None,
    **kwargs: Any,
) -> "RLBuilder":
    """
    Bubble chart for three-dimensional data (x, y, z-size).

    Args:
        data (list[dict[str, Any]]): Dataset with x, y, z.
        data_key (dict[str, str]): Mapping for x/y/z keys.
        range (tuple[int, int]): Bubble size range.
        color (Optional[str]): Bubble color.
        grid_color (Optional[str]): Grid color.
        key (Optional[str]): Explicit element key.
        label (Optional[str]): Series label.
        scatter_props (Optional[dict[str, Any]]): Scatter props.
        text_color (Optional[str]): Text color.
        tooltip_props (Optional[dict[str, Any]]): Tooltip props.
        with_tooltip (Optional[bool]): Show tooltip.
        x_axis_props (Optional[dict[str, Any]]): X axis props.
        y_axis_props (Optional[dict[str, Any]]): Y axis props.
        z_axis_props (Optional[dict[str, Any]]): Z axis props.
        kwargs: Additional props to set.

    Returns:
        RLBuilder: A nested builder scoped to the bubble chart element.
    """
    return self._create_builder_element(  # type: ignore[return-value]
        name="bubblechart",
        key=key or self._new_text_id("bubblechart"),
        props={
            "data": data,
            "dataKey": data_key,
            "range": range,
            "color": color,
            "gridColor": grid_color,
            "label": label,
            "scatterProps": scatter_props,
            "textColor": text_color,
            "tooltipProps": tooltip_props,
            "withTooltip": with_tooltip,
            "xAxisProps": x_axis_props,
            "yAxisProps": y_axis_props,
            "zAxisProps": z_axis_props,
            **kwargs,
        },
    )

button(text, *, color=None, disabled=None, full_width=None, gradient=None, justify=None, left_section=None, left_section_props=None, left_section_width=None, loading=None, key=None, on_click=None, radius=None, right_section=None, right_section_props=None, right_section_width=None, rl_virtual=None, size=None, variant=None, **kwargs)

Standard button component.

Parameters:

Name Type Description Default
text str

Button text.

required
color Optional[str]

Accent color or variant color.

None
disabled Optional[bool]

Disable interaction.

None
full_width Optional[bool]

Make button take full width.

None
gradient Optional[dict[str, Any]]

Gradient configuration for variant.

None
justify Optional[str]

Content justification.

None
left_section Optional[RouteLitElement]

Left adornment.

None
left_section_props Optional[dict[str, Any]]

Left adornment props.

None
left_section_width Optional[str]

Left adornment width.

None
loading Optional[bool]

Show loading state.

None
key Optional[str]

Explicit element key.

None
on_click Optional[Callable[[], None]]

Click handler.

None
radius Optional[Union[str, int]]

Corner radius.

None
right_section Optional[RouteLitElement]

Right adornment.

None
right_section_props Optional[dict[str, Any]]

Right adornment props.

None
right_section_width Optional[str]

Right adornment width.

None
rl_virtual Optional[bool]

Whether the element is virtual.

None
size Optional[str]

Control size.

None
variant Optional[str]

Visual variant.

None
kwargs Any

Additional props to set.

{}

Returns:

Name Type Description
bool bool

Click result flag.

Source code in src/routelit_mantine/builder.py
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
def button(
    self,
    text: str,
    *,
    color: Optional[str] = None,
    disabled: Optional[bool] = None,
    full_width: Optional[bool] = None,
    gradient: Optional[dict[str, Any]] = None,
    justify: Optional[str] = None,
    left_section: Optional[RouteLitElement] = None,
    left_section_props: Optional[dict[str, Any]] = None,
    left_section_width: Optional[str] = None,
    loading: Optional[bool] = None,
    key: Optional[str] = None,
    on_click: Optional[Callable[[], None]] = None,
    radius: Optional[Union[str, int]] = None,
    right_section: Optional[RouteLitElement] = None,
    right_section_props: Optional[dict[str, Any]] = None,
    right_section_width: Optional[str] = None,
    rl_virtual: Optional[bool] = None,
    size: Optional[str] = None,
    variant: Optional[str] = None,
    **kwargs: Any,
) -> bool:
    """
    Standard button component.

    Args:
        text (str): Button text.
        color (Optional[str]): Accent color or variant color.
        disabled (Optional[bool]): Disable interaction.
        full_width (Optional[bool]): Make button take full width.
        gradient (Optional[dict[str, Any]]): Gradient configuration for variant.
        justify (Optional[str]): Content justification.
        left_section (Optional[RouteLitElement]): Left adornment.
        left_section_props (Optional[dict[str, Any]]): Left adornment props.
        left_section_width (Optional[str]): Left adornment width.
        loading (Optional[bool]): Show loading state.
        key (Optional[str]): Explicit element key.
        on_click (Optional[Callable[[], None]]): Click handler.
        radius (Optional[Union[str, int]]): Corner radius.
        right_section (Optional[RouteLitElement]): Right adornment.
        right_section_props (Optional[dict[str, Any]]): Right adornment props.
        right_section_width (Optional[str]): Right adornment width.
        rl_virtual (Optional[bool]): Whether the element is virtual.
        size (Optional[str]): Control size.
        variant (Optional[str]): Visual variant.
        kwargs: Additional props to set.

    Returns:
        bool: Click result flag.
    """
    return self._x_button(
        "button",
        text,
        on_click=on_click,
        rl_virtual=rl_virtual,
        color=color,
        disabled=disabled,
        fullWidth=full_width,
        gradient=gradient,
        justify=justify,
        key=key or self._new_widget_id("button", text),
        leftSection=left_section,
        leftSectionProps=left_section_props,
        leftSectionWidth=left_section_width,
        loading=loading,
        radius=radius,
        rightSection=right_section,
        rightSectionProps=right_section_props,
        rightSectionWidth=right_section_width,
        size=size,
        variant=variant,
        **kwargs,
    )

checkbox(label, *, auto_contrast=None, checked=False, color=None, description=None, disabled=None, error=None, icon_color=None, key=None, label_position=None, name=None, on_change=None, radius=None, size=None, **kwargs)

Boolean input rendered as a single checkbox.

Parameters:

Name Type Description Default
label str

Checkbox label.

required
auto_contrast Optional[bool]

Improve contrast automatically.

None
checked bool

Initial checked state.

False
color Optional[str]

Accent color.

None
description Optional[str]

Helper text under the label.

None
disabled Optional[bool]

Disable input interaction.

None
error Optional[str]

Error message.

None
icon_color Optional[str]

Color of the check icon.

None
key Optional[str]

Explicit element key.

None
label_position Optional[Literal['left', 'right']]

Label position.

None
name Optional[str]

Input name.

None
on_change Optional[Callable[[bool], None]]

Change handler.

None
radius Optional[Union[Literal['xs', 'sm', 'md', 'lg', 'xl'], int]]

Corner radius.

None
size Optional[Literal['xs', 'sm', 'md', 'lg', 'xl']]

Control size.

None
kwargs Any

Additional props to set.

{}

Returns:

Name Type Description
bool bool

Current value.

Source code in src/routelit_mantine/builder.py
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
def checkbox(
    self,
    label: str,
    *,
    auto_contrast: Optional[bool] = None,
    checked: bool = False,
    color: Optional[str] = None,
    description: Optional[str] = None,
    disabled: Optional[bool] = None,
    error: Optional[str] = None,
    icon_color: Optional[str] = None,
    key: Optional[str] = None,
    label_position: Optional[Literal["left", "right"]] = None,
    name: Optional[str] = None,
    on_change: Optional[Callable[[bool], None]] = None,
    radius: Optional[Union[Literal["xs", "sm", "md", "lg", "xl"], int]] = None,
    size: Optional[Literal["xs", "sm", "md", "lg", "xl"]] = None,
    **kwargs: Any,
) -> bool:
    """
    Boolean input rendered as a single checkbox.

    Args:
        label (str): Checkbox label.
        auto_contrast (Optional[bool]): Improve contrast automatically.
        checked (bool): Initial checked state.
        color (Optional[str]): Accent color.
        description (Optional[str]): Helper text under the label.
        disabled (Optional[bool]): Disable input interaction.
        error (Optional[str]): Error message.
        icon_color (Optional[str]): Color of the check icon.
        key (Optional[str]): Explicit element key.
        label_position (Optional[Literal["left", "right"]]): Label position.
        name (Optional[str]): Input name.
        on_change (Optional[Callable[[bool], None]]): Change handler.
        radius (Optional[Union[Literal["xs", "sm", "md", "lg", "xl"], int]]): Corner radius.
        size (Optional[Literal["xs", "sm", "md", "lg", "xl"]]): Control size.
        kwargs: Additional props to set.

    Returns:
        bool: Current value.
    """
    return self._x_checkbox(
        "checkbox",
        key or self._new_widget_id("checkbox", label),
        autoContrast=auto_contrast,
        checked=checked,
        color=color,
        description=description,
        disabled=disabled,
        error=error,
        iconColor=icon_color,
        label=label,
        labelPosition=label_position,
        name=name,
        on_change=on_change,
        radius=radius,
        size=size,
        **kwargs,
    )

checkbox_group(label, options, *, description=None, error=None, format_func=None, group_props=None, key=None, on_change=None, radius=None, read_only=None, required=None, size=None, value=None, with_asterisk=None, **kwargs)

Multiple selection using a group of checkboxes.

Parameters:

Name Type Description Default
label str

Group label.

required
options list[Union[RLOption, str]]

Available options.

required
description Optional[str]

Helper text under the label.

None
error Optional[str]

Error message.

None
format_func Optional[Callable[[Any], str]]

Map option value to label.

None
group_props Optional[dict[str, Any]]

Extra props for the group container.

None
key Optional[str]

Explicit element key.

None
on_change Optional[Callable[[list[str]], None]]

Change handler.

None
radius Optional[Union[str, int]]

Corner radius.

None
read_only Optional[bool]

Read-only state.

None
required Optional[bool]

Mark as required.

None
size Optional[str]

Control size.

None
value Optional[list[str]]

Selected values.

None
with_asterisk Optional[bool]

Show required asterisk.

None
kwargs Any

Additional props to set.

{}

Returns:

Type Description
list[str]

list[str]: Selected values.

Source code in src/routelit_mantine/builder.py
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
def checkbox_group(  # type: ignore[override]
    self,
    label: str,
    options: list[Union[RLOption, str]],
    *,
    description: Optional[str] = None,
    error: Optional[str] = None,
    format_func: Optional[Callable[[Any], str]] = None,
    group_props: Optional[dict[str, Any]] = None,
    key: Optional[str] = None,
    on_change: Optional[Callable[[list[str]], None]] = None,
    radius: Optional[Union[str, int]] = None,
    read_only: Optional[bool] = None,
    required: Optional[bool] = None,
    size: Optional[str] = None,
    value: Optional[list[str]] = None,
    with_asterisk: Optional[bool] = None,
    **kwargs: Any,
) -> list[str]:
    """
    Multiple selection using a group of checkboxes.

    Args:
        label (str): Group label.
        options (list[Union[RLOption, str]]): Available options.
        description (Optional[str]): Helper text under the label.
        error (Optional[str]): Error message.
        format_func (Optional[Callable[[Any], str]]): Map option value to label.
        group_props (Optional[dict[str, Any]]): Extra props for the group container.
        key (Optional[str]): Explicit element key.
        on_change (Optional[Callable[[list[str]], None]]): Change handler.
        radius (Optional[Union[str, int]]): Corner radius.
        read_only (Optional[bool]): Read-only state.
        required (Optional[bool]): Mark as required.
        size (Optional[str]): Control size.
        value (Optional[list[str]]): Selected values.
        with_asterisk (Optional[bool]): Show required asterisk.
        kwargs: Additional props to set.

    Returns:
        list[str]: Selected values.
    """
    return self._x_checkbox_group(
        "checkboxgroup",
        key or self._new_widget_id("checkbox-group", label),
        description=description,
        error=error,
        format_func=format_func,
        groupProps=group_props,
        label=label,
        on_change=on_change,
        options=options,  # type: ignore[arg-type]
        radius=radius,
        readOnly=read_only,
        required=required,
        size=size,
        value=value,
        withAsterisk=with_asterisk,
        **kwargs,
    )

chip(label, *, auto_contrast=None, checked=False, color=None, disabled=None, icon=None, input_type=None, key=None, on_change=None, radius=None, size=None, **kwargs)

Toggleable chip, can behave as checkbox or radio.

Parameters:

Name Type Description Default
label str

Chip label.

required
auto_contrast Optional[bool]

Improve contrast automatically.

None
checked bool

Initial checked state.

False
color Optional[str]

Accent color.

None
disabled Optional[bool]

Disable interaction.

None
icon Optional[RouteLitElement]

Left section icon.

None
input_type Optional[Literal['checkbox', 'radio']]

Behavior of the chip.

None
key Optional[str]

Explicit element key.

None
on_change Optional[Callable[[bool], None]]

Change handler.

None
radius Optional[Union[Literal['xs', 'sm', 'md', 'lg', 'xl'], int]]

Corner radius.

None
size Optional[Literal['xs', 'sm', 'md', 'lg', 'xl']]

Control size.

None
kwargs Any

Additional props to set.

{}

Returns:

Name Type Description
bool bool

Current value.

Source code in src/routelit_mantine/builder.py
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
def chip(
    self,
    label: str,
    *,
    auto_contrast: Optional[bool] = None,
    checked: bool = False,
    color: Optional[str] = None,
    disabled: Optional[bool] = None,
    icon: Optional[RouteLitElement] = None,
    input_type: Optional[Literal["checkbox", "radio"]] = None,
    key: Optional[str] = None,
    on_change: Optional[Callable[[bool], None]] = None,
    radius: Optional[Union[Literal["xs", "sm", "md", "lg", "xl"], int]] = None,
    size: Optional[Literal["xs", "sm", "md", "lg", "xl"]] = None,
    **kwargs: Any,
) -> bool:
    """
    Toggleable chip, can behave as checkbox or radio.

    Args:
        label (str): Chip label.
        auto_contrast (Optional[bool]): Improve contrast automatically.
        checked (bool): Initial checked state.
        color (Optional[str]): Accent color.
        disabled (Optional[bool]): Disable interaction.
        icon (Optional[RouteLitElement]): Left section icon.
        input_type (Optional[Literal["checkbox", "radio"]]): Behavior of the chip.
        key (Optional[str]): Explicit element key.
        on_change (Optional[Callable[[bool], None]]): Change handler.
        radius (Optional[Union[Literal["xs", "sm", "md", "lg", "xl"], int]]): Corner radius.
        size (Optional[Literal["xs", "sm", "md", "lg", "xl"]]): Control size.
        kwargs: Additional props to set.

    Returns:
        bool: Current value.
    """
    return self._x_checkbox(
        "chip",
        key or self._new_widget_id("chip", label),
        autoContrast=auto_contrast,
        checked=checked,
        children=label,
        color=color,
        disabled=disabled,
        icon=icon,
        on_change=on_change,
        radius=radius,
        size=size,
        type=input_type,
        **kwargs,
    )

chip_group(key, options, *, format_func=None, group_props=None, multiple=False, on_change=None, value=None, **kwargs)

Single or multiple selection using chip components.

Parameters:

Name Type Description Default
key str

Explicit element key.

required
options list[Union[RLOption, str]]

Available options.

required
format_func Optional[Callable[[Any], str]]

Map option value to label.

None
group_props Optional[dict[str, Any]]

Extra props for the group container.

None
multiple bool

Enable multiple selection.

False
on_change Optional[Callable[[Union[str, list[str]]], None]]

Change handler.

None
value Optional[Union[str, list[str]]]

Selected value(s).

None
kwargs Any

Additional props to set.

{}

Returns:

Type Description
Union[str, list[str]]

Union[str, list[str]]: Selected value(s).

Source code in src/routelit_mantine/builder.py
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
def chip_group(
    self,
    key: str,
    options: list[Union[RLOption, str]],
    *,
    format_func: Optional[Callable[[Any], str]] = None,
    group_props: Optional[dict[str, Any]] = None,
    multiple: bool = False,
    on_change: Optional[Callable[[Union[str, list[str]]], None]] = None,
    value: Optional[Union[str, list[str]]] = None,
    **kwargs: Any,
) -> Union[str, list[str]]:
    """
    Single or multiple selection using chip components.

    Args:
        key (str): Explicit element key.
        options (list[Union[RLOption, str]]): Available options.
        format_func (Optional[Callable[[Any], str]]): Map option value to label.
        group_props (Optional[dict[str, Any]]): Extra props for the group container.
        multiple (bool): Enable multiple selection.
        on_change (Optional[Callable[[Union[str, list[str]]], None]]): Change handler.
        value (Optional[Union[str, list[str]]]): Selected value(s).
        kwargs: Additional props to set.

    Returns:
        Union[str, list[str]]: Selected value(s).
    """
    if multiple:
        return self._x_checkbox_group(
            "chipgroup",
            key,
            format_func=format_func,
            groupProps=group_props,
            multiple=True,
            on_change=on_change,
            options=options,  # type: ignore[arg-type]
            value=value,  # type: ignore[arg-type]
            **kwargs,
        )
    return self._x_radio_select(  # type: ignore[no-any-return]
        "chipgroup",
        key,
        format_func=format_func,
        groupProps=group_props,
        multiple=False,
        on_change=on_change,
        options=options,  # type: ignore[arg-type]
        value=value,
        **kwargs,
    )

color_input(label, *, description=None, disabled=None, error=None, fix_on_blur=None, input_size=None, key=None, on_change=None, radius=None, required=None, size=None, swatches=None, value=None, with_asterisk=None, with_picker=None, with_preview=None, **kwargs)

Text input specialized for color values with a color picker.

Parameters:

Name Type Description Default
label str

Field label.

required
description Optional[str]

Helper text under the label.

None
disabled Optional[bool]

Disable input interaction.

None
error Optional[str]

Error message.

None
fix_on_blur Optional[bool]

Normalize value on blur.

None
input_size Optional[str]

Control size.

None
key Optional[str]

Explicit element key.

None
on_change Optional[Callable[[str], None]]

Change handler.

None
radius Optional[str]

Corner radius.

None
required Optional[bool]

Mark as required.

None
size Optional[str]

Control size.

None
swatches Optional[list[str]]

Preset color swatches.

None
value Optional[str]

Current value.

None
with_asterisk Optional[bool]

Show required asterisk.

None
with_picker Optional[bool]

Show color picker.

None
with_preview Optional[bool]

Show color preview chip.

None
kwargs Any

Additional props to set.

{}

Returns:

Name Type Description
str str

Current value.

Source code in src/routelit_mantine/builder.py
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
def color_input(
    self,
    label: str,
    *,
    description: Optional[str] = None,
    disabled: Optional[bool] = None,
    error: Optional[str] = None,
    fix_on_blur: Optional[bool] = None,
    input_size: Optional[str] = None,
    key: Optional[str] = None,
    on_change: Optional[Callable[[str], None]] = None,
    radius: Optional[str] = None,
    required: Optional[bool] = None,
    size: Optional[str] = None,
    swatches: Optional[list[str]] = None,
    value: Optional[str] = None,
    with_asterisk: Optional[bool] = None,
    with_picker: Optional[bool] = None,
    with_preview: Optional[bool] = None,
    **kwargs: Any,
) -> str:
    """
    Text input specialized for color values with a color picker.

    Args:
        label (str): Field label.
        description (Optional[str]): Helper text under the label.
        disabled (Optional[bool]): Disable input interaction.
        error (Optional[str]): Error message.
        fix_on_blur (Optional[bool]): Normalize value on blur.
        input_size (Optional[str]): Control size.
        key (Optional[str]): Explicit element key.
        on_change (Optional[Callable[[str], None]]): Change handler.
        radius (Optional[str]): Corner radius.
        required (Optional[bool]): Mark as required.
        size (Optional[str]): Control size.
        swatches (Optional[list[str]]): Preset color swatches.
        value (Optional[str]): Current value.
        with_asterisk (Optional[bool]): Show required asterisk.
        with_picker (Optional[bool]): Show color picker.
        with_preview (Optional[bool]): Show color preview chip.
        kwargs: Additional props to set.

    Returns:
        str: Current value.
    """
    return self._x_input(  # type: ignore[return-value]
        "colorinput",
        key or self._new_widget_id("colorinput", label),
        description=description,
        disabled=disabled,
        error=error,
        fixOnBlur=fix_on_blur,
        inputSize=input_size,
        label=label,
        on_change=on_change,
        radius=radius,
        required=required,
        size=size,
        swatches=swatches,
        value=value,
        withAsterisk=with_asterisk,
        withPicker=with_picker,
        withPreview=with_preview,
        **kwargs,
    )

composite_chart(data, data_key, series, *, key=None, active_dot_props=None, area_props=None, bar_props=None, children=None, composed_chart_props=None, connect_nulls=None, curve_type=None, dot_props=None, grid_axis=None, grid_color=None, grid_props=None, legend_props=None, line_props=None, max_bar_width=None, min_bar_size=None, reference_lines=None, right_y_axis_label=None, right_y_axis_props=None, stroke_dasharray=None, stroke_width=None, text_color=None, tick_line=None, tooltip_animation_duration=None, tooltip_props=None, unit=None, with_bar_value_label=None, with_dots=None, with_legend=None, with_point_labels=None, with_right_y_axis=None, with_tooltip=None, with_x_axis=None, with_y_axis=None, x_axis_label=None, x_axis_props=None, y_axis_label=None, y_axis_props=None, **kwargs)

Composite chart that can combine bars, lines, and areas.

Parameters:

Name Type Description Default
data list

Dataset.

required
data_key str

X-axis data key.

required
series list[dict[str, Any]]

Series configuration.

required
key Optional[str]

Explicit element key.

None
active_dot_props Optional[dict[str, Any]]

Active dot props.

None
area_props Optional[dict[str, Any]]

Area props.

None
bar_props Optional[dict[str, Any]]

Bar props.

None
children Optional[Any]

Extra child elements.

None
composed_chart_props Optional[dict[str, Any]]

Chart container props.

None
connect_nulls Optional[bool]

Connect across null values.

None
curve_type Optional[str]

Curve interpolation type.

None
dot_props Optional[dict[str, Any]]

Dot props.

None
grid_axis Optional[str]

Grid axis.

None
grid_color Optional[str]

Grid color.

None
grid_props Optional[dict[str, Any]]

Grid props.

None
legend_props Optional[dict[str, Any]]

Legend props.

None
line_props Optional[dict[str, Any]]

Line props.

None
max_bar_width Optional[int]

Max bar width.

None
min_bar_size Optional[int]

Min bar size.

None
reference_lines Optional[list[dict[str, Any]]]

Reference lines.

None
right_y_axis_label Optional[str]

Secondary Y axis label.

None
right_y_axis_props Optional[dict[str, Any]]

Secondary Y axis props.

None
stroke_dasharray Optional[str]

Stroke dash pattern.

None
stroke_width Optional[int]

Line width.

None
text_color Optional[str]

Text color.

None
tick_line Optional[str]

Tick line display.

None
tooltip_animation_duration Optional[int]

Tooltip animation duration.

None
tooltip_props Optional[dict[str, Any]]

Tooltip props.

None
unit Optional[str]

Unit suffix.

None
with_bar_value_label Optional[bool]

Show value labels on bars.

None
with_dots Optional[bool]

Show dots on lines.

None
with_legend Optional[bool]

Show legend.

None
with_point_labels Optional[bool]

Show point labels on lines.

None
with_right_y_axis Optional[bool]

Enable right Y axis.

None
with_tooltip Optional[bool]

Show tooltip.

None
with_x_axis Optional[bool]

Show X axis.

None
with_y_axis Optional[bool]

Show Y axis.

None
x_axis_label Optional[str]

X axis label.

None
x_axis_props Optional[dict[str, Any]]

X axis props.

None
y_axis_label Optional[str]

Y axis label.

None
y_axis_props Optional[dict[str, Any]]

Y axis props.

None
kwargs Any

Additional props to set.

{}

Returns:

Name Type Description
RLBuilder RLBuilder

A nested builder scoped to the composite chart element.

Source code in src/routelit_mantine/builder.py
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057
def composite_chart(
    self,
    data: list,
    data_key: str,
    series: list[dict[str, Any]],
    *,
    key: Optional[str] = None,
    active_dot_props: Optional[dict[str, Any]] = None,
    area_props: Optional[dict[str, Any]] = None,
    bar_props: Optional[dict[str, Any]] = None,
    children: Optional[Any] = None,
    composed_chart_props: Optional[dict[str, Any]] = None,
    connect_nulls: Optional[bool] = None,
    curve_type: Optional[str] = None,
    dot_props: Optional[dict[str, Any]] = None,
    grid_axis: Optional[str] = None,
    grid_color: Optional[str] = None,
    grid_props: Optional[dict[str, Any]] = None,
    legend_props: Optional[dict[str, Any]] = None,
    line_props: Optional[dict[str, Any]] = None,
    max_bar_width: Optional[int] = None,
    min_bar_size: Optional[int] = None,
    reference_lines: Optional[list[dict[str, Any]]] = None,
    right_y_axis_label: Optional[str] = None,
    right_y_axis_props: Optional[dict[str, Any]] = None,
    stroke_dasharray: Optional[str] = None,
    stroke_width: Optional[int] = None,
    text_color: Optional[str] = None,
    tick_line: Optional[str] = None,
    tooltip_animation_duration: Optional[int] = None,
    tooltip_props: Optional[dict[str, Any]] = None,
    unit: Optional[str] = None,
    with_bar_value_label: Optional[bool] = None,
    with_dots: Optional[bool] = None,
    with_legend: Optional[bool] = None,
    with_point_labels: Optional[bool] = None,
    with_right_y_axis: Optional[bool] = None,
    with_tooltip: Optional[bool] = None,
    with_x_axis: Optional[bool] = None,
    with_y_axis: Optional[bool] = None,
    x_axis_label: Optional[str] = None,
    x_axis_props: Optional[dict[str, Any]] = None,
    y_axis_label: Optional[str] = None,
    y_axis_props: Optional[dict[str, Any]] = None,
    **kwargs: Any,
) -> "RLBuilder":
    """
    Composite chart that can combine bars, lines, and areas.

    Args:
        data (list): Dataset.
        data_key (str): X-axis data key.
        series (list[dict[str, Any]]): Series configuration.
        key (Optional[str]): Explicit element key.
        active_dot_props (Optional[dict[str, Any]]): Active dot props.
        area_props (Optional[dict[str, Any]]): Area props.
        bar_props (Optional[dict[str, Any]]): Bar props.
        children (Optional[Any]): Extra child elements.
        composed_chart_props (Optional[dict[str, Any]]): Chart container props.
        connect_nulls (Optional[bool]): Connect across null values.
        curve_type (Optional[str]): Curve interpolation type.
        dot_props (Optional[dict[str, Any]]): Dot props.
        grid_axis (Optional[str]): Grid axis.
        grid_color (Optional[str]): Grid color.
        grid_props (Optional[dict[str, Any]]): Grid props.
        legend_props (Optional[dict[str, Any]]): Legend props.
        line_props (Optional[dict[str, Any]]): Line props.
        max_bar_width (Optional[int]): Max bar width.
        min_bar_size (Optional[int]): Min bar size.
        reference_lines (Optional[list[dict[str, Any]]]): Reference lines.
        right_y_axis_label (Optional[str]): Secondary Y axis label.
        right_y_axis_props (Optional[dict[str, Any]]): Secondary Y axis props.
        stroke_dasharray (Optional[str]): Stroke dash pattern.
        stroke_width (Optional[int]): Line width.
        text_color (Optional[str]): Text color.
        tick_line (Optional[str]): Tick line display.
        tooltip_animation_duration (Optional[int]): Tooltip animation duration.
        tooltip_props (Optional[dict[str, Any]]): Tooltip props.
        unit (Optional[str]): Unit suffix.
        with_bar_value_label (Optional[bool]): Show value labels on bars.
        with_dots (Optional[bool]): Show dots on lines.
        with_legend (Optional[bool]): Show legend.
        with_point_labels (Optional[bool]): Show point labels on lines.
        with_right_y_axis (Optional[bool]): Enable right Y axis.
        with_tooltip (Optional[bool]): Show tooltip.
        with_x_axis (Optional[bool]): Show X axis.
        with_y_axis (Optional[bool]): Show Y axis.
        x_axis_label (Optional[str]): X axis label.
        x_axis_props (Optional[dict[str, Any]]): X axis props.
        y_axis_label (Optional[str]): Y axis label.
        y_axis_props (Optional[dict[str, Any]]): Y axis props.
        kwargs: Additional props to set.

    Returns:
        RLBuilder: A nested builder scoped to the composite chart element.
    """
    return self._create_builder_element(  # type: ignore[return-value]
        name="compositechart",
        key=key or self._new_text_id("compositechart"),
        props={
            "data": data,
            "dataKey": data_key,
            "series": series,
            "activeDotProps": active_dot_props,
            "areaProps": area_props,
            "barProps": bar_props,
            "children": children,
            "composedChartProps": composed_chart_props,
            "connectNulls": connect_nulls,
            "curveType": curve_type,
            "dotProps": dot_props,
            "gridAxis": grid_axis,
            "gridColor": grid_color,
            "gridProps": grid_props,
            "legendProps": legend_props,
            "lineProps": line_props,
            "maxBarWidth": max_bar_width,
            "minBarSize": min_bar_size,
            "referenceLines": reference_lines,
            "rightYAxisLabel": right_y_axis_label,
            "rightYAxisProps": right_y_axis_props,
            "strokeDasharray": stroke_dasharray,
            "strokeWidth": stroke_width,
            "textColor": text_color,
            "tickLine": tick_line,
            "tooltipAnimationDuration": tooltip_animation_duration,
            "tooltipProps": tooltip_props,
            "unit": unit,
            "withBarValueLabel": with_bar_value_label,
            "withDots": with_dots,
            "withLegend": with_legend,
            "withPointLabels": with_point_labels,
            "withRightYAxis": with_right_y_axis,
            "withTooltip": with_tooltip,
            "withXAxis": with_x_axis,
            "withYAxis": with_y_axis,
            "xAxisLabel": x_axis_label,
            "xAxisProps": x_axis_props,
            "yAxisLabel": y_axis_label,
            "yAxisProps": y_axis_props,
            **kwargs,
        },
    )

container(*, fluid=False, key=None, size=None, **kwargs)

Create a container.

Parameters:

Name Type Description Default
fluid bool

Whether the container is fluid.

False
key Optional[str]

The key of the container.

None
size Optional[str]

The size of the container.

None
kwargs Any

Additional props to set.

{}

Returns:

Name Type Description
RLBuilder RLBuilder

The container builder.

Example: ```python with ui.container(fluid=True, size="xl", bg="var(--mantine-color-blue-light)"): ui.text("Hello World")

Source code in src/routelit_mantine/builder.py
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
def container(  # type: ignore[override]
    self,
    *,
    fluid: bool = False,
    key: Optional[str] = None,
    size: Optional[str] = None,
    **kwargs: Any,
) -> "RLBuilder":
    """
    Create a container.

    Args:
        fluid (bool): Whether the container is fluid.
        key (Optional[str]): The key of the container.
        size (Optional[str]): The size of the container.
        kwargs: Additional props to set.

    Returns:
        RLBuilder: The container builder.

    Example:
    ```python
    with ui.container(fluid=True, size="xl", bg="var(--mantine-color-blue-light)"):
        ui.text("Hello World")
    """
    new_element = self._create_element(
        key=key or self._new_text_id("container"),
        name="container",
        props={"fluid": fluid, "size": size, **kwargs},
    )
    return cast(RLBuilder, self._build_nested_builder(new_element))

date_picker(label, value=None, *, allow_deselect=None, allow_single_date_in_range=None, aria_labels=None, columns_to_scroll=None, decade_label_format=None, default_level=None, description=None, enable_keyboard_navigation=None, first_day_of_week=None, header_controls_order=None, hide_outside_dates=None, hide_weekdays=None, highlight_today=None, key=None, level=None, locale=None, max_date=None, max_level=None, min_date=None, month_label_format=None, months_list_format=None, next_icon=None, next_label=None, number_of_columns=None, on_change=None, presets=None, previous_icon=None, previous_label=None, size=None, type=None, weekday_format=None, weekend_days=None, with_cell_spacing=None, with_week_numbers=None, year_label_format=None, years_list_format=None, **kwargs)

Calendar date picker supporting single, range, and multiple modes.

Parameters:

Name Type Description Default
label str

Field label.

required
value Optional[...]

Current value in the selected mode.

None
allow_deselect Optional[bool]

Allow clearing selection.

None
allow_single_date_in_range Optional[bool]

Allow single date in range mode.

None
aria_labels Optional[dict]

ARIA labels.

None
columns_to_scroll Optional[int]

Months to scroll.

None
decade_label_format Optional[str]

Decade label format.

None
default_level Optional[Literal['month', 'year', 'decade']]

Initial calendar level.

None
description Optional[str]

Helper text under the label.

None
enable_keyboard_navigation Optional[bool]

Enable keyboard navigation.

None
first_day_of_week Optional[Literal[0, 1, 2, 3, 4, 5, 6]]

First day of week.

None
header_controls_order Optional[list[...]]

Header controls order.

None
hide_outside_dates Optional[bool]

Hide outside month dates.

None
hide_weekdays Optional[bool]

Hide weekday labels.

None
highlight_today Optional[bool]

Highlight current date.

None
key Optional[str]

Explicit element key.

None
level Optional[str]

Current level.

None
locale Optional[str]

Locale code.

None
max_date Optional[Union[str, date]]

Max date.

None
max_level Optional[str]

Max level.

None
min_date Optional[Union[str, date]]

Min date.

None
month_label_format Optional[str]

Month label format.

None
months_list_format Optional[str]

Months list format.

None
next_icon Optional[RouteLitElement]

Next button icon.

None
next_label Optional[str]

Next button label.

None
number_of_columns Optional[int]

Months displayed.

None
on_change Optional[Callable[[...], None]]

Change handler.

None
presets Optional[list]

Preset ranges.

None
previous_icon Optional[RouteLitElement]

Previous button icon.

None
previous_label Optional[str]

Previous button label.

None
size Optional[str]

Control size.

None
type Optional[Literal['default', 'range', 'multiple']]

Picker mode.

None
weekday_format Optional[str]

Weekday label format.

None
weekend_days Optional[list[...]]

Weekend days indices.

None
with_cell_spacing Optional[bool]

Add spacing between cells.

None
with_week_numbers Optional[bool]

Show week numbers.

None
year_label_format Optional[str]

Year label format.

None
years_list_format Optional[str]

Years list format.

None
kwargs Any

Additional props to set.

{}

Returns:

Type Description
Optional[Union[date, list[date], tuple[date, date]]]

Optional[Union[datetime.date, list[datetime.date], tuple[datetime.date, datetime.date]]]: Current value.

Source code in src/routelit_mantine/builder.py
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
def date_picker(
    self,
    label: str,
    value: Optional[
        Union[
            datetime.date,
            str,
            list[str],
            list[datetime.date],
            tuple[str, str],
            tuple[datetime.date, datetime.date],
        ]
    ] = None,
    *,
    allow_deselect: Optional[bool] = None,
    allow_single_date_in_range: Optional[bool] = None,
    aria_labels: Optional[dict] = None,
    columns_to_scroll: Optional[int] = None,
    decade_label_format: Optional[str] = None,
    default_level: Optional[Literal["month", "year", "decade"]] = None,
    description: Optional[str] = None,
    enable_keyboard_navigation: Optional[bool] = None,
    first_day_of_week: Optional[Literal[0, 1, 2, 3, 4, 5, 6]] = None,
    header_controls_order: Optional[list[Literal["level", "next", "previous"]]] = None,
    hide_outside_dates: Optional[bool] = None,
    hide_weekdays: Optional[bool] = None,
    highlight_today: Optional[bool] = None,
    key: Optional[str] = None,
    level: Optional[str] = None,
    locale: Optional[str] = None,
    max_date: Optional[Union[str, datetime.date]] = None,
    max_level: Optional[str] = None,
    min_date: Optional[Union[str, datetime.date]] = None,
    month_label_format: Optional[str] = None,
    months_list_format: Optional[str] = None,
    next_icon: Optional[RouteLitElement] = None,
    next_label: Optional[str] = None,
    number_of_columns: Optional[int] = None,
    on_change: Optional[
        Callable[
            [
                Union[
                    datetime.date,
                    list[datetime.date],
                    tuple[datetime.date, datetime.date],
                ]
            ],
            None,
        ]
    ] = None,
    presets: Optional[list] = None,
    previous_icon: Optional[RouteLitElement] = None,
    previous_label: Optional[str] = None,
    size: Optional[str] = None,
    type: Optional[Literal["default", "range", "multiple"]] = None,  # noqa: A002
    weekday_format: Optional[str] = None,
    weekend_days: Optional[list[Literal[0, 1, 2, 3, 4, 5, 6]]] = None,
    with_cell_spacing: Optional[bool] = None,
    with_week_numbers: Optional[bool] = None,
    year_label_format: Optional[str] = None,
    years_list_format: Optional[str] = None,
    **kwargs: Any,
) -> Optional[Union[datetime.date, list[datetime.date], tuple[datetime.date, datetime.date]]]:
    """
    Calendar date picker supporting single, range, and multiple modes.

    Args:
        label (str): Field label.
        value (Optional[...]): Current value in the selected mode.
        allow_deselect (Optional[bool]): Allow clearing selection.
        allow_single_date_in_range (Optional[bool]): Allow single date in range mode.
        aria_labels (Optional[dict]): ARIA labels.
        columns_to_scroll (Optional[int]): Months to scroll.
        decade_label_format (Optional[str]): Decade label format.
        default_level (Optional[Literal["month", "year", "decade"]]): Initial calendar level.
        description (Optional[str]): Helper text under the label.
        enable_keyboard_navigation (Optional[bool]): Enable keyboard navigation.
        first_day_of_week (Optional[Literal[0,1,2,3,4,5,6]]): First day of week.
        header_controls_order (Optional[list[...]]): Header controls order.
        hide_outside_dates (Optional[bool]): Hide outside month dates.
        hide_weekdays (Optional[bool]): Hide weekday labels.
        highlight_today (Optional[bool]): Highlight current date.
        key (Optional[str]): Explicit element key.
        level (Optional[str]): Current level.
        locale (Optional[str]): Locale code.
        max_date (Optional[Union[str, datetime.date]]): Max date.
        max_level (Optional[str]): Max level.
        min_date (Optional[Union[str, datetime.date]]): Min date.
        month_label_format (Optional[str]): Month label format.
        months_list_format (Optional[str]): Months list format.
        next_icon (Optional[RouteLitElement]): Next button icon.
        next_label (Optional[str]): Next button label.
        number_of_columns (Optional[int]): Months displayed.
        on_change (Optional[Callable[[...], None]]): Change handler.
        presets (Optional[list]): Preset ranges.
        previous_icon (Optional[RouteLitElement]): Previous button icon.
        previous_label (Optional[str]): Previous button label.
        size (Optional[str]): Control size.
        type (Optional[Literal["default", "range", "multiple"]]): Picker mode.
        weekday_format (Optional[str]): Weekday label format.
        weekend_days (Optional[list[...]]): Weekend days indices.
        with_cell_spacing (Optional[bool]): Add spacing between cells.
        with_week_numbers (Optional[bool]): Show week numbers.
        year_label_format (Optional[str]): Year label format.
        years_list_format (Optional[str]): Years list format.
        kwargs: Additional props to set.

    Returns:
        Optional[Union[datetime.date, list[datetime.date], tuple[datetime.date, datetime.date]]]: Current value.
    """
    return cast(
        Optional[
            Union[
                datetime.date,
                list[datetime.date],
                tuple[datetime.date, datetime.date],
            ]
        ],
        self._x_input(
            "datepicker",
            key or self._new_widget_id("datepicker", label),
            label=label,
            description=description,
            value=value,
            allowDeselect=allow_deselect,
            allowSingleDateInRange=allow_single_date_in_range,
            ariaLabels=aria_labels,
            columnsToScroll=columns_to_scroll,
            decadeLabelFormat=decade_label_format,
            defaultLevel=default_level,
            enableKeyboardNavigation=enable_keyboard_navigation,
            firstDayOfWeek=first_day_of_week,
            headerControlsOrder=header_controls_order,
            hideOutsideDates=hide_outside_dates,
            hideWeekdays=hide_weekdays,
            highlightToday=highlight_today,
            level=level,
            locale=locale,
            maxDate=max_date,
            maxLevel=max_level,
            minDate=min_date,
            monthLabelFormat=month_label_format,
            monthsListFormat=months_list_format,
            nextIcon=next_icon,
            nextLabel=next_label,
            numberOfColumns=number_of_columns,
            onChange=on_change,
            presets=presets,
            previousIcon=previous_icon,
            previousLabel=previous_label,
            size=size,
            type=type,
            weekdayFormat=weekday_format,
            weekendDays=weekend_days,
            withCellSpacing=with_cell_spacing,
            withWeekNumbers=with_week_numbers,
            yearLabelFormat=year_label_format,
            yearsListFormat=years_list_format,
            rl_format_func=self._format_date_picker,
            **kwargs,
        ),
    )

date_picker_input(label, value=None, *, key=None, description=None, on_change=None, allow_deselect=None, allow_single_date_in_range=None, aria_labels=None, clear_button_props=None, clearable=None, close_on_change=None, columns_to_scroll=None, decade_label_format=None, default_level=None, description_props=None, disabled=None, dropdown_type=None, enable_keyboard_navigation=None, error=None, error_props=None, first_day_of_week=None, header_controls_order=None, hide_outside_dates=None, hide_weekdays=None, highlight_today=None, input_size=None, input_wrapper_order=None, label_props=None, label_separator=None, left_section=None, left_section_pointer_events=None, left_section_props=None, left_section_width=None, level=None, locale=None, max_date=None, max_level=None, min_date=None, modal_props=None, month_label_format=None, months_list_format=None, next_icon=None, next_label=None, number_of_columns=None, placeholder=None, pointer=None, popover_props=None, presets=None, previous_icon=None, previous_label=None, radius=None, read_only=None, required=None, right_section=None, right_section_pointer_events=None, right_section_props=None, right_section_width=None, size=None, sort_dates=None, type=None, value_format=None, weekday_format=None, weekend_days=None, with_asterisk=None, with_cell_spacing=None, with_error_styles=None, with_week_numbers=None, wrapper_props=None, year_label_format=None, years_list_format=None, **kwargs)

Text input with integrated date picker dropdown.

Parameters:

Name Type Description Default
label str

Field label.

required
value Optional[...]

Current value in the selected mode.

None
key Optional[str]

Explicit element key.

None
description Optional[str]

Helper text.

None
on_change Optional[Callable[[Any], None]]

Change handler.

None
allow_deselect Optional[bool]

Allow clearing selection.

None
allow_single_date_in_range Optional[bool]

Allow single date in range mode.

None
aria_labels Optional[dict]

ARIA labels.

None
clear_button_props Optional[dict]

Clear button props.

None
clearable Optional[bool]

Enable clear button.

None
close_on_change Optional[bool]

Close dropdown on change.

None
columns_to_scroll Optional[int]

Months to scroll.

None
decade_label_format Optional[str]

Decade label format.

None
default_level Optional[Literal['month', 'year', 'decade']]

Initial calendar level.

None
description_props Optional[dict]

Description props.

None
disabled Optional[bool]

Disable interaction.

None
dropdown_type Optional[Literal['modal', 'popover']]

Dropdown type.

None
enable_keyboard_navigation Optional[bool]

Enable keyboard navigation.

None
error Optional[str]

Error message.

None
error_props Optional[dict]

Error props.

None
first_day_of_week Optional[Literal[0, 1, 2, 3, 4, 5, 6]]

First day of week.

None
header_controls_order Optional[list[...]]

Header controls order.

None
hide_outside_dates Optional[bool]

Hide outside month dates.

None
hide_weekdays Optional[bool]

Hide weekday labels.

None
highlight_today Optional[bool]

Highlight current date.

None
input_size Optional[str]

Control size.

None
input_wrapper_order Optional[list[Literal['input', 'label', 'description', 'error']]]

Wrapper parts order.

None
label_props Optional[dict]

Label props.

None
label_separator Optional[str]

Separator for range values.

None
left_section Optional[RouteLitElement]

Left adornment.

None
left_section_pointer_events Optional[str]

Pointer events for left section.

None
left_section_props Optional[dict]

Left adornment props.

None
left_section_width Optional[str]

Left adornment width.

None
level Optional[Literal['month', 'year', 'decade']]

Initial calendar level.

None
locale Optional[str]

Locale code.

None
max_date Optional[Union[str, date]]

Max date.

None
max_level Optional[Literal['month', 'year', 'decade']]

Max calendar level.

None
min_date Optional[Union[str, date]]

Min date.

None
modal_props Optional[dict]

Modal props.

None
month_label_format Optional[str]

Month label format.

None
months_list_format Optional[str]

Months list format.

None
next_icon Optional[RouteLitElement]

Next button icon.

None
next_label Optional[str]

Next button label.

None
number_of_columns Optional[int]

Months displayed.

None
placeholder Optional[str]

Input placeholder.

None
pointer Optional[bool]

Use pointer cursor.

None
popover_props Optional[dict]

Popover props.

None
presets Optional[list]

Preset ranges.

None
previous_icon Optional[RouteLitElement]

Previous button icon.

None
previous_label Optional[str]

Previous button label.

None
radius Optional[Union[str, int]]

Corner radius.

None
read_only Optional[bool]

Read-only state.

None
required Optional[bool]

Mark as required.

None
right_section Optional[RouteLitElement]

Right adornment.

None
right_section_pointer_events Optional[str]

Pointer events for right section.

None
right_section_props Optional[dict]

Right adornment props.

None
right_section_width Optional[str]

Right adornment width.

None
size Optional[str]

Control size.

None
sort_dates Optional[bool]

Sort selected dates.

None
type Optional[str]

Picker mode.

None
value_format Optional[str]

Output value format.

None
weekday_format Optional[str]

Weekday label format.

None
weekend_days Optional[list]

Weekend days indices.

None
with_asterisk Optional[bool]

Show required asterisk.

None
with_cell_spacing Optional[bool]

Add spacing between cells.

None
with_error_styles Optional[bool]

Apply error styles.

None
with_week_numbers Optional[bool]

Show week numbers.

None
wrapper_props Optional[dict]

Wrapper props.

None
year_label_format Optional[str]

Year label format.

None
years_list_format Optional[str]

Years list format.

None
kwargs Any

Additional props to set.

{}

Returns:

Type Description
Optional[Union[date, list[date], tuple[date, date]]]

Optional[Union[datetime.date, list[datetime.date], tuple[datetime.date, datetime.date]]]: Current value.

Source code in src/routelit_mantine/builder.py
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
def date_picker_input(
    self,
    label: str,
    value: Optional[
        Union[
            datetime.date,
            str,
            list[str],
            list[datetime.date],
            tuple[str, str],
            tuple[datetime.date, datetime.date],
        ]
    ] = None,
    *,
    key: Optional[str] = None,
    description: Optional[str] = None,
    on_change: Optional[Callable[[Any], None]] = None,
    allow_deselect: Optional[bool] = None,
    allow_single_date_in_range: Optional[bool] = None,
    aria_labels: Optional[dict] = None,
    clear_button_props: Optional[dict] = None,
    clearable: Optional[bool] = None,
    close_on_change: Optional[bool] = None,
    columns_to_scroll: Optional[int] = None,
    decade_label_format: Optional[str] = None,
    default_level: Optional[Literal["month", "year", "decade"]] = None,
    description_props: Optional[dict] = None,
    disabled: Optional[bool] = None,
    dropdown_type: Optional[Literal["modal", "popover"]] = None,
    enable_keyboard_navigation: Optional[bool] = None,
    error: Optional[str] = None,
    error_props: Optional[dict] = None,
    first_day_of_week: Optional[Literal[0, 1, 2, 3, 4, 5, 6]] = None,
    header_controls_order: Optional[list[Literal["level", "next", "previous"]]] = None,
    hide_outside_dates: Optional[bool] = None,
    hide_weekdays: Optional[bool] = None,
    highlight_today: Optional[bool] = None,
    input_size: Optional[str] = None,
    input_wrapper_order: Optional[list[Literal["input", "label", "description", "error"]]] = None,
    label_props: Optional[dict] = None,
    label_separator: Optional[str] = None,
    left_section: Optional[RouteLitElement] = None,
    left_section_pointer_events: Optional[str] = None,
    left_section_props: Optional[dict] = None,
    left_section_width: Optional[str] = None,
    level: Optional[Literal["month", "year", "decade"]] = None,
    locale: Optional[str] = None,
    max_date: Optional[Union[str, datetime.date]] = None,
    max_level: Optional[Literal["month", "year", "decade"]] = None,
    min_date: Optional[Union[str, datetime.date]] = None,
    modal_props: Optional[dict] = None,
    month_label_format: Optional[str] = None,
    months_list_format: Optional[str] = None,
    next_icon: Optional[RouteLitElement] = None,
    next_label: Optional[str] = None,
    number_of_columns: Optional[int] = None,
    placeholder: Optional[str] = None,
    pointer: Optional[bool] = None,
    popover_props: Optional[dict] = None,
    presets: Optional[list] = None,
    previous_icon: Optional[RouteLitElement] = None,
    previous_label: Optional[str] = None,
    radius: Optional[Union[str, int]] = None,
    read_only: Optional[bool] = None,
    required: Optional[bool] = None,
    right_section: Optional[RouteLitElement] = None,
    right_section_pointer_events: Optional[str] = None,
    right_section_props: Optional[dict] = None,
    right_section_width: Optional[str] = None,
    size: Optional[str] = None,
    sort_dates: Optional[bool] = None,
    type: Optional[str] = None,  # noqa: A002
    value_format: Optional[str] = None,
    weekday_format: Optional[str] = None,
    weekend_days: Optional[list] = None,
    with_asterisk: Optional[bool] = None,
    with_cell_spacing: Optional[bool] = None,
    with_error_styles: Optional[bool] = None,
    with_week_numbers: Optional[bool] = None,
    wrapper_props: Optional[dict] = None,
    year_label_format: Optional[str] = None,
    years_list_format: Optional[str] = None,
    **kwargs: Any,
) -> Optional[Union[datetime.date, list[datetime.date], tuple[datetime.date, datetime.date]]]:
    """
    Text input with integrated date picker dropdown.

    Args:
        label (str): Field label.
        value (Optional[...]): Current value in the selected mode.
        key (Optional[str]): Explicit element key.
        description (Optional[str]): Helper text.
        on_change (Optional[Callable[[Any], None]]): Change handler.
        allow_deselect (Optional[bool]): Allow clearing selection.
        allow_single_date_in_range (Optional[bool]): Allow single date in range mode.
        aria_labels (Optional[dict]): ARIA labels.
        clear_button_props (Optional[dict]): Clear button props.
        clearable (Optional[bool]): Enable clear button.
        close_on_change (Optional[bool]): Close dropdown on change.
        columns_to_scroll (Optional[int]): Months to scroll.
        decade_label_format (Optional[str]): Decade label format.
        default_level (Optional[Literal["month", "year", "decade"]]): Initial calendar level.
        description_props (Optional[dict]): Description props.
        disabled (Optional[bool]): Disable interaction.
        dropdown_type (Optional[Literal["modal", "popover"]]): Dropdown type.
        enable_keyboard_navigation (Optional[bool]): Enable keyboard navigation.
        error (Optional[str]): Error message.
        error_props (Optional[dict]): Error props.
        first_day_of_week (Optional[Literal[0,1,2,3,4,5,6]]): First day of week.
        header_controls_order (Optional[list[...]]): Header controls order.
        hide_outside_dates (Optional[bool]): Hide outside month dates.
        hide_weekdays (Optional[bool]): Hide weekday labels.
        highlight_today (Optional[bool]): Highlight current date.
        input_size (Optional[str]): Control size.
        input_wrapper_order (Optional[list[Literal["input","label","description","error"]]]): Wrapper parts order.
        label_props (Optional[dict]): Label props.
        label_separator (Optional[str]): Separator for range values.
        left_section (Optional[RouteLitElement]): Left adornment.
        left_section_pointer_events (Optional[str]): Pointer events for left section.
        left_section_props (Optional[dict]): Left adornment props.
        left_section_width (Optional[str]): Left adornment width.
        level (Optional[Literal["month", "year", "decade"]]): Initial calendar level.
        locale (Optional[str]): Locale code.
        max_date (Optional[Union[str, datetime.date]]): Max date.
        max_level (Optional[Literal["month", "year", "decade"]]): Max calendar level.
        min_date (Optional[Union[str, datetime.date]]): Min date.
        modal_props (Optional[dict]): Modal props.
        month_label_format (Optional[str]): Month label format.
        months_list_format (Optional[str]): Months list format.
        next_icon (Optional[RouteLitElement]): Next button icon.
        next_label (Optional[str]): Next button label.
        number_of_columns (Optional[int]): Months displayed.
        placeholder (Optional[str]): Input placeholder.
        pointer (Optional[bool]): Use pointer cursor.
        popover_props (Optional[dict]): Popover props.
        presets (Optional[list]): Preset ranges.
        previous_icon (Optional[RouteLitElement]): Previous button icon.
        previous_label (Optional[str]): Previous button label.
        radius (Optional[Union[str, int]]): Corner radius.
        read_only (Optional[bool]): Read-only state.
        required (Optional[bool]): Mark as required.
        right_section (Optional[RouteLitElement]): Right adornment.
        right_section_pointer_events (Optional[str]): Pointer events for right section.
        right_section_props (Optional[dict]): Right adornment props.
        right_section_width (Optional[str]): Right adornment width.
        size (Optional[str]): Control size.
        sort_dates (Optional[bool]): Sort selected dates.
        type (Optional[str]): Picker mode.
        value_format (Optional[str]): Output value format.
        weekday_format (Optional[str]): Weekday label format.
        weekend_days (Optional[list]): Weekend days indices.
        with_asterisk (Optional[bool]): Show required asterisk.
        with_cell_spacing (Optional[bool]): Add spacing between cells.
        with_error_styles (Optional[bool]): Apply error styles.
        with_week_numbers (Optional[bool]): Show week numbers.
        wrapper_props (Optional[dict]): Wrapper props.
        year_label_format (Optional[str]): Year label format.
        years_list_format (Optional[str]): Years list format.
        kwargs: Additional props to set.

    Returns:
        Optional[Union[datetime.date, list[datetime.date], tuple[datetime.date, datetime.date]]]: Current value.
    """
    return cast(
        Optional[
            Union[
                datetime.date,
                list[datetime.date],
                tuple[datetime.date, datetime.date],
            ]
        ],
        self._x_input(
            "datepickerinput",
            key or self._new_widget_id("datepickerinput", label),
            label=label,
            description=description,
            value=value,
            allowDeselect=allow_deselect,
            allowSingleDateInRange=allow_single_date_in_range,
            ariaLabels=aria_labels,
            clearButtonProps=clear_button_props,
            clearable=clearable,
            closeOnChange=close_on_change,
            columnsToScroll=columns_to_scroll,
            decadeLabelFormat=decade_label_format,
            defaultLevel=default_level,
            descriptionProps=description_props,
            disabled=disabled,
            dropdownType=dropdown_type,
            enableKeyboardNavigation=enable_keyboard_navigation,
            error=error,
            errorProps=error_props,
            firstDayOfWeek=first_day_of_week,
            headerControlsOrder=header_controls_order,
            hideOutsideDates=hide_outside_dates,
            hideWeekdays=hide_weekdays,
            highlightToday=highlight_today,
            inputSize=input_size,
            inputWrapperOrder=input_wrapper_order,
            labelProps=label_props,
            labelSeparator=label_separator,
            leftSection=left_section,
            leftSectionPointerEvents=left_section_pointer_events,
            leftSectionProps=left_section_props,
            leftSectionWidth=left_section_width,
            level=level,
            locale=locale,
            maxDate=max_date,
            maxLevel=max_level,
            minDate=min_date,
            modalProps=modal_props,
            monthLabelFormat=month_label_format,
            monthsListFormat=months_list_format,
            nextIcon=next_icon,
            nextLabel=next_label,
            numberOfColumns=number_of_columns,
            on_change=on_change,
            placeholder=placeholder,
            pointer=pointer,
            popoverProps=popover_props,
            presets=presets,
            previousIcon=previous_icon,
            previousLabel=previous_label,
            radius=radius,
            readOnly=read_only,
            required=required,
            rightSection=right_section,
            rightSectionPointerEvents=right_section_pointer_events,
            rightSectionProps=right_section_props,
            rightSectionWidth=right_section_width,
            size=size,
            sortDates=sort_dates,
            type=type,
            valueFormat=value_format,
            weekdayFormat=weekday_format,
            weekendDays=weekend_days,
            withAsterisk=with_asterisk,
            withCellSpacing=with_cell_spacing,
            withErrorStyles=with_error_styles,
            withWeekNumbers=with_week_numbers,
            wrapperProps=wrapper_props,
            yearLabelFormat=year_label_format,
            yearsListFormat=years_list_format,
            rl_format_func=self._format_date_picker,
            **kwargs,
        ),
    )

date_time_picker(label, value=None, *, clearable=None, columns_to_scroll=None, description=None, disabled=None, dropdown_type=None, error=None, first_day_of_week=None, header_controls_order=None, hide_outside_dates=None, hide_weekdays=None, highlight_today=None, input_size=None, input_wrapper_order=None, label_props=None, label_separator=None, left_section=None, left_section_props=None, left_section_width=None, level=None, locale=None, max_date=None, max_level=None, min_date=None, months_list_format=None, number_of_columns=None, next_label=None, next_icon=None, on_change=None, popover_props=None, presets=None, previous_icon=None, previous_label=None, placeholder=None, radius=None, read_only=None, required=None, right_section=None, right_section_pointer_events=None, right_section_props=None, right_section_width=None, size=None, sort_dates=None, submit_button_props=None, time_picker_props=None, value_format=None, weekday_format=None, weekend_days=None, with_asterisk=None, with_cell_spacing=None, with_error_styles=None, with_seconds=None, with_week_numbers=None, wrapper_props=None, year_label_format=None, years_list_format=None, pointer=None, key=None, **kwargs)

Date-time picker input with calendar and time selection.

Parameters:

Name Type Description Default
label str

Field label.

required
value Optional[Union[datetime, str]]

Current value.

None
clearable Optional[bool]

Show clear button.

None
columns_to_scroll Optional[int]

Number of months to scroll.

None
description Optional[str]

Helper text under the label.

None
disabled Optional[bool]

Disable interaction.

None
dropdown_type Optional[Literal['modal', 'popover']]

Dropdown type.

None
error Optional[str]

Error message.

None
first_day_of_week Optional[Literal[0, 1, 2, 3, 4, 5, 6]]

First day of week.

None
header_controls_order Optional[list[Literal['level', 'next', 'previous']]]

Header controls order.

None
hide_outside_dates Optional[bool]

Hide outside month dates.

None
hide_weekdays Optional[bool]

Hide weekday labels.

None
highlight_today Optional[bool]

Highlight current date.

None
input_size Optional[str]

Control size.

None
input_wrapper_order Optional[list[str]]

Input wrapper parts order.

None
label_props Optional[dict[str, Any]]

Label props.

None
label_separator Optional[str]

Separator between date and time.

None
left_section Optional[RouteLitElement]

Left adornment.

None
left_section_props Optional[dict[str, Any]]

Left adornment props.

None
left_section_width Optional[str]

Left adornment width.

None
level Optional[Literal['month', 'year', 'decade']]

Initial calendar level.

None
locale Optional[str]

Locale code.

None
max_date Optional[Union[datetime, str]]

Max date.

None
max_level Optional[Literal['month', 'year', 'decade']]

Max calendar level.

None
min_date Optional[Union[datetime, str]]

Min date.

None
months_list_format Optional[str]

Months list format.

None
number_of_columns Optional[int]

Number of months displayed.

None
next_label Optional[str]

Next button label.

None
next_icon Optional[RouteLitElement]

Next button icon.

None
on_change Optional[Callable[[datetime], None]]

Change handler.

None
popover_props Optional[dict[str, Any]]

Popover props.

None
presets Optional[list[dict[str, Any]]]

Presets configuration.

None
previous_icon Optional[RouteLitElement]

Previous button icon.

None
previous_label Optional[str]

Previous button label.

None
placeholder Optional[str]

Input placeholder.

None
radius Optional[Union[str, int]]

Corner radius.

None
read_only Optional[bool]

Read-only state.

None
required Optional[bool]

Mark as required.

None
right_section Optional[RouteLitElement]

Right adornment.

None
right_section_pointer_events Optional[str]

Pointer events for right section.

None
right_section_props Optional[dict[str, Any]]

Right adornment props.

None
right_section_width Optional[str]

Right adornment width.

None
size Optional[str]

Control size.

None
sort_dates Optional[bool]

Sort selected dates.

None
submit_button_props Optional[dict[str, Any]]

Submit button props.

None
time_picker_props Optional[dict[str, Any]]

Time picker props.

None
value_format Optional[str]

Output value format.

None
weekday_format Optional[str]

Weekday label format.

None
weekend_days Optional[list[Literal[0, 1, 2, 3, 4, 5, 6]]]

Weekend days indices.

None
with_asterisk Optional[bool]

Show required asterisk.

None
with_cell_spacing Optional[bool]

Add spacing between cells.

None
with_error_styles Optional[bool]

Apply error styles.

None
with_seconds Optional[bool]

Include seconds selector.

None
with_week_numbers Optional[bool]

Show week numbers.

None
wrapper_props Optional[dict[str, Any]]

Wrapper props.

None
year_label_format Optional[str]

Year label format.

None
years_list_format Optional[str]

Years list format.

None
pointer Optional[bool]

Use pointer cursor.

None
key Optional[str]

Explicit element key.

None
kwargs Any

Additional props to set.

{}

Returns:

Type Description
Optional[datetime]

Optional[datetime.datetime]: Current value.

Source code in src/routelit_mantine/builder.py
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
def date_time_picker(
    self,
    label: str,
    value: Optional[Union[datetime.datetime, str]] = None,
    *,
    clearable: Optional[bool] = None,
    columns_to_scroll: Optional[int] = None,
    description: Optional[str] = None,
    disabled: Optional[bool] = None,
    dropdown_type: Optional[Literal["modal", "popover"]] = None,
    error: Optional[str] = None,
    first_day_of_week: Optional[Literal[0, 1, 2, 3, 4, 5, 6]] = None,
    header_controls_order: Optional[list[Literal["level", "next", "previous"]]] = None,
    hide_outside_dates: Optional[bool] = None,
    hide_weekdays: Optional[bool] = None,
    highlight_today: Optional[bool] = None,
    input_size: Optional[str] = None,
    input_wrapper_order: Optional[list[str]] = None,
    label_props: Optional[dict[str, Any]] = None,
    label_separator: Optional[str] = None,
    left_section: Optional[RouteLitElement] = None,
    left_section_props: Optional[dict[str, Any]] = None,
    left_section_width: Optional[str] = None,
    level: Optional[Literal["month", "year", "decade"]] = None,
    locale: Optional[str] = None,
    max_date: Optional[Union[datetime.datetime, str]] = None,
    max_level: Optional[Literal["month", "year", "decade"]] = None,
    min_date: Optional[Union[datetime.datetime, str]] = None,
    months_list_format: Optional[str] = None,
    number_of_columns: Optional[int] = None,
    next_label: Optional[str] = None,
    next_icon: Optional[RouteLitElement] = None,
    on_change: Optional[Callable[[datetime.datetime], None]] = None,
    popover_props: Optional[dict[str, Any]] = None,
    presets: Optional[list[dict[str, Any]]] = None,
    previous_icon: Optional[RouteLitElement] = None,
    previous_label: Optional[str] = None,
    placeholder: Optional[str] = None,
    radius: Optional[Union[str, int]] = None,
    read_only: Optional[bool] = None,
    required: Optional[bool] = None,
    right_section: Optional[RouteLitElement] = None,
    right_section_pointer_events: Optional[str] = None,
    right_section_props: Optional[dict[str, Any]] = None,
    right_section_width: Optional[str] = None,
    size: Optional[str] = None,
    sort_dates: Optional[bool] = None,
    submit_button_props: Optional[dict[str, Any]] = None,
    time_picker_props: Optional[dict[str, Any]] = None,
    value_format: Optional[str] = None,
    weekday_format: Optional[str] = None,
    weekend_days: Optional[list[Literal[0, 1, 2, 3, 4, 5, 6]]] = None,
    with_asterisk: Optional[bool] = None,
    with_cell_spacing: Optional[bool] = None,
    with_error_styles: Optional[bool] = None,
    with_seconds: Optional[bool] = None,
    with_week_numbers: Optional[bool] = None,
    wrapper_props: Optional[dict[str, Any]] = None,
    year_label_format: Optional[str] = None,
    years_list_format: Optional[str] = None,
    pointer: Optional[bool] = None,
    key: Optional[str] = None,
    **kwargs: Any,
) -> Optional[datetime.datetime]:
    """
    Date-time picker input with calendar and time selection.

    Args:
        label (str): Field label.
        value (Optional[Union[datetime.datetime, str]]): Current value.
        clearable (Optional[bool]): Show clear button.
        columns_to_scroll (Optional[int]): Number of months to scroll.
        description (Optional[str]): Helper text under the label.
        disabled (Optional[bool]): Disable interaction.
        dropdown_type (Optional[Literal["modal", "popover"]]): Dropdown type.
        error (Optional[str]): Error message.
        first_day_of_week (Optional[Literal[0,1,2,3,4,5,6]]): First day of week.
        header_controls_order (Optional[list[Literal["level", "next", "previous"]]]): Header controls order.
        hide_outside_dates (Optional[bool]): Hide outside month dates.
        hide_weekdays (Optional[bool]): Hide weekday labels.
        highlight_today (Optional[bool]): Highlight current date.
        input_size (Optional[str]): Control size.
        input_wrapper_order (Optional[list[str]]): Input wrapper parts order.
        label_props (Optional[dict[str, Any]]): Label props.
        label_separator (Optional[str]): Separator between date and time.
        left_section (Optional[RouteLitElement]): Left adornment.
        left_section_props (Optional[dict[str, Any]]): Left adornment props.
        left_section_width (Optional[str]): Left adornment width.
        level (Optional[Literal["month", "year", "decade"]]): Initial calendar level.
        locale (Optional[str]): Locale code.
        max_date (Optional[Union[datetime.datetime, str]]): Max date.
        max_level (Optional[Literal["month", "year", "decade"]]): Max calendar level.
        min_date (Optional[Union[datetime.datetime, str]]): Min date.
        months_list_format (Optional[str]): Months list format.
        number_of_columns (Optional[int]): Number of months displayed.
        next_label (Optional[str]): Next button label.
        next_icon (Optional[RouteLitElement]): Next button icon.
        on_change (Optional[Callable[[datetime.datetime], None]]): Change handler.
        popover_props (Optional[dict[str, Any]]): Popover props.
        presets (Optional[list[dict[str, Any]]]): Presets configuration.
        previous_icon (Optional[RouteLitElement]): Previous button icon.
        previous_label (Optional[str]): Previous button label.
        placeholder (Optional[str]): Input placeholder.
        radius (Optional[Union[str, int]]): Corner radius.
        read_only (Optional[bool]): Read-only state.
        required (Optional[bool]): Mark as required.
        right_section (Optional[RouteLitElement]): Right adornment.
        right_section_pointer_events (Optional[str]): Pointer events for right section.
        right_section_props (Optional[dict[str, Any]]): Right adornment props.
        right_section_width (Optional[str]): Right adornment width.
        size (Optional[str]): Control size.
        sort_dates (Optional[bool]): Sort selected dates.
        submit_button_props (Optional[dict[str, Any]]): Submit button props.
        time_picker_props (Optional[dict[str, Any]]): Time picker props.
        value_format (Optional[str]): Output value format.
        weekday_format (Optional[str]): Weekday label format.
        weekend_days (Optional[list[Literal[0,1,2,3,4,5,6]]]): Weekend days indices.
        with_asterisk (Optional[bool]): Show required asterisk.
        with_cell_spacing (Optional[bool]): Add spacing between cells.
        with_error_styles (Optional[bool]): Apply error styles.
        with_seconds (Optional[bool]): Include seconds selector.
        with_week_numbers (Optional[bool]): Show week numbers.
        wrapper_props (Optional[dict[str, Any]]): Wrapper props.
        year_label_format (Optional[str]): Year label format.
        years_list_format (Optional[str]): Years list format.
        pointer (Optional[bool]): Use pointer cursor.
        key (Optional[str]): Explicit element key.
        kwargs: Additional props to set.

    Returns:
        Optional[datetime.datetime]: Current value.
    """
    return cast(
        Optional[datetime.datetime],
        self._x_input(
            "datetimepicker",
            key or self._new_widget_id("datetimepicker", label),
            clearable=clearable,
            columnsToScroll=columns_to_scroll,
            description=description,
            disabled=disabled,
            dropdownType=dropdown_type,
            error=error,
            firstDayOfWeek=first_day_of_week,
            headerControlsOrder=header_controls_order,
            hideOutsideDates=hide_outside_dates,
            hideWeekdays=hide_weekdays,
            highlightToday=highlight_today,
            inputSize=input_size,
            inputWrapperOrder=input_wrapper_order,
            label=label,
            labelProps=label_props,
            labelSeparator=label_separator,
            value=value,
            leftSection=left_section,
            leftSectionProps=left_section_props,
            leftSectionWidth=left_section_width,
            level=level,
            locale=locale,
            maxDate=max_date,
            maxLevel=max_level,
            minDate=min_date,
            monthsListFormat=months_list_format,
            nextIcon=next_icon,
            nextLabel=next_label,
            numberOfColumns=number_of_columns,
            on_change=on_change,
            popoverProps=popover_props,
            presets=presets,
            previousIcon=previous_icon,
            previousLabel=previous_label,
            placeholder=placeholder,
            radius=radius,
            readOnly=read_only,
            required=required,
            rightSection=right_section,
            rightSectionPointerEvents=right_section_pointer_events,
            rightSectionProps=right_section_props,
            rightSectionWidth=right_section_width,
            rl_format_func=self._format_datetime,
            size=size,
            sortDates=sort_dates,
            submitButtonProps=submit_button_props,
            timePickerProps=time_picker_props,
            valueFormat=value_format,
            weekdayFormat=weekday_format,
            weekendDays=weekend_days,
            withAsterisk=with_asterisk,
            withCellSpacing=with_cell_spacing,
            withErrorStyles=with_error_styles,
            withSeconds=with_seconds,
            withWeekNumbers=with_week_numbers,
            wrapperProps=wrapper_props,
            yearLabelFormat=year_label_format,
            yearsListFormat=years_list_format,
            pointer=pointer,
            **kwargs,
        ),
    )

dialog(key=None, *, with_close_button=None, **kwargs)

Open a dialog container for arbitrary content.

Parameters:

Name Type Description Default
key Optional[str]

Explicit element key.

None
with_close_button Optional[bool]

Show close button.

None
kwargs Any

Additional props to set.

{}

Returns:

Name Type Description
RLBuilder RLBuilder

A nested builder scoped to the dialog element.

Source code in src/routelit_mantine/builder.py
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
def dialog(
    self,
    key: Optional[str] = None,
    *,
    with_close_button: Optional[bool] = None,
    **kwargs: Any,
) -> "RLBuilder":
    """
    Open a dialog container for arbitrary content.

    Args:
        key (Optional[str]): Explicit element key.
        with_close_button (Optional[bool]): Show close button.
        kwargs: Additional props to set.

    Returns:
        RLBuilder: A nested builder scoped to the dialog element.
    """
    return super()._x_dialog(  # type: ignore[return-value]
        "dialog",
        key or self._new_text_id("dialog"),
        opened=True,
        withCloseButton=with_close_button,
        **kwargs,
    )

donut_chart(data, *, chart_label=None, end_angle=None, key=None, label_color=None, labels_type=None, padding_angle=None, pie_chart_props=None, pie_props=None, size=None, start_angle=None, stroke_color=None, stroke_width=None, thickness=None, tooltip_animation_duration=None, tooltip_data_source=None, tooltip_props=None, with_labels=None, with_labels_line=None, with_tooltip=None, **kwargs)

Donut chart to visualize parts of a whole.

Parameters:

Name Type Description Default
data list

Dataset.

required
chart_label Optional[Union[str, int]]

Center label.

None
end_angle Optional[int]

End angle.

None
key Optional[str]

Explicit element key.

None
label_color Optional[str]

Label color.

None
labels_type Optional[str]

Label content type.

None
padding_angle Optional[int]

Angle between segments.

None
pie_chart_props Optional[dict[str, Any]]

Chart container props.

None
pie_props Optional[dict[str, Any]]

Pie props.

None
size Optional[int]

Chart size.

None
start_angle Optional[int]

Start angle.

None
stroke_color Optional[str]

Segment border color.

None
stroke_width Optional[int]

Segment border width.

None
thickness Optional[int]

Ring thickness.

None
tooltip_animation_duration Optional[int]

Tooltip animation duration.

None
tooltip_data_source Optional[Literal['all', 'segment']]

Tooltip data source.

None
tooltip_props Optional[dict[str, Any]]

Tooltip props.

None
with_labels Optional[bool]

Show labels.

None
with_labels_line Optional[bool]

Show label connector lines.

None
with_tooltip Optional[bool]

Show tooltip.

None
kwargs Any

Additional props to set.

{}

Returns:

Name Type Description
RLBuilder RLBuilder

A nested builder scoped to the donut chart element.

Source code in src/routelit_mantine/builder.py
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137
5138
def donut_chart(
    self,
    data: list,
    *,
    chart_label: Optional[Union[str, int]] = None,
    end_angle: Optional[int] = None,
    key: Optional[str] = None,
    label_color: Optional[str] = None,
    labels_type: Optional[str] = None,
    padding_angle: Optional[int] = None,
    pie_chart_props: Optional[dict[str, Any]] = None,
    pie_props: Optional[dict[str, Any]] = None,
    size: Optional[int] = None,
    start_angle: Optional[int] = None,
    stroke_color: Optional[str] = None,
    stroke_width: Optional[int] = None,
    thickness: Optional[int] = None,
    tooltip_animation_duration: Optional[int] = None,
    tooltip_data_source: Optional[Literal["all", "segment"]] = None,
    tooltip_props: Optional[dict[str, Any]] = None,
    with_labels: Optional[bool] = None,
    with_labels_line: Optional[bool] = None,
    with_tooltip: Optional[bool] = None,
    **kwargs: Any,
) -> "RLBuilder":
    """
    Donut chart to visualize parts of a whole.

    Args:
        data (list): Dataset.
        chart_label (Optional[Union[str, int]]): Center label.
        end_angle (Optional[int]): End angle.
        key (Optional[str]): Explicit element key.
        label_color (Optional[str]): Label color.
        labels_type (Optional[str]): Label content type.
        padding_angle (Optional[int]): Angle between segments.
        pie_chart_props (Optional[dict[str, Any]]): Chart container props.
        pie_props (Optional[dict[str, Any]]): Pie props.
        size (Optional[int]): Chart size.
        start_angle (Optional[int]): Start angle.
        stroke_color (Optional[str]): Segment border color.
        stroke_width (Optional[int]): Segment border width.
        thickness (Optional[int]): Ring thickness.
        tooltip_animation_duration (Optional[int]): Tooltip animation duration.
        tooltip_data_source (Optional[Literal["all","segment"]]): Tooltip data source.
        tooltip_props (Optional[dict[str, Any]]): Tooltip props.
        with_labels (Optional[bool]): Show labels.
        with_labels_line (Optional[bool]): Show label connector lines.
        with_tooltip (Optional[bool]): Show tooltip.
        kwargs: Additional props to set.

    Returns:
        RLBuilder: A nested builder scoped to the donut chart element.
    """
    return self._create_builder_element(  # type: ignore[return-value]
        name="donutchart",
        key=key or self._new_text_id("donutchart"),
        props={
            "data": data,
            "chartLabel": chart_label,
            "endAngle": end_angle,
            "labelColor": label_color,
            "labelsType": labels_type,
            "paddingAngle": padding_angle,
            "pieChartProps": pie_chart_props,
            "pieProps": pie_props,
            "size": size,
            "startAngle": start_angle,
            "strokeColor": stroke_color,
            "strokeWidth": stroke_width,
            "thickness": thickness,
            "tooltipAnimationDuration": tooltip_animation_duration,
            "tooltipDataSource": tooltip_data_source,
            "tooltipProps": tooltip_props,
            "withLabels": with_labels,
            "withLabelsLine": with_labels_line,
            "withTooltip": with_tooltip,
            **kwargs,
        },
    )

drawer(key=None, *, close_button_props=None, close_on_click_outside=None, close_on_escape=None, on_close=None, keep_mounted=None, lock_scroll=None, offset=None, overlay_props=None, padding=None, portal_props=None, position=None, radius=None, remove_scroll_props=None, return_focus=None, scroll_area_component=None, shadow=None, size=None, stack_id=None, title=None, transition_props=None, trap_focus=None, with_close_button=None, with_overlay=None, within_portal=None, z_index=None, **kwargs)

Drawer component that slides from screen edges.

Parameters:

Name Type Description Default
key Optional[str]

Explicit element key.

None
close_button_props Optional[dict]

Close button props.

None
close_on_click_outside Optional[bool]

Close when clicking outside.

None
close_on_escape Optional[bool]

Close on Escape key.

None
on_close Optional[Callable[[], bool]]

Close handler.

None
keep_mounted Optional[bool]

Keep in DOM when closed.

None
lock_scroll Optional[bool]

Lock document scroll when opened.

None
offset Optional[Union[str, int]]

Offset from viewport edges.

None
overlay_props Optional[dict]

Overlay props.

None
padding Optional[Union[str, int]]

Content padding.

None
portal_props Optional[dict]

Portal props.

None
position Optional[str]

Edge position.

None
radius Optional[Union[str, int]]

Corner radius.

None
remove_scroll_props Optional[dict]

Remove scroll props.

None
return_focus Optional[bool]

Return focus to trigger on close.

None
scroll_area_component Optional[str]

Custom scroll area component.

None
shadow Optional[str]

Shadow preset.

None
size Optional[Union[str, int]]

Drawer size.

None
stack_id Optional[str]

Stack identifier.

None
title Optional[str]

Header title.

None
transition_props Optional[dict]

Transition props.

None
trap_focus Optional[bool]

Trap focus inside drawer.

None
with_close_button Optional[bool]

Show close button.

None
with_overlay Optional[bool]

Show overlay.

None
within_portal Optional[bool]

Render within portal.

None
z_index Optional[Union[str, int]]

CSS z-index.

None
kwargs Any

Additional props to set.

{}

Returns:

Name Type Description
RLBuilder RLBuilder

A nested builder scoped to the drawer element.

Source code in src/routelit_mantine/builder.py
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
def drawer(
    self,
    key: Optional[str] = None,
    *,
    close_button_props: Optional[dict] = None,
    close_on_click_outside: Optional[bool] = None,
    close_on_escape: Optional[bool] = None,
    on_close: Optional[Callable[[], bool]] = None,
    keep_mounted: Optional[bool] = None,
    lock_scroll: Optional[bool] = None,
    offset: Optional[Union[str, int]] = None,
    overlay_props: Optional[dict] = None,
    padding: Optional[Union[str, int]] = None,
    portal_props: Optional[dict] = None,
    position: Optional[str] = None,
    radius: Optional[Union[str, int]] = None,
    remove_scroll_props: Optional[dict] = None,
    return_focus: Optional[bool] = None,
    scroll_area_component: Optional[str] = None,
    shadow: Optional[str] = None,
    size: Optional[Union[str, int]] = None,
    stack_id: Optional[str] = None,
    title: Optional[str] = None,
    transition_props: Optional[dict] = None,
    trap_focus: Optional[bool] = None,
    with_close_button: Optional[bool] = None,
    with_overlay: Optional[bool] = None,
    within_portal: Optional[bool] = None,
    z_index: Optional[Union[str, int]] = None,
    **kwargs: Any,
) -> "RLBuilder":
    """
    Drawer component that slides from screen edges.

    Args:
        key (Optional[str]): Explicit element key.
        close_button_props (Optional[dict]): Close button props.
        close_on_click_outside (Optional[bool]): Close when clicking outside.
        close_on_escape (Optional[bool]): Close on Escape key.
        on_close (Optional[Callable[[], bool]]): Close handler.
        keep_mounted (Optional[bool]): Keep in DOM when closed.
        lock_scroll (Optional[bool]): Lock document scroll when opened.
        offset (Optional[Union[str, int]]): Offset from viewport edges.
        overlay_props (Optional[dict]): Overlay props.
        padding (Optional[Union[str, int]]): Content padding.
        portal_props (Optional[dict]): Portal props.
        position (Optional[str]): Edge position.
        radius (Optional[Union[str, int]]): Corner radius.
        remove_scroll_props (Optional[dict]): Remove scroll props.
        return_focus (Optional[bool]): Return focus to trigger on close.
        scroll_area_component (Optional[str]): Custom scroll area component.
        shadow (Optional[str]): Shadow preset.
        size (Optional[Union[str, int]]): Drawer size.
        stack_id (Optional[str]): Stack identifier.
        title (Optional[str]): Header title.
        transition_props (Optional[dict]): Transition props.
        trap_focus (Optional[bool]): Trap focus inside drawer.
        with_close_button (Optional[bool]): Show close button.
        with_overlay (Optional[bool]): Show overlay.
        within_portal (Optional[bool]): Render within portal.
        z_index (Optional[Union[str, int]]): CSS z-index.
        kwargs: Additional props to set.

    Returns:
        RLBuilder: A nested builder scoped to the drawer element.
    """
    return super()._x_dialog(  # type: ignore[return-value]
        "drawer",
        key or self._new_text_id("drawer"),
        opened=True,
        closeButtonProps=close_button_props,
        closeOnClickOutside=close_on_click_outside,
        closeOnEscape=close_on_escape,
        keepMounted=keep_mounted,
        lockScroll=lock_scroll,
        offset=offset,
        on_close=on_close,
        overlayProps=overlay_props,
        padding=padding,
        portalProps=portal_props,
        position=position,
        radius=radius,
        removeScrollProps=remove_scroll_props,
        returnFocus=return_focus,
        scrollAreaComponent=scroll_area_component,
        shadow=shadow,
        size=size,
        stackId=stack_id,
        title=title,
        transitionProps=transition_props,
        trapFocus=trap_focus,
        withCloseButton=with_close_button,
        withOverlay=with_overlay,
        withinPortal=within_portal,
        zIndex=z_index,
        **kwargs,
    )

expander(title, *, is_open=None, key=None, chevron=None, chevron_icon_size=None, chevron_position=None, chevron_size=None, disabled=None, disable_chevron_rotation=None, icon=None, radius=None, transition_duration=None, variant=None, **kwargs)

Expander component. This is a wrapper around the accordion component.

Parameters:

Name Type Description Default
title str

Title text shown in the expander header

required
is_open Optional[bool]

Whether the expander is initially expanded

None
key Optional[str]

Unique key for the component

None
chevron Optional[Any]

Custom chevron element

None
chevron_icon_size Optional[Union[str, int]]

Size of the chevron icon

None
chevron_position Optional[str]

Position of the chevron icon

None
chevron_size Optional[Union[str, int]]

Size of the chevron container

None
disabled Optional[bool]

Whether the expander is disabled

None
disable_chevron_rotation Optional[bool]

Whether to disable chevron rotation animation

None
icon Optional[RouteLitElement]

Icon element shown before the title

None
radius Optional[Union[str, int]]

Border radius

None
transition_duration Optional[int]

Duration of expand/collapse animation in ms

None
variant Optional[Literal['default', 'filled', 'separated', 'contained', 'unstyled']]

Visual variant

None
kwargs Any

Additional props to pass to the accordion component

{}

Returns:

Name Type Description
RLBuilder RLBuilder

Builder for the expander content

Source code in src/routelit_mantine/builder.py
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
def expander(
    self,
    title: str,
    *,
    is_open: Optional[bool] = None,
    key: Optional[str] = None,
    chevron: Optional[Any] = None,
    chevron_icon_size: Optional[Union[str, int]] = None,
    chevron_position: Optional[str] = None,
    chevron_size: Optional[Union[str, int]] = None,
    disabled: Optional[bool] = None,
    disable_chevron_rotation: Optional[bool] = None,
    icon: Optional[RouteLitElement] = None,
    radius: Optional[Union[str, int]] = None,
    transition_duration: Optional[int] = None,
    variant: Optional[Literal["default", "filled", "separated", "contained", "unstyled"]] = None,
    **kwargs: Any,
) -> "RLBuilder":
    """
    Expander component.
    This is a wrapper around the accordion component.

    Args:
        title (str): Title text shown in the expander header
        is_open (Optional[bool]): Whether the expander is initially expanded
        key (Optional[str]): Unique key for the component
        chevron (Optional[Any]): Custom chevron element
        chevron_icon_size (Optional[Union[str, int]]): Size of the chevron icon
        chevron_position (Optional[str]): Position of the chevron icon
        chevron_size (Optional[Union[str, int]]): Size of the chevron container
        disabled (Optional[bool]): Whether the expander is disabled
        disable_chevron_rotation (Optional[bool]): Whether to disable chevron rotation animation
        icon (Optional[RouteLitElement]): Icon element shown before the title
        radius (Optional[Union[str, int]]): Border radius
        transition_duration (Optional[int]): Duration of expand/collapse animation in ms
        variant (Optional[Literal["default", "filled", "separated", "contained", "unstyled"]]): Visual variant
        kwargs (Any): Additional props to pass to the accordion component

    Returns:
        RLBuilder: Builder for the expander content
    """
    value = self._new_widget_id("accordionitem", title) if key is None else key
    accordion = self.accordion(
        key=key,
        chevron=chevron,
        chevron_icon_size=chevron_icon_size,
        chevron_position=chevron_position,
        chevron_size=chevron_size,
        disable_chevron_rotation=disable_chevron_rotation,
        radius=radius,
        transition_duration=transition_duration,
        variant=variant,
        value=value if is_open else None,
        **kwargs,
    )
    with accordion:
        item = self.accordion_item(
            label=title,
            key=value,
            disabled=disabled,
            icon=icon,
        )
        return item

fieldset(legend, *, disabled=None, key=None, radius=None, **kwargs)

Group a set of related form fields under a legend.

Parameters:

Name Type Description Default
legend str

Legend text.

required
disabled Optional[bool]

Disable all nested inputs.

None
key Optional[str]

Explicit element key.

None
radius Optional[str]

Corner radius.

None
kwargs Any

Additional props to set.

{}

Returns:

Name Type Description
RLBuilder RLBuilder

A nested builder scoped to the fieldset element.

Source code in src/routelit_mantine/builder.py
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
def fieldset(
    self,
    legend: str,
    *,
    disabled: Optional[bool] = None,
    key: Optional[str] = None,
    radius: Optional[str] = None,
    **kwargs: Any,
) -> "RLBuilder":
    """
    Group a set of related form fields under a legend.

    Args:
        legend (str): Legend text.
        disabled (Optional[bool]): Disable all nested inputs.
        key (Optional[str]): Explicit element key.
        radius (Optional[str]): Corner radius.
        kwargs: Additional props to set.

    Returns:
        RLBuilder: A nested builder scoped to the fieldset element.
    """
    element = self._create_element(
        key=key or self._new_widget_id("fieldset", legend),
        name="fieldset",
        props={
            "disabled": disabled,
            "legend": legend,
            "radius": radius,
            **kwargs,
        },
    )
    return cast(RLBuilder, self._build_nested_builder(element))

flex(*, align=None, column_gap=None, direction=None, gap=None, justify=None, key=None, row_gap=None, wrap=None, **kwargs)

Create a flex.

Parameters:

Name Type Description Default
align Optional[str]

The alignment of the flex.

None
column_gap Optional[str]

The gap between columns.

None
direction Optional[str]

The direction of the flex.

None
gap Optional[str]

The gap between items.

None
justify Optional[str]

The justification of the flex.

None
key Optional[str]

The key of the flex.

None
row_gap Optional[str]

The gap between rows.

None
wrap Optional[str]

The wrapping of the flex.

None
kwargs Any

Additional props to set.

{}

Returns:

Name Type Description
RLBuilder RLBuilder

The flex builder.

Source code in src/routelit_mantine/builder.py
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
def flex(  # type: ignore[override]
    self,
    *,
    align: Optional[str] = None,
    column_gap: Optional[str] = None,
    direction: Optional[str] = None,
    gap: Optional[str] = None,
    justify: Optional[str] = None,
    key: Optional[str] = None,
    row_gap: Optional[str] = None,
    wrap: Optional[str] = None,
    **kwargs: Any,
) -> "RLBuilder":
    """
    Create a flex.

    Args:
        align (Optional[str]): The alignment of the flex.
        column_gap (Optional[str]): The gap between columns.
        direction (Optional[str]): The direction of the flex.
        gap (Optional[str]): The gap between items.
        justify (Optional[str]): The justification of the flex.
        key (Optional[str]): The key of the flex.
        row_gap (Optional[str]): The gap between rows.
        wrap (Optional[str]): The wrapping of the flex.
        kwargs: Additional props to set.

    Returns:
        RLBuilder: The flex builder.
    """
    new_element = self._create_element(
        key=key or self._new_text_id("flex"),
        name="flex",
        props={
            "align": align,
            "columnGap": column_gap,
            "direction": direction,
            "gap": gap,
            "justify": justify,
            "rowGap": row_gap,
            "wrap": wrap,
            **kwargs,
        },
    )
    return cast(RLBuilder, self._build_nested_builder(new_element))

funnel_chart(data, *, funnel_chart_props=None, funnel_props=None, key=None, label_color=None, labels_position=None, size=None, stroke_color=None, stroke_width=None, tooltip_animation_duration=None, tooltip_data_source=None, tooltip_props=None, value_formatter=None, with_labels=None, with_tooltip=None, **kwargs)

Funnel chart for conversion or pipeline visualization.

Parameters:

Name Type Description Default
data list

Dataset.

required
funnel_chart_props Optional[dict[str, Any]]

Chart container props.

None
funnel_props Optional[dict[str, Any]]

Funnel props.

None
key Optional[str]

Explicit element key.

None
label_color Optional[str]

Label color.

None
labels_position Optional[Literal['left', 'right', 'inside']]

Labels position.

None
size Optional[int]

Chart size.

None
stroke_color Optional[str]

Border color.

None
stroke_width Optional[int]

Border width.

None
tooltip_animation_duration Optional[int]

Tooltip animation duration.

None
tooltip_data_source Optional[Literal['all', 'segment']]

Tooltip data source.

None
tooltip_props Optional[dict[str, Any]]

Tooltip props.

None
value_formatter Optional[Any]

Value formatter.

None
with_labels Optional[bool]

Show labels.

None
with_tooltip Optional[bool]

Show tooltip.

None
kwargs Any

Additional props to set.

{}

Returns:

Name Type Description
RLBuilder RLBuilder

A nested builder scoped to the funnel chart element.

Source code in src/routelit_mantine/builder.py
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
def funnel_chart(
    self,
    data: list,
    *,
    funnel_chart_props: Optional[dict[str, Any]] = None,
    funnel_props: Optional[dict[str, Any]] = None,
    key: Optional[str] = None,
    label_color: Optional[str] = None,
    labels_position: Optional[Literal["left", "right", "inside"]] = None,
    size: Optional[int] = None,
    stroke_color: Optional[str] = None,
    stroke_width: Optional[int] = None,
    tooltip_animation_duration: Optional[int] = None,
    tooltip_data_source: Optional[Literal["all", "segment"]] = None,
    tooltip_props: Optional[dict[str, Any]] = None,
    value_formatter: Optional[Any] = None,
    with_labels: Optional[bool] = None,
    with_tooltip: Optional[bool] = None,
    **kwargs: Any,
) -> "RLBuilder":
    """
    Funnel chart for conversion or pipeline visualization.

    Args:
        data (list): Dataset.
        funnel_chart_props (Optional[dict[str, Any]]): Chart container props.
        funnel_props (Optional[dict[str, Any]]): Funnel props.
        key (Optional[str]): Explicit element key.
        label_color (Optional[str]): Label color.
        labels_position (Optional[Literal["left","right","inside"]]): Labels position.
        size (Optional[int]): Chart size.
        stroke_color (Optional[str]): Border color.
        stroke_width (Optional[int]): Border width.
        tooltip_animation_duration (Optional[int]): Tooltip animation duration.
        tooltip_data_source (Optional[Literal["all","segment"]]): Tooltip data source.
        tooltip_props (Optional[dict[str, Any]]): Tooltip props.
        value_formatter (Optional[Any]): Value formatter.
        with_labels (Optional[bool]): Show labels.
        with_tooltip (Optional[bool]): Show tooltip.
        kwargs: Additional props to set.

    Returns:
        RLBuilder: A nested builder scoped to the funnel chart element.
    """
    return self._create_builder_element(  # type: ignore[return-value]
        name="funnelchart",
        key=key or self._new_text_id("funnelchart"),
        props={
            "data": data,
            "funnelChartProps": funnel_chart_props,
            "funnelProps": funnel_props,
            "labelColor": label_color,
            "labelsPosition": labels_position,
            "size": size,
            "strokeColor": stroke_color,
            "strokeWidth": stroke_width,
            "tooltipAnimationDuration": tooltip_animation_duration,
            "tooltipDataSource": tooltip_data_source,
            "tooltipProps": tooltip_props,
            "valueFormatter": value_formatter,
            "withLabels": with_labels,
            "withTooltip": with_tooltip,
            **kwargs,
        },
    )

grid(*, align=None, breakpoints=None, columns=None, grow=None, gutter=None, justify=None, key=None, overflow=None, query_type=None, **kwargs)

Create a responsive grid container.

Parameters:

Name Type Description Default
align Optional[str]

Vertical alignment of grid content.

None
breakpoints Optional[dict]

Responsive column settings per breakpoint.

None
columns Optional[int]

Number of columns.

None
grow Optional[bool]

Whether columns should grow to fill available space.

None
gutter Optional[dict]

Spacing configuration between columns/rows.

None
justify Optional[str]

Horizontal justification of grid content.

None
key Optional[str]

Explicit element key.

None
overflow Optional[str]

Overflow behavior.

None
query_type Optional[Literal['media', 'container']]

Type of responsive query to use.

None
kwargs Any

Additional props to set.

{}

Returns:

Name Type Description
RLBuilder RLBuilder

A nested builder scoped to the created grid element.

Source code in src/routelit_mantine/builder.py
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
def grid(
    self,
    *,
    align: Optional[str] = None,
    breakpoints: Optional[dict] = None,
    columns: Optional[int] = None,
    grow: Optional[bool] = None,
    gutter: Optional[dict] = None,
    justify: Optional[str] = None,
    key: Optional[str] = None,
    overflow: Optional[str] = None,
    query_type: Optional[Literal["media", "container"]] = None,
    **kwargs: Any,
) -> "RLBuilder":
    """
    Create a responsive grid container.

    Args:
        align (Optional[str]): Vertical alignment of grid content.
        breakpoints (Optional[dict]): Responsive column settings per breakpoint.
        columns (Optional[int]): Number of columns.
        grow (Optional[bool]): Whether columns should grow to fill available space.
        gutter (Optional[dict]): Spacing configuration between columns/rows.
        justify (Optional[str]): Horizontal justification of grid content.
        key (Optional[str]): Explicit element key.
        overflow (Optional[str]): Overflow behavior.
        query_type (Optional[Literal["media", "container"]]): Type of responsive query to use.
        kwargs: Additional props to set.

    Returns:
        RLBuilder: A nested builder scoped to the created grid element.
    """
    new_element = self._create_element(
        key=key or self._new_text_id("grid"),
        name="grid",
        props={
            "align": align,
            "breakpoints": breakpoints,
            "columns": columns,
            "grow": grow,
            "gutter": gutter,
            "justify": justify,
            "overflow": overflow,
            "type": query_type,
            **kwargs,
        },
    )
    return cast(RLBuilder, self._build_nested_builder(new_element))

grid_col(*, key=None, offset=None, order=None, span=None, **kwargs)

Add a grid column inside the nearest grid.

Parameters:

Name Type Description Default
key Optional[str]

Explicit element key.

None
offset Optional[int]

Column offset.

None
order Optional[int]

Column order.

None
span Optional[int]

How many columns the item spans.

None
kwargs Any

Additional props to set.

{}

Returns:

Name Type Description
RLBuilder RLBuilder

A nested builder scoped to the grid column element.

Source code in src/routelit_mantine/builder.py
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
def grid_col(
    self,
    *,
    key: Optional[str] = None,
    offset: Optional[int] = None,
    order: Optional[int] = None,
    span: Optional[int] = None,
    **kwargs: Any,
) -> "RLBuilder":
    """
    Add a grid column inside the nearest grid.

    Args:
        key (Optional[str]): Explicit element key.
        offset (Optional[int]): Column offset.
        order (Optional[int]): Column order.
        span (Optional[int]): How many columns the item spans.
        kwargs: Additional props to set.

    Returns:
        RLBuilder: A nested builder scoped to the grid column element.
    """
    new_element = self._create_element(
        key=key or self._new_text_id("gridcol"),
        name="gridcol",
        props={
            "offset": offset,
            "order": order,
            "span": span,
            **kwargs,
        },
    )
    return cast(RLBuilder, self._build_nested_builder(new_element))

group(*, align=None, gap=None, grow=None, justify=None, key=None, prevent_grow_overflow=None, wrap=None, **kwargs)

Arrange children horizontally with spacing and alignment.

Parameters:

Name Type Description Default
align Optional[str]

Vertical alignment of items.

None
gap Optional[str]

Spacing between items.

None
grow Optional[bool]

Allow items to grow to fill the row.

None
justify Optional[str]

Horizontal alignment of items.

None
key Optional[str]

Explicit element key.

None
prevent_grow_overflow Optional[bool]

Prevent overflow when items grow.

None
wrap Optional[str]

Wrapping behavior.

None
kwargs Any

Additional props to set.

{}

Returns:

Name Type Description
RLBuilder RLBuilder

A nested builder scoped to the group element.

Source code in src/routelit_mantine/builder.py
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
def group(
    self,
    *,
    align: Optional[str] = None,
    gap: Optional[str] = None,
    grow: Optional[bool] = None,
    justify: Optional[str] = None,
    key: Optional[str] = None,
    prevent_grow_overflow: Optional[bool] = None,
    wrap: Optional[str] = None,
    **kwargs: Any,
) -> "RLBuilder":
    """
    Arrange children horizontally with spacing and alignment.

    Args:
        align (Optional[str]): Vertical alignment of items.
        gap (Optional[str]): Spacing between items.
        grow (Optional[bool]): Allow items to grow to fill the row.
        justify (Optional[str]): Horizontal alignment of items.
        key (Optional[str]): Explicit element key.
        prevent_grow_overflow (Optional[bool]): Prevent overflow when items grow.
        wrap (Optional[str]): Wrapping behavior.
        kwargs: Additional props to set.

    Returns:
        RLBuilder: A nested builder scoped to the group element.
    """
    new_element = self._create_element(
        key=key or self._new_text_id("group"),
        name="group",
        props={
            "align": align,
            "gap": gap,
            "grow": grow,
            "justify": justify,
            "preventGrowOverflow": prevent_grow_overflow,
            "wrap": wrap,
            **kwargs,
        },
    )
    return cast(RLBuilder, self._build_nested_builder(new_element))

heatmap(data, *, colors=None, domain=None, end_date=None, first_day_of_week=None, font_size=None, gap=None, get_rect_props=None, get_tooltip_label=None, key=None, month_labels=None, months_labels_height=None, rect_radius=None, rect_size=None, start_date=None, tooltip_props=None, weekday_labels=None, weekdays_labels_width=None, with_month_labels=None, with_outside_dates=None, with_tooltip=None, with_weekday_labels=None, **kwargs)

Calendar heatmap for visualizing value intensity over dates.

Parameters:

Name Type Description Default
data dict[str, Union[int, float]]

Mapping of ISO date -> value.

required
colors Optional[list[str]]

Color scale.

None
domain Optional[tuple[Union[int, float], Union[int, float]]]

Min/max domain.

None
end_date Optional[Union[str, Any]]

End date.

None
first_day_of_week Optional[int]

First day of the week.

None
font_size Optional[int]

Font size for labels.

None
gap Optional[int]

Gap between cells.

None
get_rect_props Optional[Any]

Custom rect props callback.

None
get_tooltip_label Optional[Any]

Tooltip label callback.

None
key Optional[str]

Explicit element key.

None
month_labels Optional[list[str]]

Month labels.

None
months_labels_height Optional[int]

Month labels height.

None
rect_radius Optional[int]

Cell border radius.

None
rect_size Optional[int]

Cell size.

None
start_date Optional[Union[str, Any]]

Start date.

None
tooltip_props Optional[dict[str, Any]]

Tooltip props.

None
weekday_labels Optional[list[str]]

Weekday labels.

None
weekdays_labels_width Optional[int]

Weekday labels width.

None
with_month_labels Optional[bool]

Show month labels.

None
with_outside_dates Optional[bool]

Show dates outside range.

None
with_tooltip Optional[bool]

Show tooltip.

None
with_weekday_labels Optional[bool]

Show weekday labels.

None
kwargs Any

Additional props to set.

{}

Returns:

Name Type Description
RLBuilder RLBuilder

A nested builder scoped to the heatmap element.

Source code in src/routelit_mantine/builder.py
5665
5666
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
def heatmap(
    self,
    data: dict[str, Union[int, float]],
    *,
    colors: Optional[list[str]] = None,
    domain: Optional[tuple[Union[int, float], Union[int, float]]] = None,
    end_date: Optional[Union[str, Any]] = None,
    first_day_of_week: Optional[int] = None,
    font_size: Optional[int] = None,
    gap: Optional[int] = None,
    get_rect_props: Optional[Any] = None,
    get_tooltip_label: Optional[Any] = None,
    key: Optional[str] = None,
    month_labels: Optional[list[str]] = None,
    months_labels_height: Optional[int] = None,
    rect_radius: Optional[int] = None,
    rect_size: Optional[int] = None,
    start_date: Optional[Union[str, Any]] = None,
    tooltip_props: Optional[dict[str, Any]] = None,
    weekday_labels: Optional[list[str]] = None,
    weekdays_labels_width: Optional[int] = None,
    with_month_labels: Optional[bool] = None,
    with_outside_dates: Optional[bool] = None,
    with_tooltip: Optional[bool] = None,
    with_weekday_labels: Optional[bool] = None,
    **kwargs: Any,
) -> "RLBuilder":
    """
    Calendar heatmap for visualizing value intensity over dates.

    Args:
        data (dict[str, Union[int, float]]): Mapping of ISO date -> value.
        colors (Optional[list[str]]): Color scale.
        domain (Optional[tuple[Union[int, float], Union[int, float]]]): Min/max domain.
        end_date (Optional[Union[str, Any]]): End date.
        first_day_of_week (Optional[int]): First day of the week.
        font_size (Optional[int]): Font size for labels.
        gap (Optional[int]): Gap between cells.
        get_rect_props (Optional[Any]): Custom rect props callback.
        get_tooltip_label (Optional[Any]): Tooltip label callback.
        key (Optional[str]): Explicit element key.
        month_labels (Optional[list[str]]): Month labels.
        months_labels_height (Optional[int]): Month labels height.
        rect_radius (Optional[int]): Cell border radius.
        rect_size (Optional[int]): Cell size.
        start_date (Optional[Union[str, Any]]): Start date.
        tooltip_props (Optional[dict[str, Any]]): Tooltip props.
        weekday_labels (Optional[list[str]]): Weekday labels.
        weekdays_labels_width (Optional[int]): Weekday labels width.
        with_month_labels (Optional[bool]): Show month labels.
        with_outside_dates (Optional[bool]): Show dates outside range.
        with_tooltip (Optional[bool]): Show tooltip.
        with_weekday_labels (Optional[bool]): Show weekday labels.
        kwargs: Additional props to set.

    Returns:
        RLBuilder: A nested builder scoped to the heatmap element.
    """
    return self._create_builder_element(  # type: ignore[return-value]
        name="heatmap",
        key=key or self._new_text_id("heatmap"),
        props={
            "data": data,
            "colors": colors,
            "domain": domain,
            "endDate": end_date,
            "firstDayOfWeek": first_day_of_week,
            "fontSize": font_size,
            "gap": gap,
            "getRectProps": get_rect_props,
            "getTooltipLabel": get_tooltip_label,
            "monthLabels": month_labels,
            "monthsLabelsHeight": months_labels_height,
            "rectRadius": rect_radius,
            "rectSize": rect_size,
            "startDate": start_date,
            "tooltipProps": tooltip_props,
            "weekdayLabels": weekday_labels,
            "weekdaysLabelsWidth": weekdays_labels_width,
            "withMonthLabels": with_month_labels,
            "withOutsideDates": with_outside_dates,
            "withTooltip": with_tooltip,
            "withWeekdayLabels": with_weekday_labels,
            **kwargs,
        },
    )

icon(name, **kwargs) staticmethod

Create an icon element to be used as an adornment.

Parameters:

Name Type Description Default
name str

Icon name.

required
kwargs Any

Additional props to set.

{}

Returns:

Name Type Description
RouteLitElement RouteLitElement

Virtual icon element.

Source code in src/routelit_mantine/builder.py
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
@staticmethod
def icon(name: str, **kwargs: Any) -> RouteLitElement:
    """
    Create an icon element to be used as an adornment.

    Args:
        name (str): Icon name.
        kwargs: Additional props to set.

    Returns:
        RouteLitElement: Virtual icon element.
    """
    return RouteLitElement(
        name="icon",
        key="",
        props={
            "name": name,
            **kwargs,
        },
        virtual=True,
    )

image(src, *, key=None, **kwargs)

Display an image.

Parameters:

Name Type Description Default
src str

Image source URL.

required
key Optional[str]

Explicit element key.

None
kwargs Any

Additional props to set.

{}
Source code in src/routelit_mantine/builder.py
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
def image(
    self,
    src: str,
    *,
    key: Optional[str] = None,
    **kwargs: Any,
) -> None:
    """
    Display an image.

    Args:
        src (str): Image source URL.
        key (Optional[str]): Explicit element key.
        kwargs: Additional props to set.
    """
    self._create_element(
        name="image",
        key=key or self._new_widget_id("image", src),
        props={"src": src, **kwargs},
    )

line_chart(data, data_key, series, *, key=None, active_dot_props=None, connect_nulls=None, curve_type=None, dot_props=None, fill_opacity=None, gradient_stops=None, grid_axis=None, grid_color=None, grid_props=None, legend_props=None, line_chart_props=None, line_props=None, orientation=None, reference_lines=None, right_y_axis_label=None, right_y_axis_props=None, stroke_dasharray=None, stroke_width=None, text_color=None, tick_line=None, tooltip_animation_duration=None, tooltip_props=None, type=None, unit=None, with_dots=None, with_legend=None, with_point_labels=None, with_right_y_axis=None, with_tooltip=None, with_x_axis=None, with_y_axis=None, x_axis_label=None, x_axis_props=None, y_axis_label=None, y_axis_props=None, **kwargs)

Line chart for continuous data.

Parameters:

Name Type Description Default
data list

Dataset.

required
data_key str

X-axis data key.

required
series list[dict[str, Any]]

Series configuration.

required
key Optional[str]

Explicit element key.

None
active_dot_props Optional[dict[str, Any]]

Active dot props.

None
connect_nulls Optional[bool]

Connect across null values.

None
curve_type Optional[str]

Curve interpolation type.

None
dot_props Optional[dict[str, Any]]

Dot props.

None
fill_opacity Optional[float]

Area fill opacity for gradients.

None
gradient_stops Optional[list[dict[str, Any]]]

Gradient configuration.

None
grid_axis Optional[str]

Grid axis.

None
grid_color Optional[str]

Grid color.

None
grid_props Optional[dict[str, Any]]

Grid props.

None
legend_props Optional[dict[str, Any]]

Legend props.

None
line_chart_props Optional[dict[str, Any]]

Chart container props.

None
line_props Optional[dict[str, Any]]

Line props.

None
orientation Optional[str]

Chart orientation.

None
reference_lines Optional[list[dict[str, Any]]]

Reference lines.

None
right_y_axis_label Optional[str]

Secondary Y axis label.

None
right_y_axis_props Optional[dict[str, Any]]

Secondary Y axis props.

None
stroke_dasharray Optional[str]

Line dash pattern.

None
stroke_width Optional[float]

Line width.

None
text_color Optional[str]

Text color.

None
tick_line Optional[str]

Tick line display.

None
tooltip_animation_duration Optional[int]

Tooltip animation duration.

None
tooltip_props Optional[dict[str, Any]]

Tooltip props.

None
type Optional[str]

Chart type variant.

None
unit Optional[str]

Unit suffix.

None
with_dots Optional[bool]

Show dots.

None
with_legend Optional[bool]

Show legend.

None
with_point_labels Optional[bool]

Show point labels.

None
with_right_y_axis Optional[bool]

Enable right Y axis.

None
with_tooltip Optional[bool]

Show tooltip.

None
with_x_axis Optional[bool]

Show X axis.

None
with_y_axis Optional[bool]

Show Y axis.

None
x_axis_label Optional[str]

X axis label.

None
x_axis_props Optional[dict[str, Any]]

X axis props.

None
y_axis_label Optional[str]

Y axis label.

None
y_axis_props Optional[dict[str, Any]]

Y axis props.

None
kwargs Any

Additional props to set.

{}

Returns:

Name Type Description
RLBuilder RLBuilder

A nested builder scoped to the line chart element.

Source code in src/routelit_mantine/builder.py
4777
4778
4779
4780
4781
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793
4794
4795
4796
4797
4798
4799
4800
4801
4802
4803
4804
4805
4806
4807
4808
4809
4810
4811
4812
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842
4843
4844
4845
4846
4847
4848
4849
4850
4851
4852
4853
4854
4855
4856
4857
4858
4859
4860
4861
4862
4863
4864
4865
4866
4867
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912
4913
def line_chart(
    self,
    data: list,
    data_key: str,
    series: list[dict[str, Any]],
    *,
    key: Optional[str] = None,
    active_dot_props: Optional[dict[str, Any]] = None,
    connect_nulls: Optional[bool] = None,
    curve_type: Optional[str] = None,
    dot_props: Optional[dict[str, Any]] = None,
    fill_opacity: Optional[float] = None,
    gradient_stops: Optional[list[dict[str, Any]]] = None,
    grid_axis: Optional[str] = None,
    grid_color: Optional[str] = None,
    grid_props: Optional[dict[str, Any]] = None,
    legend_props: Optional[dict[str, Any]] = None,
    line_chart_props: Optional[dict[str, Any]] = None,
    line_props: Optional[dict[str, Any]] = None,
    orientation: Optional[str] = None,
    reference_lines: Optional[list[dict[str, Any]]] = None,
    right_y_axis_label: Optional[str] = None,
    right_y_axis_props: Optional[dict[str, Any]] = None,
    stroke_dasharray: Optional[str] = None,
    stroke_width: Optional[float] = None,
    text_color: Optional[str] = None,
    tick_line: Optional[str] = None,
    tooltip_animation_duration: Optional[int] = None,
    tooltip_props: Optional[dict[str, Any]] = None,
    type: Optional[str] = None,  # noqa: A002
    unit: Optional[str] = None,
    with_dots: Optional[bool] = None,
    with_legend: Optional[bool] = None,
    with_point_labels: Optional[bool] = None,
    with_right_y_axis: Optional[bool] = None,
    with_tooltip: Optional[bool] = None,
    with_x_axis: Optional[bool] = None,
    with_y_axis: Optional[bool] = None,
    x_axis_label: Optional[str] = None,
    x_axis_props: Optional[dict[str, Any]] = None,
    y_axis_label: Optional[str] = None,
    y_axis_props: Optional[dict[str, Any]] = None,
    **kwargs: Any,
) -> "RLBuilder":
    """
    Line chart for continuous data.

    Args:
        data (list): Dataset.
        data_key (str): X-axis data key.
        series (list[dict[str, Any]]): Series configuration.
        key (Optional[str]): Explicit element key.
        active_dot_props (Optional[dict[str, Any]]): Active dot props.
        connect_nulls (Optional[bool]): Connect across null values.
        curve_type (Optional[str]): Curve interpolation type.
        dot_props (Optional[dict[str, Any]]): Dot props.
        fill_opacity (Optional[float]): Area fill opacity for gradients.
        gradient_stops (Optional[list[dict[str, Any]]]): Gradient configuration.
        grid_axis (Optional[str]): Grid axis.
        grid_color (Optional[str]): Grid color.
        grid_props (Optional[dict[str, Any]]): Grid props.
        legend_props (Optional[dict[str, Any]]): Legend props.
        line_chart_props (Optional[dict[str, Any]]): Chart container props.
        line_props (Optional[dict[str, Any]]): Line props.
        orientation (Optional[str]): Chart orientation.
        reference_lines (Optional[list[dict[str, Any]]]): Reference lines.
        right_y_axis_label (Optional[str]): Secondary Y axis label.
        right_y_axis_props (Optional[dict[str, Any]]): Secondary Y axis props.
        stroke_dasharray (Optional[str]): Line dash pattern.
        stroke_width (Optional[float]): Line width.
        text_color (Optional[str]): Text color.
        tick_line (Optional[str]): Tick line display.
        tooltip_animation_duration (Optional[int]): Tooltip animation duration.
        tooltip_props (Optional[dict[str, Any]]): Tooltip props.
        type (Optional[str]): Chart type variant.
        unit (Optional[str]): Unit suffix.
        with_dots (Optional[bool]): Show dots.
        with_legend (Optional[bool]): Show legend.
        with_point_labels (Optional[bool]): Show point labels.
        with_right_y_axis (Optional[bool]): Enable right Y axis.
        with_tooltip (Optional[bool]): Show tooltip.
        with_x_axis (Optional[bool]): Show X axis.
        with_y_axis (Optional[bool]): Show Y axis.
        x_axis_label (Optional[str]): X axis label.
        x_axis_props (Optional[dict[str, Any]]): X axis props.
        y_axis_label (Optional[str]): Y axis label.
        y_axis_props (Optional[dict[str, Any]]): Y axis props.
        kwargs: Additional props to set.

    Returns:
        RLBuilder: A nested builder scoped to the line chart element.
    """
    return self._create_builder_element(  # type: ignore[return-value]
        name="linechart",
        key=key or self._new_text_id("linechart"),
        props={
            "data": data,
            "dataKey": data_key,
            "series": series,
            "activeDotProps": active_dot_props,
            "connectNulls": connect_nulls,
            "curveType": curve_type,
            "dotProps": dot_props,
            "fillOpacity": fill_opacity,
            "gradientStops": gradient_stops,
            "gridAxis": grid_axis,
            "gridColor": grid_color,
            "gridProps": grid_props,
            "legendProps": legend_props,
            "lineChartProps": line_chart_props,
            "lineProps": line_props,
            "orientation": orientation,
            "referenceLines": reference_lines,
            "rightYAxisLabel": right_y_axis_label,
            "rightYAxisProps": right_y_axis_props,
            "strokeDasharray": stroke_dasharray,
            "strokeWidth": stroke_width,
            "textColor": text_color,
            "tickLine": tick_line,
            "tooltipAnimationDuration": tooltip_animation_duration,
            "tooltipProps": tooltip_props,
            "type": type,
            "unit": unit,
            "withDots": with_dots,
            "withLegend": with_legend,
            "withPointLabels": with_point_labels,
            "withRightYAxis": with_right_y_axis,
            "withTooltip": with_tooltip,
            "withXAxis": with_x_axis,
            "withYAxis": with_y_axis,
            "xAxisLabel": x_axis_label,
            "xAxisProps": x_axis_props,
            "yAxisLabel": y_axis_label,
            "yAxisProps": y_axis_props,
            **kwargs,
        },
    )

modal(key=None, *, title=None, with_close_button=None, **kwargs)

Centered modal dialog.

Parameters:

Name Type Description Default
key Optional[str]

Explicit element key.

None
title Optional[str]

Header title.

None
with_close_button Optional[bool]

Show close button.

None
kwargs Any

Additional props to set.

{}

Returns:

Name Type Description
RLBuilder RLBuilder

A nested builder scoped to the modal element.

Source code in src/routelit_mantine/builder.py
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
def modal(
    self,
    key: Optional[str] = None,
    *,
    title: Optional[str] = None,
    with_close_button: Optional[bool] = None,
    **kwargs: Any,
) -> "RLBuilder":
    """
    Centered modal dialog.

    Args:
        key (Optional[str]): Explicit element key.
        title (Optional[str]): Header title.
        with_close_button (Optional[bool]): Show close button.
        kwargs: Additional props to set.

    Returns:
        RLBuilder: A nested builder scoped to the modal element.
    """
    return super()._x_dialog(  # type: ignore[return-value]
        "modal",
        key or self._new_text_id("modal"),
        opened=True,
        title=title,
        withCloseButton=with_close_button,
        **kwargs,
    )

multiselect(label, data, *, check_icon_position=None, chevron_color=None, clear_button_props=None, clearable=None, combobox_props=None, default_dropdown_opened=None, default_search_value=None, description=None, disabled=None, dropdown_opened=None, error=None, error_props=None, format_func=None, hidden_input_props=None, hidden_input_values_divider=None, hide_picked_options=None, input_size=None, input_wrapper_order=None, key=None, label_props=None, left_section=None, left_section_props=None, left_section_width=None, limit=None, max_dropdown_height=None, max_values=None, nothing_found_message=None, on_change=None, radius=None, required=None, right_section=None, right_section_props=None, right_section_width=None, scroll_area_props=None, search_value=None, searchable=None, select_first_option_on_change=None, size=None, value=None, with_asterisk=None, with_check_icon=None, with_error_styles=None, with_scroll_area=None, **kwargs)

Multi-select input with search and tags.

Parameters:

Name Type Description Default
label str

Field label.

required
data list[Union[RLOption, str]]

Available options.

required
check_icon_position Optional[Literal['left', 'right']]

Check icon position.

None
chevron_color Optional[str]

Chevron color.

None
clear_button_props Optional[dict[str, Any]]

Clear button props.

None
clearable Optional[bool]

Enable clear button.

None
combobox_props Optional[dict[str, Any]]

Combobox props.

None
default_dropdown_opened Optional[bool]

Open dropdown by default.

None
default_search_value Optional[str]

Initial search value.

None
description Optional[str]

Helper text under the label.

None
disabled Optional[bool]

Disable interaction.

None
dropdown_opened Optional[bool]

Control dropdown visibility.

None
error Optional[str]

Error message.

None
error_props Optional[dict[str, Any]]

Error message props.

None
format_func Optional[Callable[[Any], str]]

Map option value to label.

None
hidden_input_props Optional[dict[str, Any]]

Hidden input props.

None
hidden_input_values_divider Optional[str]

Divider for hidden input.

None
hide_picked_options Optional[bool]

Hide already selected options.

None
input_size Optional[str]

Control size.

None
input_wrapper_order Optional[list[str]]

Order of input wrapper parts.

None
key Optional[str]

Explicit element key.

None
label_props Optional[dict[str, Any]]

Label props.

None
left_section Optional[RouteLitElement]

Left adornment.

None
left_section_props Optional[dict[str, Any]]

Left adornment props.

None
left_section_width Optional[str]

Left adornment width.

None
limit Optional[int]

Max number of options shown.

None
max_dropdown_height Optional[Union[str, int]]

Max dropdown height.

None
max_values Optional[int]

Max number of selected values.

None
nothing_found_message Optional[str]

Message when search returns no results.

None
on_change Optional[Callable[[list[str]], None]]

Change handler.

None
radius Optional[Union[str, int]]

Corner radius.

None
required Optional[bool]

Mark as required.

None
right_section Optional[RouteLitElement]

Right adornment.

None
right_section_props Optional[dict[str, Any]]

Right adornment props.

None
right_section_width Optional[str]

Right adornment width.

None
scroll_area_props Optional[dict[str, Any]]

Scroll area props.

None
search_value Optional[str]

Current search value.

None
searchable Optional[bool]

Enable search.

None
select_first_option_on_change Optional[bool]

Auto select first option when changed.

None
size Optional[str]

Control size.

None
value Optional[list[str]]

Current value.

None
with_asterisk Optional[bool]

Show required asterisk.

None
with_check_icon Optional[bool]

Show check icon next to selected options.

None
with_error_styles Optional[bool]

Apply error styles.

None
with_scroll_area Optional[bool]

Wrap dropdown with scroll area.

None
kwargs Any

Additional props to set.

{}

Returns:

Type Description
list[str]

list[str]: Selected values.

Source code in src/routelit_mantine/builder.py
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
def multiselect(
    self,
    label: str,
    data: list[Union[RLOption, str]],
    *,
    check_icon_position: Optional[Literal["left", "right"]] = None,
    chevron_color: Optional[str] = None,
    clear_button_props: Optional[dict[str, Any]] = None,
    clearable: Optional[bool] = None,
    combobox_props: Optional[dict[str, Any]] = None,
    default_dropdown_opened: Optional[bool] = None,
    default_search_value: Optional[str] = None,
    description: Optional[str] = None,
    disabled: Optional[bool] = None,
    dropdown_opened: Optional[bool] = None,
    error: Optional[str] = None,
    error_props: Optional[dict[str, Any]] = None,
    format_func: Optional[Callable[[Any], str]] = None,
    hidden_input_props: Optional[dict[str, Any]] = None,
    hidden_input_values_divider: Optional[str] = None,
    hide_picked_options: Optional[bool] = None,
    input_size: Optional[str] = None,
    input_wrapper_order: Optional[list[str]] = None,
    key: Optional[str] = None,
    label_props: Optional[dict[str, Any]] = None,
    left_section: Optional[RouteLitElement] = None,
    left_section_props: Optional[dict[str, Any]] = None,
    left_section_width: Optional[str] = None,
    limit: Optional[int] = None,
    max_dropdown_height: Optional[Union[str, int]] = None,
    max_values: Optional[int] = None,
    nothing_found_message: Optional[str] = None,
    on_change: Optional[Callable[[list[str]], None]] = None,
    radius: Optional[Union[str, int]] = None,
    required: Optional[bool] = None,
    right_section: Optional[RouteLitElement] = None,
    right_section_props: Optional[dict[str, Any]] = None,
    right_section_width: Optional[str] = None,
    scroll_area_props: Optional[dict[str, Any]] = None,
    search_value: Optional[str] = None,
    searchable: Optional[bool] = None,
    select_first_option_on_change: Optional[bool] = None,
    size: Optional[str] = None,
    value: Optional[list[str]] = None,
    with_asterisk: Optional[bool] = None,
    with_check_icon: Optional[bool] = None,
    with_error_styles: Optional[bool] = None,
    with_scroll_area: Optional[bool] = None,
    **kwargs: Any,
) -> list[str]:
    """
    Multi-select input with search and tags.

    Args:
        label (str): Field label.
        data (list[Union[RLOption, str]]): Available options.
        check_icon_position (Optional[Literal["left", "right"]]): Check icon position.
        chevron_color (Optional[str]): Chevron color.
        clear_button_props (Optional[dict[str, Any]]): Clear button props.
        clearable (Optional[bool]): Enable clear button.
        combobox_props (Optional[dict[str, Any]]): Combobox props.
        default_dropdown_opened (Optional[bool]): Open dropdown by default.
        default_search_value (Optional[str]): Initial search value.
        description (Optional[str]): Helper text under the label.
        disabled (Optional[bool]): Disable interaction.
        dropdown_opened (Optional[bool]): Control dropdown visibility.
        error (Optional[str]): Error message.
        error_props (Optional[dict[str, Any]]): Error message props.
        format_func (Optional[Callable[[Any], str]]): Map option value to label.
        hidden_input_props (Optional[dict[str, Any]]): Hidden input props.
        hidden_input_values_divider (Optional[str]): Divider for hidden input.
        hide_picked_options (Optional[bool]): Hide already selected options.
        input_size (Optional[str]): Control size.
        input_wrapper_order (Optional[list[str]]): Order of input wrapper parts.
        key (Optional[str]): Explicit element key.
        label_props (Optional[dict[str, Any]]): Label props.
        left_section (Optional[RouteLitElement]): Left adornment.
        left_section_props (Optional[dict[str, Any]]): Left adornment props.
        left_section_width (Optional[str]): Left adornment width.
        limit (Optional[int]): Max number of options shown.
        max_dropdown_height (Optional[Union[str, int]]): Max dropdown height.
        max_values (Optional[int]): Max number of selected values.
        nothing_found_message (Optional[str]): Message when search returns no results.
        on_change (Optional[Callable[[list[str]], None]]): Change handler.
        radius (Optional[Union[str, int]]): Corner radius.
        required (Optional[bool]): Mark as required.
        right_section (Optional[RouteLitElement]): Right adornment.
        right_section_props (Optional[dict[str, Any]]): Right adornment props.
        right_section_width (Optional[str]): Right adornment width.
        scroll_area_props (Optional[dict[str, Any]]): Scroll area props.
        search_value (Optional[str]): Current search value.
        searchable (Optional[bool]): Enable search.
        select_first_option_on_change (Optional[bool]): Auto select first option when changed.
        size (Optional[str]): Control size.
        value (Optional[list[str]]): Current value.
        with_asterisk (Optional[bool]): Show required asterisk.
        with_check_icon (Optional[bool]): Show check icon next to selected options.
        with_error_styles (Optional[bool]): Apply error styles.
        with_scroll_area (Optional[bool]): Wrap dropdown with scroll area.
        kwargs: Additional props to set.

    Returns:
        list[str]: Selected values.
    """
    return self._x_checkbox_group(
        "multiselect",
        key or self._new_widget_id("multiselect", label),
        checkIconPosition=check_icon_position,
        chevronColor=chevron_color,
        clearButtonProps=clear_button_props,
        clearable=clearable,
        comboboxProps=combobox_props,
        defaultDropdownOpened=default_dropdown_opened,
        defaultSearchValue=default_search_value,
        description=description,
        disabled=disabled,
        dropdownOpened=dropdown_opened,
        error=error,
        errorProps=error_props,
        format_func=format_func,
        hiddenInputProps=hidden_input_props,
        hiddenInputValuesDivider=hidden_input_values_divider,
        hidePickedOptions=hide_picked_options,
        inputSize=input_size,
        inputWrapperOrder=input_wrapper_order,
        label=label,
        labelProps=label_props,
        leftSection=left_section,
        leftSectionProps=left_section_props,
        leftSectionWidth=left_section_width,
        limit=limit,
        maxDropdownHeight=max_dropdown_height,
        maxValues=max_values,
        nothingFoundMessage=nothing_found_message,
        on_change=on_change,
        options=data,  # type: ignore[arg-type]
        options_attr="data",
        radius=radius,
        required=required,
        scrollAreaProps=scroll_area_props,
        rightSection=right_section,
        rightSectionProps=right_section_props,
        rightSectionWidth=right_section_width,
        searchValue=search_value,
        searchable=searchable,
        selectFirstOptionOnChange=select_first_option_on_change,
        size=size,
        value=value,
        withAsterisk=with_asterisk,
        withCheckIcon=with_check_icon,
        withErrorStyles=with_error_styles,
        withScrollArea=with_scroll_area,
        **kwargs,
    )

native_select(label, options, *, description=None, disabled=None, error=None, format_func=None, key=None, left_section=None, left_section_props=None, left_section_width=None, on_change=None, radius=None, required=None, right_section=None, right_section_props=None, right_section_width=None, size=None, value=None, with_asterisk=None, **kwargs)

Native HTML select input.

Parameters:

Name Type Description Default
label str

Field label.

required
options list[Union[RLOption, str]]

Available options.

required
description Optional[str]

Helper text under the label.

None
disabled Optional[bool]

Disable input interaction.

None
error Optional[str]

Error message.

None
format_func Optional[Callable[[Any], str]]

Map option value to label.

None
key Optional[str]

Explicit element key.

None
left_section Optional[RouteLitElement]

Left adornment.

None
left_section_props Optional[dict[str, Any]]

Left adornment props.

None
left_section_width Optional[str]

Left adornment width.

None
on_change Optional[Callable[[str], None]]

Change handler.

None
radius Optional[str]

Corner radius.

None
required Optional[bool]

Mark as required.

None
right_section Optional[RouteLitElement]

Right adornment.

None
right_section_props Optional[dict[str, Any]]

Right adornment props.

None
right_section_width Optional[str]

Right adornment width.

None
size Optional[str]

Control size.

None
value Optional[str]

Current value.

None
with_asterisk Optional[bool]

Show required asterisk.

None
kwargs Any

Additional props to set.

{}

Returns:

Name Type Description
str str

Current value.

Source code in src/routelit_mantine/builder.py
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
def native_select(
    self,
    label: str,
    options: list[Union[RLOption, str]],
    *,
    description: Optional[str] = None,
    disabled: Optional[bool] = None,
    error: Optional[str] = None,
    format_func: Optional[Callable[[Any], str]] = None,
    key: Optional[str] = None,
    left_section: Optional[RouteLitElement] = None,
    left_section_props: Optional[dict[str, Any]] = None,
    left_section_width: Optional[str] = None,
    on_change: Optional[Callable[[str], None]] = None,
    radius: Optional[str] = None,
    required: Optional[bool] = None,
    right_section: Optional[RouteLitElement] = None,
    right_section_props: Optional[dict[str, Any]] = None,
    right_section_width: Optional[str] = None,
    size: Optional[str] = None,
    value: Optional[str] = None,
    with_asterisk: Optional[bool] = None,
    **kwargs: Any,
) -> str:
    """
    Native HTML select input.

    Args:
        label (str): Field label.
        options (list[Union[RLOption, str]]): Available options.
        description (Optional[str]): Helper text under the label.
        disabled (Optional[bool]): Disable input interaction.
        error (Optional[str]): Error message.
        format_func (Optional[Callable[[Any], str]]): Map option value to label.
        key (Optional[str]): Explicit element key.
        left_section (Optional[RouteLitElement]): Left adornment.
        left_section_props (Optional[dict[str, Any]]): Left adornment props.
        left_section_width (Optional[str]): Left adornment width.
        on_change (Optional[Callable[[str], None]]): Change handler.
        radius (Optional[str]): Corner radius.
        required (Optional[bool]): Mark as required.
        right_section (Optional[RouteLitElement]): Right adornment.
        right_section_props (Optional[dict[str, Any]]): Right adornment props.
        right_section_width (Optional[str]): Right adornment width.
        size (Optional[str]): Control size.
        value (Optional[str]): Current value.
        with_asterisk (Optional[bool]): Show required asterisk.
        kwargs: Additional props to set.

    Returns:
        str: Current value.
    """
    return cast(
        str,
        self._x_radio_select(
            "nativeselect",
            key or self._new_widget_id("native-select", label),
            description=description,
            disabled=disabled,
            error=error,
            format_func=format_func,
            label=label,
            leftSection=left_section,
            leftSectionProps=left_section_props,
            leftSectionWidth=left_section_width,
            on_change=on_change,
            options=options,  # type: ignore[arg-type]
            options_attr="data",
            radius=radius,
            required=required,
            rightSection=right_section,
            rightSectionProps=right_section_props,
            rightSectionWidth=right_section_width,
            size=size,
            value=value,
            withAsterisk=with_asterisk,
            **kwargs,
        ),
    )

Navigation link, typically used in sidebars or menus.

Parameters:

Name Type Description Default
href str

Destination path.

required
label str

Visible label.

required
active Optional[bool]

Force active state.

None
auto_contrast Optional[bool]

Improve contrast automatically.

None
children_offset Optional[str]

Indentation for children links.

None
color Optional[str]

Accent color.

None
default_opened Optional[bool]

Start expanded.

None
description Optional[str]

Helper text under the label.

None
disable_right_section_rotation Optional[bool]

Disable chevron rotation.

None
disabled Optional[bool]

Disable interaction.

None
exact Optional[bool]

Match route exactly.

None
is_external bool

Treat as external link.

False
left_section Optional[RouteLitElement]

Left adornment.

None
no_wrap Optional[bool]

Prevent label wrapping.

None
right_section Optional[RouteLitElement]

Right adornment.

None
kwargs Any

Additional props to set.

{}

Returns:

Name Type Description
RLBuilder RLBuilder

A nested builder for child links/content.

Source code in src/routelit_mantine/builder.py
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
def nav_link(
    self,
    href: str,
    label: str,
    *,
    active: Optional[bool] = None,
    auto_contrast: Optional[bool] = None,
    children_offset: Optional[str] = None,
    color: Optional[str] = None,
    default_opened: Optional[bool] = None,
    description: Optional[str] = None,
    disable_right_section_rotation: Optional[bool] = None,
    disabled: Optional[bool] = None,
    exact: Optional[bool] = None,
    is_external: bool = False,
    left_section: Optional[RouteLitElement] = None,
    no_wrap: Optional[bool] = None,
    right_section: Optional[RouteLitElement] = None,
    **kwargs: Any,
) -> "RLBuilder":
    """
    Navigation link, typically used in sidebars or menus.

    Args:
        href (str): Destination path.
        label (str): Visible label.
        active (Optional[bool]): Force active state.
        auto_contrast (Optional[bool]): Improve contrast automatically.
        children_offset (Optional[str]): Indentation for children links.
        color (Optional[str]): Accent color.
        default_opened (Optional[bool]): Start expanded.
        description (Optional[str]): Helper text under the label.
        disable_right_section_rotation (Optional[bool]): Disable chevron rotation.
        disabled (Optional[bool]): Disable interaction.
        exact (Optional[bool]): Match route exactly.
        is_external (bool): Treat as external link.
        left_section (Optional[RouteLitElement]): Left adornment.
        no_wrap (Optional[bool]): Prevent label wrapping.
        right_section (Optional[RouteLitElement]): Right adornment.
        kwargs: Additional props to set.

    Returns:
        RLBuilder: A nested builder for child links/content.
    """
    element = self.link(
        href,
        label,
        active=active,
        autoContrast=auto_contrast,
        childrenOffset=children_offset,
        color=color,
        defaultOpened=default_opened,
        description=description,
        disableRightSectionRotation=disable_right_section_rotation,
        disabled=disabled,
        exact=exact,
        is_external=is_external,
        leftSection=left_section,
        noWrap=no_wrap,
        rightSection=right_section,
        rl_element_type="navlink",
        rl_text_attr="label",
        **kwargs,
    )
    return self._build_nested_builder(element)  # type: ignore[return-value]

notification(title, *, key=None, close_button_props=None, color=None, icon=None, on_close=None, radius=None, text=None, with_border=None, with_close_button=None, **kwargs)

Notification element for transient messages.

Parameters:

Name Type Description Default
title str

Notification title.

required
key Optional[str]

Explicit element key.

None
close_button_props Optional[dict[str, Any]]

Close button props.

None
color Optional[str]

Color variant.

None
icon Optional[RouteLitElement]

Leading icon.

None
on_close Optional[Callable[[], bool]]

Close handler.

None
radius Optional[Union[str, int]]

Corner radius.

None
text Optional[str]

Notification content.

None
with_border Optional[bool]

Show border.

None
with_close_button Optional[bool]

Show close button.

None
kwargs Any

Additional props to set.

{}

Returns:

Name Type Description
RLBuilder RLBuilder

A nested builder scoped to the notification element.

Source code in src/routelit_mantine/builder.py
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
def notification(
    self,
    title: str,
    *,
    key: Optional[str] = None,
    close_button_props: Optional[dict[str, Any]] = None,
    color: Optional[str] = None,
    icon: Optional[RouteLitElement] = None,
    on_close: Optional[Callable[[], bool]] = None,
    radius: Optional[Union[str, int]] = None,
    text: Optional[str] = None,
    with_border: Optional[bool] = None,
    with_close_button: Optional[bool] = None,
    **kwargs: Any,
) -> "RLBuilder":
    """
    Notification element for transient messages.

    Args:
        title (str): Notification title.
        key (Optional[str]): Explicit element key.
        close_button_props (Optional[dict[str, Any]]): Close button props.
        color (Optional[str]): Color variant.
        icon (Optional[RouteLitElement]): Leading icon.
        on_close (Optional[Callable[[], bool]]): Close handler.
        radius (Optional[Union[str, int]]): Corner radius.
        text (Optional[str]): Notification content.
        with_border (Optional[bool]): Show border.
        with_close_button (Optional[bool]): Show close button.
        kwargs: Additional props to set.

    Returns:
        RLBuilder: A nested builder scoped to the notification element.
    """
    return self._x_dialog(  # type: ignore[return-value]
        "notification",
        key or self._new_widget_id("notification", title),
        closeButtonProps=close_button_props,
        color=color,
        radius=radius,
        icon=icon,
        title=title,
        on_close=on_close,
        withBorder=with_border,
        withCloseButton=with_close_button,
        children=text,
        **kwargs,
    )

number_formatter(value, *, key=None, **kwargs)

Format and display a number according to given options.

Parameters:

Name Type Description Default
value Union[float, int, str]

Value to format.

required
key Optional[str]

Explicit element key.

None
kwargs Any

Additional props to set.

{}
Source code in src/routelit_mantine/builder.py
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
def number_formatter(
    self,
    value: Union[float, int, str],
    *,
    key: Optional[str] = None,
    **kwargs: Any,
) -> None:
    """
    Format and display a number according to given options.

    Args:
        value (Union[float, int, str]): Value to format.
        key (Optional[str]): Explicit element key.
        kwargs: Additional props to set.
    """
    self._create_element(
        key=key or self._new_text_id("numberformatter"),
        name="numberformatter",
        props={"value": value, **kwargs},
    )

number_input(label, *, allow_decimal=None, allow_leading_zeros=None, allow_negative=None, allowed_decimal_separators=None, decimal_scale=None, decimal_separator=None, description=None, disabled=None, error=None, hide_controls=None, key=None, left_section=None, left_section_props=None, left_section_width=None, max_value=None, min_value=None, on_change=None, parser=float, required=None, right_section=None, right_section_props=None, right_section_width=None, size=None, step=None, value=None, with_asterisk=None, **kwargs)

Numeric input with formatting and controls.

Parameters:

Name Type Description Default
label str

Field label.

required
allow_decimal Optional[bool]

Allow decimal values.

None
allow_leading_zeros Optional[bool]

Permit leading zeros.

None
allow_negative Optional[bool]

Permit negative values.

None
allowed_decimal_separators Optional[list[str]]

Additional decimal separators.

None
decimal_scale Optional[int]

Maximum number of decimal places.

None
decimal_separator Optional[str]

Decimal separator to use.

None
description Optional[str]

Helper text under the label.

None
disabled Optional[bool]

Disable input interaction.

None
error Optional[str]

Error message.

None
hide_controls Optional[bool]

Hide increment/decrement controls.

None
key Optional[str]

Explicit element key.

None
left_section Optional[RouteLitElement]

Left adornment.

None
left_section_props Optional[dict[str, Any]]

Left adornment props.

None
left_section_width Optional[str]

Left adornment width.

None
max_value Optional[Union[float, int]]

Maximum value.

None
min_value Optional[Union[float, int]]

Minimum value.

None
on_change Optional[Callable[[Union[float, int]], None]]

Change handler.

None
parser Callable[[str], Union[float, int]]

Parser for the returned value.

float
required Optional[bool]

Mark as required.

None
right_section Optional[RouteLitElement]

Right adornment.

None
right_section_props Optional[dict[str, Any]]

Right adornment props.

None
right_section_width Optional[str]

Right adornment width.

None
size Optional[str]

Control size.

None
step Optional[Union[float, int]]

Step of increment/decrement.

None
value Optional[Union[float, int]]

Current value.

None
with_asterisk Optional[bool]

Show required asterisk.

None
kwargs Any

Additional props to set.

{}

Returns:

Type Description
Union[float, int]

Union[float, int]: Current value parsed by the provided parser.

Source code in src/routelit_mantine/builder.py
 924
 925
 926
 927
 928
 929
 930
 931
 932
 933
 934
 935
 936
 937
 938
 939
 940
 941
 942
 943
 944
 945
 946
 947
 948
 949
 950
 951
 952
 953
 954
 955
 956
 957
 958
 959
 960
 961
 962
 963
 964
 965
 966
 967
 968
 969
 970
 971
 972
 973
 974
 975
 976
 977
 978
 979
 980
 981
 982
 983
 984
 985
 986
 987
 988
 989
 990
 991
 992
 993
 994
 995
 996
 997
 998
 999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
def number_input(
    self,
    label: str,
    *,
    allow_decimal: Optional[bool] = None,
    allow_leading_zeros: Optional[bool] = None,
    allow_negative: Optional[bool] = None,
    allowed_decimal_separators: Optional[list[str]] = None,
    decimal_scale: Optional[int] = None,
    decimal_separator: Optional[str] = None,
    description: Optional[str] = None,
    disabled: Optional[bool] = None,
    error: Optional[str] = None,
    hide_controls: Optional[bool] = None,
    key: Optional[str] = None,
    left_section: Optional[RouteLitElement] = None,
    left_section_props: Optional[dict[str, Any]] = None,
    left_section_width: Optional[str] = None,
    max_value: Optional[Union[float, int]] = None,
    min_value: Optional[Union[float, int]] = None,
    on_change: Optional[Callable[[Union[float, int]], None]] = None,
    parser: Callable[[str], Union[float, int]] = float,
    required: Optional[bool] = None,
    right_section: Optional[RouteLitElement] = None,
    right_section_props: Optional[dict[str, Any]] = None,
    right_section_width: Optional[str] = None,
    size: Optional[str] = None,
    step: Optional[Union[float, int]] = None,
    value: Optional[Union[float, int]] = None,
    with_asterisk: Optional[bool] = None,
    **kwargs: Any,
) -> Union[float, int]:
    """
    Numeric input with formatting and controls.

    Args:
        label (str): Field label.
        allow_decimal (Optional[bool]): Allow decimal values.
        allow_leading_zeros (Optional[bool]): Permit leading zeros.
        allow_negative (Optional[bool]): Permit negative values.
        allowed_decimal_separators (Optional[list[str]]): Additional decimal separators.
        decimal_scale (Optional[int]): Maximum number of decimal places.
        decimal_separator (Optional[str]): Decimal separator to use.
        description (Optional[str]): Helper text under the label.
        disabled (Optional[bool]): Disable input interaction.
        error (Optional[str]): Error message.
        hide_controls (Optional[bool]): Hide increment/decrement controls.
        key (Optional[str]): Explicit element key.
        left_section (Optional[RouteLitElement]): Left adornment.
        left_section_props (Optional[dict[str, Any]]): Left adornment props.
        left_section_width (Optional[str]): Left adornment width.
        max_value (Optional[Union[float, int]]): Maximum value.
        min_value (Optional[Union[float, int]]): Minimum value.
        on_change (Optional[Callable[[Union[float, int]], None]]): Change handler.
        parser (Callable[[str], Union[float, int]]): Parser for the returned value.
        required (Optional[bool]): Mark as required.
        right_section (Optional[RouteLitElement]): Right adornment.
        right_section_props (Optional[dict[str, Any]]): Right adornment props.
        right_section_width (Optional[str]): Right adornment width.
        size (Optional[str]): Control size.
        step (Optional[Union[float, int]]): Step of increment/decrement.
        value (Optional[Union[float, int]]): Current value.
        with_asterisk (Optional[bool]): Show required asterisk.
        kwargs: Additional props to set.

    Returns:
        Union[float, int]: Current value parsed by the provided parser.
    """
    return parser(
        cast(
            str,
            self._x_input(
                "numberinput",
                key or self._new_widget_id("numberinput", label),
                allowDecimal=allow_decimal,
                allowLeadingZeros=allow_leading_zeros,
                allowNegative=allow_negative,
                allowedDecimalSeparators=allowed_decimal_separators,
                decimalScale=decimal_scale,
                decimalSeparator=decimal_separator,
                description=description,
                disabled=disabled,
                error=error,
                hideControls=hide_controls,
                label=label,
                leftSection=left_section,
                leftSectionProps=left_section_props,
                leftSectionWidth=left_section_width,
                max=max_value,
                min=min_value,
                on_change=on_change,
                required=required,
                rightSection=right_section,
                rightSectionProps=right_section_props,
                rightSectionWidth=right_section_width,
                size=size,
                step=step,
                value=value,
                withAsterisk=with_asterisk,
                **kwargs,
            ),
        )
    )

paper(*, key=None, radius=None, shadow=None, with_border=None, **kwargs)

Container with background, border, and shadow.

Parameters:

Name Type Description Default
key Optional[str]

Explicit element key.

None
radius Optional[Union[str, int]]

Corner radius.

None
shadow Optional[str]

Shadow preset.

None
with_border Optional[bool]

Show border.

None
kwargs Any

Additional props to set.

{}

Returns:

Name Type Description
RLBuilder RLBuilder

A nested builder scoped to the paper element.

Source code in src/routelit_mantine/builder.py
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
def paper(
    self,
    *,
    key: Optional[str] = None,
    radius: Optional[Union[str, int]] = None,
    shadow: Optional[str] = None,
    with_border: Optional[bool] = None,
    **kwargs: Any,
) -> "RLBuilder":
    """
    Container with background, border, and shadow.

    Args:
        key (Optional[str]): Explicit element key.
        radius (Optional[Union[str, int]]): Corner radius.
        shadow (Optional[str]): Shadow preset.
        with_border (Optional[bool]): Show border.
        kwargs: Additional props to set.

    Returns:
        RLBuilder: A nested builder scoped to the paper element.
    """
    return self._create_builder_element(  # type: ignore[return-value]
        name="paper",
        key=key or self._new_text_id("paper"),
        props={
            "radius": radius,
            "shadow": shadow,
            "withBorder": with_border,
            **kwargs,
        },
        virtual=True,
    )

password_input(label, *, description=None, disabled=None, error=None, input_size=None, key=None, on_change=None, radius=None, required=None, size=None, value=None, visible=None, with_asterisk=None, **kwargs)

Password input with visibility toggle.

Parameters:

Name Type Description Default
label str

Field label.

required
description Optional[str]

Helper text under the label.

None
disabled Optional[bool]

Disable input interaction.

None
error Optional[str]

Error message.

None
input_size Optional[str]

Control size.

None
key Optional[str]

Explicit element key.

None
on_change Optional[Callable[[str], None]]

Change handler.

None
radius Optional[str]

Corner radius.

None
required Optional[bool]

Mark as required.

None
size Optional[str]

Control size.

None
value Optional[str]

Current value.

None
visible Optional[bool]

Force visibility of the password.

None
with_asterisk Optional[bool]

Show required asterisk.

None
kwargs Any

Additional props to set.

{}

Returns:

Type Description
Optional[str]

Optional[str]: Current value.

Source code in src/routelit_mantine/builder.py
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
def password_input(
    self,
    label: str,
    *,
    description: Optional[str] = None,
    disabled: Optional[bool] = None,
    error: Optional[str] = None,
    input_size: Optional[str] = None,
    key: Optional[str] = None,
    on_change: Optional[Callable[[str], None]] = None,
    radius: Optional[str] = None,
    required: Optional[bool] = None,
    size: Optional[str] = None,
    value: Optional[str] = None,
    visible: Optional[bool] = None,
    with_asterisk: Optional[bool] = None,
    **kwargs: Any,
) -> Optional[str]:
    """
    Password input with visibility toggle.

    Args:
        label (str): Field label.
        description (Optional[str]): Helper text under the label.
        disabled (Optional[bool]): Disable input interaction.
        error (Optional[str]): Error message.
        input_size (Optional[str]): Control size.
        key (Optional[str]): Explicit element key.
        on_change (Optional[Callable[[str], None]]): Change handler.
        radius (Optional[str]): Corner radius.
        required (Optional[bool]): Mark as required.
        size (Optional[str]): Control size.
        value (Optional[str]): Current value.
        visible (Optional[bool]): Force visibility of the password.
        with_asterisk (Optional[bool]): Show required asterisk.
        kwargs: Additional props to set.

    Returns:
        Optional[str]: Current value.
    """
    return self._x_input(
        "passwordinput",
        key or self._new_widget_id("passwordinput", label),
        description=description,
        disabled=disabled,
        error=error,
        inputSize=input_size,
        label=label,
        on_change=on_change,
        radius=radius,
        required=required,
        size=size,
        value=value,
        visible=visible,
        withAsterisk=with_asterisk,
        **kwargs,
    )

pie_chart(data, *, end_angle=None, key=None, label_color=None, labels_position=None, labels_type=None, padding_angle=None, pie_chart_props=None, pie_props=None, size=None, start_angle=None, stroke_color=None, stroke_width=None, tooltip_animation_duration=None, tooltip_data_source=None, tooltip_props=None, with_labels=None, with_labels_line=None, with_tooltip=None, **kwargs)

Pie chart to visualize parts of a whole.

Parameters:

Name Type Description Default
data list

Dataset.

required
end_angle Optional[int]

End angle.

None
key Optional[str]

Explicit element key.

None
label_color Optional[str]

Label color.

None
labels_position Optional[Literal['outside', 'inside']]

Labels position.

None
labels_type Optional[Literal['value', 'percent']]

Label content.

None
padding_angle Optional[int]

Angle between segments.

None
pie_chart_props Optional[dict[str, Any]]

Chart container props.

None
pie_props Optional[dict[str, Any]]

Pie props.

None
size Optional[int]

Chart size.

None
start_angle Optional[int]

Start angle.

None
stroke_color Optional[str]

Border color.

None
stroke_width Optional[int]

Border width.

None
tooltip_animation_duration Optional[int]

Tooltip animation duration.

None
tooltip_data_source Optional[Literal['all', 'segment']]

Tooltip data source.

None
tooltip_props Optional[dict[str, Any]]

Tooltip props.

None
with_labels Optional[bool]

Show labels.

None
with_labels_line Optional[bool]

Show label connector lines.

None
with_tooltip Optional[bool]

Show tooltip.

None
kwargs Any

Additional props to set.

{}

Returns:

Name Type Description
RLBuilder RLBuilder

A nested builder scoped to the pie chart element.

Source code in src/routelit_mantine/builder.py
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282
def pie_chart(
    self,
    data: list,
    *,
    end_angle: Optional[int] = None,
    key: Optional[str] = None,
    label_color: Optional[str] = None,
    labels_position: Optional[Literal["outside", "inside"]] = None,
    labels_type: Optional[Literal["value", "percent"]] = None,
    padding_angle: Optional[int] = None,
    pie_chart_props: Optional[dict[str, Any]] = None,
    pie_props: Optional[dict[str, Any]] = None,
    size: Optional[int] = None,
    start_angle: Optional[int] = None,
    stroke_color: Optional[str] = None,
    stroke_width: Optional[int] = None,
    tooltip_animation_duration: Optional[int] = None,
    tooltip_data_source: Optional[Literal["all", "segment"]] = None,
    tooltip_props: Optional[dict[str, Any]] = None,
    with_labels: Optional[bool] = None,
    with_labels_line: Optional[bool] = None,
    with_tooltip: Optional[bool] = None,
    **kwargs: Any,
) -> "RLBuilder":
    """
    Pie chart to visualize parts of a whole.

    Args:
        data (list): Dataset.
        end_angle (Optional[int]): End angle.
        key (Optional[str]): Explicit element key.
        label_color (Optional[str]): Label color.
        labels_position (Optional[Literal["outside","inside"]]): Labels position.
        labels_type (Optional[Literal["value","percent"]]): Label content.
        padding_angle (Optional[int]): Angle between segments.
        pie_chart_props (Optional[dict[str, Any]]): Chart container props.
        pie_props (Optional[dict[str, Any]]): Pie props.
        size (Optional[int]): Chart size.
        start_angle (Optional[int]): Start angle.
        stroke_color (Optional[str]): Border color.
        stroke_width (Optional[int]): Border width.
        tooltip_animation_duration (Optional[int]): Tooltip animation duration.
        tooltip_data_source (Optional[Literal["all","segment"]]): Tooltip data source.
        tooltip_props (Optional[dict[str, Any]]): Tooltip props.
        with_labels (Optional[bool]): Show labels.
        with_labels_line (Optional[bool]): Show label connector lines.
        with_tooltip (Optional[bool]): Show tooltip.
        kwargs: Additional props to set.

    Returns:
        RLBuilder: A nested builder scoped to the pie chart element.
    """
    return self._create_builder_element(  # type: ignore[return-value]
        name="piechart",
        key=key or self._new_text_id("piechart"),
        props={
            "data": data,
            "endAngle": end_angle,
            "labelColor": label_color,
            "labelsPosition": labels_position,
            "labelsType": labels_type,
            "paddingAngle": padding_angle,
            "pieChartProps": pie_chart_props,
            "pieProps": pie_props,
            "size": size,
            "startAngle": start_angle,
            "strokeColor": stroke_color,
            "strokeWidth": stroke_width,
            "tooltipAnimationDuration": tooltip_animation_duration,
            "tooltipDataSource": tooltip_data_source,
            "tooltipProps": tooltip_props,
            "withLabels": with_labels,
            "withLabelsLine": with_labels_line,
            "withTooltip": with_tooltip,
            **kwargs,
        },
    )

progress(value, *, key=None, animated=None, auto_contrast=None, color=None, radius=None, size=None, striped=None, transition_duration=None, **kwargs)

Determinate progress bar.

Parameters:

Name Type Description Default
value float

Progress value from 0 to 100.

required
key Optional[str]

Explicit element key.

None
animated Optional[bool]

Animate stripes.

None
auto_contrast Optional[bool]

Improve contrast automatically.

None
color Optional[str]

Color variant.

None
radius Optional[Union[str, int]]

Corner radius.

None
size Optional[Union[str, int]]

Height of the bar.

None
striped Optional[bool]

Show stripes.

None
transition_duration Optional[int]

Animation duration in ms.

None
kwargs Any

Additional props to set.

{}
Source code in src/routelit_mantine/builder.py
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
def progress(
    self,
    value: float,
    *,
    key: Optional[str] = None,
    animated: Optional[bool] = None,
    auto_contrast: Optional[bool] = None,
    color: Optional[str] = None,
    radius: Optional[Union[str, int]] = None,
    size: Optional[Union[str, int]] = None,
    striped: Optional[bool] = None,
    transition_duration: Optional[int] = None,
    **kwargs: Any,
) -> None:
    """
    Determinate progress bar.

    Args:
        value (float): Progress value from 0 to 100.
        key (Optional[str]): Explicit element key.
        animated (Optional[bool]): Animate stripes.
        auto_contrast (Optional[bool]): Improve contrast automatically.
        color (Optional[str]): Color variant.
        radius (Optional[Union[str, int]]): Corner radius.
        size (Optional[Union[str, int]]): Height of the bar.
        striped (Optional[bool]): Show stripes.
        transition_duration (Optional[int]): Animation duration in ms.
        kwargs: Additional props to set.
    """
    self._create_element(
        key=key or self._new_text_id("progress"),
        name="progress",
        props={
            "value": value,
            "animated": animated,
            "autoContrast": auto_contrast,
            "color": color,
            "radius": radius,
            "size": size,
            "striped": striped,
            "transitionDuration": transition_duration,
            **kwargs,
        },
    )

radar_chart(data, data_key, series, *, active_dot_props=None, dot_props=None, grid_color=None, key=None, legend_props=None, polar_angle_axis_props=None, polar_grid_props=None, polar_radius_axis_props=None, radar_chart_props=None, radar_props=None, text_color=None, tooltip_animation_duration=None, tooltip_props=None, with_dots=None, with_legend=None, with_polar_angle_axis=None, with_polar_grid=None, with_polar_radius_axis=None, with_tooltip=None, **kwargs)

Radar chart for multi-dimensional categorical data.

Parameters:

Name Type Description Default
data list

Dataset.

required
data_key str

Key for category labels.

required
series list[dict[str, Any]]

Series configuration.

required
active_dot_props Optional[dict[str, Any]]

Active dot props.

None
dot_props Optional[dict[str, Any]]

Dot props.

None
grid_color Optional[str]

Grid color.

None
key Optional[str]

Explicit element key.

None
legend_props Optional[dict[str, Any]]

Legend props.

None
polar_angle_axis_props Optional[dict[str, Any]]

Polar angle axis props.

None
polar_grid_props Optional[dict[str, Any]]

Polar grid props.

None
polar_radius_axis_props Optional[dict[str, Any]]

Polar radius axis props.

None
radar_chart_props Optional[dict[str, Any]]

Chart container props.

None
radar_props Optional[dict[str, Any]]

Radar area/line props.

None
text_color Optional[str]

Text color.

None
tooltip_animation_duration Optional[int]

Tooltip animation duration.

None
tooltip_props Optional[dict[str, Any]]

Tooltip props.

None
with_dots Optional[bool]

Show dots.

None
with_legend Optional[bool]

Show legend.

None
with_polar_angle_axis Optional[bool]

Show angle axis.

None
with_polar_grid Optional[bool]

Show polar grid.

None
with_polar_radius_axis Optional[bool]

Show radius axis.

None
with_tooltip Optional[bool]

Show tooltip.

None
kwargs Any

Additional props to set.

{}

Returns:

Name Type Description
RLBuilder RLBuilder

A nested builder scoped to the radar chart element.

Source code in src/routelit_mantine/builder.py
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
def radar_chart(
    self,
    data: list,
    data_key: str,
    series: list[dict[str, Any]],
    *,
    active_dot_props: Optional[dict[str, Any]] = None,
    dot_props: Optional[dict[str, Any]] = None,
    grid_color: Optional[str] = None,
    key: Optional[str] = None,
    legend_props: Optional[dict[str, Any]] = None,
    polar_angle_axis_props: Optional[dict[str, Any]] = None,
    polar_grid_props: Optional[dict[str, Any]] = None,
    polar_radius_axis_props: Optional[dict[str, Any]] = None,
    radar_chart_props: Optional[dict[str, Any]] = None,
    radar_props: Optional[dict[str, Any]] = None,
    text_color: Optional[str] = None,
    tooltip_animation_duration: Optional[int] = None,
    tooltip_props: Optional[dict[str, Any]] = None,
    with_dots: Optional[bool] = None,
    with_legend: Optional[bool] = None,
    with_polar_angle_axis: Optional[bool] = None,
    with_polar_grid: Optional[bool] = None,
    with_polar_radius_axis: Optional[bool] = None,
    with_tooltip: Optional[bool] = None,
    **kwargs: Any,
) -> "RLBuilder":
    """
    Radar chart for multi-dimensional categorical data.

    Args:
        data (list): Dataset.
        data_key (str): Key for category labels.
        series (list[dict[str, Any]]): Series configuration.
        active_dot_props (Optional[dict[str, Any]]): Active dot props.
        dot_props (Optional[dict[str, Any]]): Dot props.
        grid_color (Optional[str]): Grid color.
        key (Optional[str]): Explicit element key.
        legend_props (Optional[dict[str, Any]]): Legend props.
        polar_angle_axis_props (Optional[dict[str, Any]]): Polar angle axis props.
        polar_grid_props (Optional[dict[str, Any]]): Polar grid props.
        polar_radius_axis_props (Optional[dict[str, Any]]): Polar radius axis props.
        radar_chart_props (Optional[dict[str, Any]]): Chart container props.
        radar_props (Optional[dict[str, Any]]): Radar area/line props.
        text_color (Optional[str]): Text color.
        tooltip_animation_duration (Optional[int]): Tooltip animation duration.
        tooltip_props (Optional[dict[str, Any]]): Tooltip props.
        with_dots (Optional[bool]): Show dots.
        with_legend (Optional[bool]): Show legend.
        with_polar_angle_axis (Optional[bool]): Show angle axis.
        with_polar_grid (Optional[bool]): Show polar grid.
        with_polar_radius_axis (Optional[bool]): Show radius axis.
        with_tooltip (Optional[bool]): Show tooltip.
        kwargs: Additional props to set.

    Returns:
        RLBuilder: A nested builder scoped to the radar chart element.
    """
    return self._create_builder_element(  # type: ignore[return-value]
        name="radarchart",
        key=key or self._new_text_id("radarchart"),
        props={
            "activeDotProps": active_dot_props,
            "data": data,
            "dataKey": data_key,
            "dotProps": dot_props,
            "gridColor": grid_color,
            "legendProps": legend_props,
            "polarAngleAxisProps": polar_angle_axis_props,
            "polarGridProps": polar_grid_props,
            "polarRadiusAxisProps": polar_radius_axis_props,
            "radarChartProps": radar_chart_props,
            "radarProps": radar_props,
            "series": series,
            "textColor": text_color,
            "tooltipAnimationDuration": tooltip_animation_duration,
            "tooltipProps": tooltip_props,
            "withDots": with_dots,
            "withLegend": with_legend,
            "withPolarAngleAxis": with_polar_angle_axis,
            "withPolarGrid": with_polar_grid,
            "withPolarRadiusAxis": with_polar_radius_axis,
            "withTooltip": with_tooltip,
            **kwargs,
        },
    )

radial_bar_chart(data, data_key, *, bar_size=None, empty_background_color=None, end_angle=None, key=None, legend_props=None, radial_bar_chart_props=None, radial_bar_props=None, start_angle=None, tooltip_props=None, with_background=None, with_labels=None, with_legend=None, with_tooltip=None, **kwargs)

Radial bar chart for circular bar visualizations.

Parameters:

Name Type Description Default
data list[dict[str, Any]]

Dataset.

required
data_key str

Value key.

required
bar_size Optional[int]

Bar thickness.

None
empty_background_color Optional[str]

Empty background color.

None
end_angle Optional[int]

End angle.

None
key Optional[str]

Explicit element key.

None
legend_props Optional[dict[str, Any]]

Legend props.

None
radial_bar_chart_props Optional[dict[str, Any]]

Chart container props.

None
radial_bar_props Optional[dict[str, Any]]

Bar props.

None
start_angle Optional[int]

Start angle.

None
tooltip_props Optional[dict[str, Any]]

Tooltip props.

None
with_background Optional[bool]

Show circular background.

None
with_labels Optional[bool]

Show labels.

None
with_legend Optional[bool]

Show legend.

None
with_tooltip Optional[bool]

Show tooltip.

None
kwargs Any

Additional props to set.

{}

Returns:

Name Type Description
RLBuilder RLBuilder

A nested builder scoped to the radial bar chart element.

Source code in src/routelit_mantine/builder.py
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579
5580
5581
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612
def radial_bar_chart(
    self,
    data: list[dict[str, Any]],
    data_key: str,
    *,
    bar_size: Optional[int] = None,
    empty_background_color: Optional[str] = None,
    end_angle: Optional[int] = None,
    key: Optional[str] = None,
    legend_props: Optional[dict[str, Any]] = None,
    radial_bar_chart_props: Optional[dict[str, Any]] = None,
    radial_bar_props: Optional[dict[str, Any]] = None,
    start_angle: Optional[int] = None,
    tooltip_props: Optional[dict[str, Any]] = None,
    with_background: Optional[bool] = None,
    with_labels: Optional[bool] = None,
    with_legend: Optional[bool] = None,
    with_tooltip: Optional[bool] = None,
    **kwargs: Any,
) -> "RLBuilder":
    """
    Radial bar chart for circular bar visualizations.

    Args:
        data (list[dict[str, Any]]): Dataset.
        data_key (str): Value key.
        bar_size (Optional[int]): Bar thickness.
        empty_background_color (Optional[str]): Empty background color.
        end_angle (Optional[int]): End angle.
        key (Optional[str]): Explicit element key.
        legend_props (Optional[dict[str, Any]]): Legend props.
        radial_bar_chart_props (Optional[dict[str, Any]]): Chart container props.
        radial_bar_props (Optional[dict[str, Any]]): Bar props.
        start_angle (Optional[int]): Start angle.
        tooltip_props (Optional[dict[str, Any]]): Tooltip props.
        with_background (Optional[bool]): Show circular background.
        with_labels (Optional[bool]): Show labels.
        with_legend (Optional[bool]): Show legend.
        with_tooltip (Optional[bool]): Show tooltip.
        kwargs: Additional props to set.

    Returns:
        RLBuilder: A nested builder scoped to the radial bar chart element.
    """
    return self._create_builder_element(  # type: ignore[return-value]
        name="radialbarchart",
        key=key or self._new_text_id("radialbarchart"),
        props={
            "data": data,
            "dataKey": data_key,
            "barSize": bar_size,
            "emptyBackgroundColor": empty_background_color,
            "endAngle": end_angle,
            "legendProps": legend_props,
            "radialBarChartProps": radial_bar_chart_props,
            "radialBarProps": radial_bar_props,
            "startAngle": start_angle,
            "tooltipProps": tooltip_props,
            "withBackground": with_background,
            "withLabels": with_labels,
            "withLegend": with_legend,
            "withTooltip": with_tooltip,
            **kwargs,
        },
    )

radio_group(label, options, *, description=None, disabled=None, error=None, format_func=None, group_props=None, input_size=None, key=None, on_change=None, read_only=None, required=None, size=None, value=None, with_asterisk=None, **kwargs)

Single selection using radio inputs.

Parameters:

Name Type Description Default
label str

Group label.

required
options list[Union[RLOption, str]]

Available options.

required
description Optional[str]

Helper text under the label.

None
disabled Optional[bool]

Disable interaction.

None
error Optional[str]

Error message.

None
format_func Optional[Callable[[Any], str]]

Map option value to label.

None
group_props Optional[dict[str, Any]]

Extra props for the group container.

None
input_size Optional[str]

Control size.

None
key Optional[str]

Explicit element key.

None
on_change Optional[Callable[[str], None]]

Change handler.

None
read_only Optional[bool]

Read-only state.

None
required Optional[bool]

Mark as required.

None
size Optional[str]

Control size.

None
value Optional[str]

Selected value.

None
with_asterisk Optional[bool]

Show required asterisk.

None
kwargs Any

Additional props to set.

{}

Returns:

Type Description
Optional[str]

Optional[str]: Selected value.

Source code in src/routelit_mantine/builder.py
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
def radio_group(
    self,
    label: str,
    options: list[Union[RLOption, str]],
    *,
    description: Optional[str] = None,
    disabled: Optional[bool] = None,
    error: Optional[str] = None,
    format_func: Optional[Callable[[Any], str]] = None,
    group_props: Optional[dict[str, Any]] = None,
    input_size: Optional[str] = None,
    key: Optional[str] = None,
    on_change: Optional[Callable[[str], None]] = None,
    read_only: Optional[bool] = None,
    required: Optional[bool] = None,
    size: Optional[str] = None,
    value: Optional[str] = None,
    with_asterisk: Optional[bool] = None,
    **kwargs: Any,
) -> Optional[str]:
    """
    Single selection using radio inputs.

    Args:
        label (str): Group label.
        options (list[Union[RLOption, str]]): Available options.
        description (Optional[str]): Helper text under the label.
        disabled (Optional[bool]): Disable interaction.
        error (Optional[str]): Error message.
        format_func (Optional[Callable[[Any], str]]): Map option value to label.
        group_props (Optional[dict[str, Any]]): Extra props for the group container.
        input_size (Optional[str]): Control size.
        key (Optional[str]): Explicit element key.
        on_change (Optional[Callable[[str], None]]): Change handler.
        read_only (Optional[bool]): Read-only state.
        required (Optional[bool]): Mark as required.
        size (Optional[str]): Control size.
        value (Optional[str]): Selected value.
        with_asterisk (Optional[bool]): Show required asterisk.
        kwargs: Additional props to set.

    Returns:
        Optional[str]: Selected value.
    """
    return cast(
        Optional[str],
        self._x_radio_select(
            "radiogroup",
            key or self._new_widget_id("radio-group", label),
            description=description,
            disabled=disabled,
            error=error,
            format_func=format_func,
            group_props=group_props,
            inputSize=input_size,
            label=label,
            on_change=on_change,
            options=options,  # type: ignore[arg-type]
            readOnly=read_only,
            required=required,
            size=size,
            value=value,
            withAsterisk=with_asterisk,
            **kwargs,
        ),
    )

range_slider(label, *, color=None, disabled=None, inverted=None, key=None, label_always_on=None, marks=None, max_range=None, max_value=None, min_value=None, on_change=None, precision=None, step=None, value=None, **kwargs)

Slider that allows selecting a numeric range.

Parameters:

Name Type Description Default
label str

Field label.

required
color Optional[str]

Accent color.

None
disabled Optional[bool]

Disable interaction.

None
inverted Optional[bool]

Invert direction.

None
key Optional[str]

Explicit element key.

None
label_always_on Optional[bool]

Always show labels above thumbs.

None
marks Optional[list[RLOption]]

Marks along the slider.

None
max_range Optional[float]

Max distance between thumbs.

None
max_value Optional[float]

Maximum value.

None
min_value Optional[float]

Minimum value.

None
on_change Optional[Callable[[tuple[float, float]], None]]

Change handler.

None
precision Optional[int]

Decimal precision.

None
step Optional[float]

Step size.

None
value Optional[tuple[float, float]]

Current value.

None
kwargs Any

Additional props to set.

{}

Returns:

Type Description
tuple[float, float]

tuple[float, float]: Current range values.

Source code in src/routelit_mantine/builder.py
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
def range_slider(
    self,
    label: str,
    *,
    color: Optional[str] = None,
    disabled: Optional[bool] = None,
    inverted: Optional[bool] = None,
    key: Optional[str] = None,
    label_always_on: Optional[bool] = None,
    marks: Optional[list[RLOption]] = None,
    max_range: Optional[float] = None,
    max_value: Optional[float] = None,
    min_value: Optional[float] = None,
    on_change: Optional[Callable[[tuple[float, float]], None]] = None,
    precision: Optional[int] = None,
    step: Optional[float] = None,
    value: Optional[tuple[float, float]] = None,
    **kwargs: Any,
) -> tuple[float, float]:
    """
    Slider that allows selecting a numeric range.

    Args:
        label (str): Field label.
        color (Optional[str]): Accent color.
        disabled (Optional[bool]): Disable interaction.
        inverted (Optional[bool]): Invert direction.
        key (Optional[str]): Explicit element key.
        label_always_on (Optional[bool]): Always show labels above thumbs.
        marks (Optional[list[RLOption]]): Marks along the slider.
        max_range (Optional[float]): Max distance between thumbs.
        max_value (Optional[float]): Maximum value.
        min_value (Optional[float]): Minimum value.
        on_change (Optional[Callable[[tuple[float, float]], None]]): Change handler.
        precision (Optional[int]): Decimal precision.
        step (Optional[float]): Step size.
        value (Optional[tuple[float, float]]): Current value.
        kwargs: Additional props to set.

    Returns:
        tuple[float, float]: Current range values.
    """
    return cast(
        tuple[float, float],
        self._x_input(
            "rangeslider",
            key or self._new_widget_id("rangeslider", label),
            color=color,
            disabled=disabled,
            inverted=inverted,
            label=label,
            labelAlwaysOn=label_always_on,
            marks=marks,
            max=max_value,
            maxRange=max_range,
            min=min_value,
            on_change=on_change,
            precision=precision,
            step=step,
            value=value,
            **kwargs,
        ),
    )

rating(key, *, color=None, count=None, fractions=None, on_change=None, read_only=None, size=None, parser=float, value=None, **kwargs)

Star (or icon) rating input.

Parameters:

Name Type Description Default
key str

Explicit element key.

required
color Optional[str]

Accent color.

None
count Optional[int]

Number of icons.

None
fractions Optional[int]

Fractional steps per icon.

None
on_change Optional[Callable[[int], None]]

Change handler.

None
read_only Optional[bool]

Read-only state.

None
size Optional[str]

Control size.

None
parser Callable[[Any], Union[float, int]]

Parser for the returned value.

float
value Optional[int]

Current value.

None
kwargs Any

Additional props to set.

{}

Returns:

Name Type Description
float float

Current value parsed by the provided parser.

Source code in src/routelit_mantine/builder.py
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
def rating(
    self,
    key: str,
    *,
    color: Optional[str] = None,
    count: Optional[int] = None,
    fractions: Optional[int] = None,
    on_change: Optional[Callable[[int], None]] = None,
    read_only: Optional[bool] = None,
    size: Optional[str] = None,
    parser: Callable[[Any], Union[float, int]] = float,
    value: Optional[int] = None,
    **kwargs: Any,
) -> float:
    """
    Star (or icon) rating input.

    Args:
        key (str): Explicit element key.
        color (Optional[str]): Accent color.
        count (Optional[int]): Number of icons.
        fractions (Optional[int]): Fractional steps per icon.
        on_change (Optional[Callable[[int], None]]): Change handler.
        read_only (Optional[bool]): Read-only state.
        size (Optional[str]): Control size.
        parser (Callable[[Any], Union[float, int]]): Parser for the returned value.
        value (Optional[int]): Current value.
        kwargs: Additional props to set.

    Returns:
        float: Current value parsed by the provided parser.
    """
    return parser(
        self._x_input(
            "rating",
            key,
            color=color,
            count=count,
            fractions=fractions,
            on_change=on_change,
            readOnly=read_only,
            size=size,
            value=value,
            **kwargs,
        )
    )

scatter_chart(data, data_key, *, grid_axis=None, grid_color=None, grid_props=None, labels=None, legend_props=None, orientation=None, point_labels=None, reference_lines=None, right_y_axis_label=None, right_y_axis_props=None, scatter_chart_props=None, scatter_props=None, stroke_dasharray=None, text_color=None, tick_line=None, tooltip_animation_duration=None, tooltip_props=None, unit=None, value_formatter=None, with_legend=None, with_right_y_axis=None, with_tooltip=None, with_x_axis=None, with_y_axis=None, x_axis_label=None, x_axis_props=None, y_axis_label=None, y_axis_props=None, key=None, **kwargs)

Scatter chart for visualizing correlation between two variables.

Parameters:

Name Type Description Default
data list

Dataset.

required
data_key dict[str, str]

Mapping for x/y keys.

required
grid_axis Optional[str]

Grid axis.

None
grid_color Optional[str]

Grid color.

None
grid_props Optional[dict[str, Any]]

Grid props.

None
labels Optional[dict[str, str]]

Axis labels.

None
legend_props Optional[dict[str, Any]]

Legend props.

None
orientation Optional[str]

Orientation.

None
point_labels Optional[str]

Point labels key.

None
reference_lines Optional[list[dict[str, Any]]]

Reference lines.

None
right_y_axis_label Optional[str]

Secondary Y axis label.

None
right_y_axis_props Optional[dict[str, Any]]

Secondary Y axis props.

None
scatter_chart_props Optional[dict[str, Any]]

Chart container props.

None
scatter_props Optional[dict[str, Any]]

Scatter props.

None
stroke_dasharray Optional[Union[str, int]]

Stroke dash pattern.

None
text_color Optional[str]

Text color.

None
tick_line Optional[str]

Tick line display.

None
tooltip_animation_duration Optional[int]

Tooltip animation duration.

None
tooltip_props Optional[dict[str, Any]]

Tooltip props.

None
unit Optional[dict[str, str]]

Axis units.

None
value_formatter Optional[Any]

Value formatter.

None
with_legend Optional[bool]

Show legend.

None
with_right_y_axis Optional[bool]

Enable right Y axis.

None
with_tooltip Optional[bool]

Show tooltip.

None
with_x_axis Optional[bool]

Show X axis.

None
with_y_axis Optional[bool]

Show Y axis.

None
x_axis_label Optional[str]

X axis label.

None
x_axis_props Optional[dict[str, Any]]

X axis props.

None
y_axis_label Optional[str]

Y axis label.

None
y_axis_props Optional[dict[str, Any]]

Y axis props.

None
key Optional[str]

Explicit element key.

None
kwargs Any

Additional props to set.

{}

Returns:

Name Type Description
RLBuilder RLBuilder

A nested builder scoped to the scatter chart element.

Source code in src/routelit_mantine/builder.py
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
def scatter_chart(
    self,
    data: list,
    data_key: dict[str, str],
    *,
    grid_axis: Optional[str] = None,
    grid_color: Optional[str] = None,
    grid_props: Optional[dict[str, Any]] = None,
    labels: Optional[dict[str, str]] = None,
    legend_props: Optional[dict[str, Any]] = None,
    orientation: Optional[str] = None,
    point_labels: Optional[str] = None,
    reference_lines: Optional[list[dict[str, Any]]] = None,
    right_y_axis_label: Optional[str] = None,
    right_y_axis_props: Optional[dict[str, Any]] = None,
    scatter_chart_props: Optional[dict[str, Any]] = None,
    scatter_props: Optional[dict[str, Any]] = None,
    stroke_dasharray: Optional[Union[str, int]] = None,
    text_color: Optional[str] = None,
    tick_line: Optional[str] = None,
    tooltip_animation_duration: Optional[int] = None,
    tooltip_props: Optional[dict[str, Any]] = None,
    unit: Optional[dict[str, str]] = None,
    value_formatter: Optional[Any] = None,
    with_legend: Optional[bool] = None,
    with_right_y_axis: Optional[bool] = None,
    with_tooltip: Optional[bool] = None,
    with_x_axis: Optional[bool] = None,
    with_y_axis: Optional[bool] = None,
    x_axis_label: Optional[str] = None,
    x_axis_props: Optional[dict[str, Any]] = None,
    y_axis_label: Optional[str] = None,
    y_axis_props: Optional[dict[str, Any]] = None,
    key: Optional[str] = None,
    **kwargs: Any,
) -> "RLBuilder":
    """
    Scatter chart for visualizing correlation between two variables.

    Args:
        data (list): Dataset.
        data_key (dict[str, str]): Mapping for x/y keys.
        grid_axis (Optional[str]): Grid axis.
        grid_color (Optional[str]): Grid color.
        grid_props (Optional[dict[str, Any]]): Grid props.
        labels (Optional[dict[str, str]]): Axis labels.
        legend_props (Optional[dict[str, Any]]): Legend props.
        orientation (Optional[str]): Orientation.
        point_labels (Optional[str]): Point labels key.
        reference_lines (Optional[list[dict[str, Any]]]): Reference lines.
        right_y_axis_label (Optional[str]): Secondary Y axis label.
        right_y_axis_props (Optional[dict[str, Any]]): Secondary Y axis props.
        scatter_chart_props (Optional[dict[str, Any]]): Chart container props.
        scatter_props (Optional[dict[str, Any]]): Scatter props.
        stroke_dasharray (Optional[Union[str, int]]): Stroke dash pattern.
        text_color (Optional[str]): Text color.
        tick_line (Optional[str]): Tick line display.
        tooltip_animation_duration (Optional[int]): Tooltip animation duration.
        tooltip_props (Optional[dict[str, Any]]): Tooltip props.
        unit (Optional[dict[str, str]]): Axis units.
        value_formatter (Optional[Any]): Value formatter.
        with_legend (Optional[bool]): Show legend.
        with_right_y_axis (Optional[bool]): Enable right Y axis.
        with_tooltip (Optional[bool]): Show tooltip.
        with_x_axis (Optional[bool]): Show X axis.
        with_y_axis (Optional[bool]): Show Y axis.
        x_axis_label (Optional[str]): X axis label.
        x_axis_props (Optional[dict[str, Any]]): X axis props.
        y_axis_label (Optional[str]): Y axis label.
        y_axis_props (Optional[dict[str, Any]]): Y axis props.
        key (Optional[str]): Explicit element key.
        kwargs: Additional props to set.

    Returns:
        RLBuilder: A nested builder scoped to the scatter chart element.
    """
    return self._create_builder_element(  # type: ignore[return-value]
        name="scatterchart",
        key=key or self._new_text_id("scatterchart"),
        props={
            "data": data,
            "dataKey": data_key,
            "gridAxis": grid_axis,
            "gridColor": grid_color,
            "gridProps": grid_props,
            "labels": labels,
            "legendProps": legend_props,
            "orientation": orientation,
            "pointLabels": point_labels,
            "referenceLines": reference_lines,
            "rightYAxisLabel": right_y_axis_label,
            "rightYAxisProps": right_y_axis_props,
            "scatterChartProps": scatter_chart_props,
            "scatterProps": scatter_props,
            "strokeDasharray": stroke_dasharray,
            "textColor": text_color,
            "tickLine": tick_line,
            "tooltipAnimationDuration": tooltip_animation_duration,
            "tooltipProps": tooltip_props,
            "unit": unit,
            "valueFormatter": value_formatter,
            "withLegend": with_legend,
            "withRightYAxis": with_right_y_axis,
            "withTooltip": with_tooltip,
            "withXAxis": with_x_axis,
            "withYAxis": with_y_axis,
            "xAxisLabel": x_axis_label,
            "xAxisProps": x_axis_props,
            "yAxisLabel": y_axis_label,
            "yAxisProps": y_axis_props,
            **kwargs,
        },
    )

scroll_area(*, key=None, offset_scrollbars=None, overscroll_behavior=None, scroll_hide_delay=None, scrollbar_size=None, scrollbars=None, type=None, viewport_props=None, **kwargs)

Scrollable area with configurable scrollbars and behavior.

Parameters:

Name Type Description Default
key Optional[str]

Explicit element key.

None
offset_scrollbars Optional[Union[bool, Literal["x", "y", "present"]]

Offset scrollbars from content.

None
overscroll_behavior Optional[str]

CSS overscroll behavior.

None
scroll_hide_delay Optional[int]

Delay before hiding scrollbars.

None
scrollbar_size Optional[Union[str, int]]

Scrollbar size.

None
scrollbars Optional[Union[bool, Literal["x", "y", "xy"]]

Which axes show scrollbars.

None
type Optional[Literal['auto', 'scroll', 'always', 'hover', 'never']]

Scrollbar visibility policy.

None
viewport_props Optional[dict[str, Any]]

Viewport element props.

None
kwargs Any

Additional props to set.

{}

Returns:

Name Type Description
RLBuilder RLBuilder

A nested builder scoped to the scroll area.

Source code in src/routelit_mantine/builder.py
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
def scroll_area(
    self,
    *,
    key: Optional[str] = None,
    offset_scrollbars: Optional[Union[bool, Literal["x", "y", "present"]]] = None,
    overscroll_behavior: Optional[str] = None,
    scroll_hide_delay: Optional[int] = None,
    scrollbar_size: Optional[Union[str, int]] = None,
    scrollbars: Optional[Union[bool, Literal["x", "y", "xy"]]] = None,
    type: Optional[Literal["auto", "scroll", "always", "hover", "never"]] = None,  # noqa: A002
    viewport_props: Optional[dict[str, Any]] = None,
    **kwargs: Any,
) -> "RLBuilder":
    """
    Scrollable area with configurable scrollbars and behavior.

    Args:
        key (Optional[str]): Explicit element key.
        offset_scrollbars (Optional[Union[bool, Literal["x", "y", "present"]]): Offset scrollbars from content.
        overscroll_behavior (Optional[str]): CSS overscroll behavior.
        scroll_hide_delay (Optional[int]): Delay before hiding scrollbars.
        scrollbar_size (Optional[Union[str, int]]): Scrollbar size.
        scrollbars (Optional[Union[bool, Literal["x", "y", "xy"]]): Which axes show scrollbars.
        type (Optional[Literal["auto", "scroll", "always", "hover", "never"]]): Scrollbar visibility policy.
        viewport_props (Optional[dict[str, Any]]): Viewport element props.
        kwargs: Additional props to set.

    Returns:
        RLBuilder: A nested builder scoped to the scroll area.
    """
    return self._create_builder_element(  # type: ignore[return-value]
        name="scrollarea",
        key=key or self._new_text_id("scrollarea"),
        props={
            "offsetScrollbars": offset_scrollbars,
            "overscrollBehavior": overscroll_behavior,
            "scrollHideDelay": scroll_hide_delay,
            "scrollbarSize": scrollbar_size,
            "scrollbars": scrollbars,
            "type": type,
            "viewportProps": viewport_props,
            **kwargs,
        },
        virtual=True,
    )

segmented_control(key, options, *, auto_contrast=None, color=None, disabled=None, format_func=None, full_width=None, on_change=None, orientation=None, radius=None, read_only=None, size=None, transition_duration=None, value=None, with_items_borders=None, **kwargs)

Segmented control for single selection among options.

Parameters:

Name Type Description Default
key str

Explicit element key.

required
options list[Union[RLOption, str]]

Available options.

required
auto_contrast Optional[bool]

Improve contrast automatically.

None
color Optional[str]

Accent color.

None
disabled Optional[bool]

Disable interaction.

None
format_func Optional[Callable[[Any], str]]

Map option value to label.

None
full_width Optional[bool]

Make control take full width.

None
on_change Optional[Callable[[str], None]]

Change handler.

None
orientation Optional[Literal['horizontal', 'vertical']]

Orientation.

None
radius Optional[str]

Corner radius.

None
read_only Optional[bool]

Read-only state.

None
size Optional[str]

Control size.

None
transition_duration Optional[int]

Selection animation duration.

None
value Optional[str]

Selected value.

None
with_items_borders Optional[bool]

Show borders between items.

None
kwargs Any

Additional props to set.

{}

Returns:

Name Type Description
str str

Selected value.

Source code in src/routelit_mantine/builder.py
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
def segmented_control(
    self,
    key: str,
    options: list[Union[RLOption, str]],
    *,
    auto_contrast: Optional[bool] = None,
    color: Optional[str] = None,
    disabled: Optional[bool] = None,
    format_func: Optional[Callable[[Any], str]] = None,
    full_width: Optional[bool] = None,
    on_change: Optional[Callable[[str], None]] = None,
    orientation: Optional[Literal["horizontal", "vertical"]] = None,
    radius: Optional[str] = None,
    read_only: Optional[bool] = None,
    size: Optional[str] = None,
    transition_duration: Optional[int] = None,
    value: Optional[str] = None,
    with_items_borders: Optional[bool] = None,
    **kwargs: Any,
) -> str:
    """
    Segmented control for single selection among options.

    Args:
        key (str): Explicit element key.
        options (list[Union[RLOption, str]]): Available options.
        auto_contrast (Optional[bool]): Improve contrast automatically.
        color (Optional[str]): Accent color.
        disabled (Optional[bool]): Disable interaction.
        format_func (Optional[Callable[[Any], str]]): Map option value to label.
        full_width (Optional[bool]): Make control take full width.
        on_change (Optional[Callable[[str], None]]): Change handler.
        orientation (Optional[Literal["horizontal", "vertical"]]): Orientation.
        radius (Optional[str]): Corner radius.
        read_only (Optional[bool]): Read-only state.
        size (Optional[str]): Control size.
        transition_duration (Optional[int]): Selection animation duration.
        value (Optional[str]): Selected value.
        with_items_borders (Optional[bool]): Show borders between items.
        kwargs: Additional props to set.

    Returns:
        str: Selected value.
    """
    value = self._x_radio_select(
        "segmentedcontrol",
        key,
        autoContrast=auto_contrast,
        color=color,
        disabled=disabled,
        format_func=format_func,
        fullWidth=full_width,
        on_change=on_change,
        options=options,  # type: ignore[arg-type]
        options_attr="data",
        orientation=orientation,
        radius=radius,
        readOnly=read_only,
        size=size,
        transitionDuration=transition_duration,
        value=value,
        withItemsBorders=with_items_borders,
        **kwargs,
    )
    if value is None and options and len(options) > 0:
        return options[0]["value"] if isinstance(options[0], dict) else options[0]
    return value

select(label, options, *, allow_deselect=None, auto_select_on_blur=None, check_icon_position=None, chevron_color=None, clearable=None, combobox_props=None, default_dropdown_opened=None, default_search_value=None, description=None, error=None, format_func=None, hidden_input_props=None, input_size=None, input_wrapper_order=None, key=None, label_props=None, left_section=None, left_section_props=None, left_section_width=None, limit=None, max_dropdown_height=None, nothing_found_message=None, on_change=None, pointer=None, radius=None, required=None, scroll_area_props=None, right_section=None, right_section_props=None, right_section_width=None, size=None, value=None, with_asterisk=None, with_error_styles=None, with_scroll_area=None, **kwargs)

Single-select input with search and advanced features.

Parameters:

Name Type Description Default
label str

Field label.

required
options list[Union[RLOption, str]]

Available options.

required
allow_deselect Optional[bool]

Allow clearing the selection.

None
auto_select_on_blur Optional[bool]

Auto select highlighted option on blur.

None
check_icon_position Optional[Literal['left', 'right']]

Check icon position.

None
chevron_color Optional[str]

Chevron color.

None
clearable Optional[bool]

Enable clear button.

None
combobox_props Optional[dict[str, Any]]

Combobox props.

None
default_dropdown_opened Optional[bool]

Open dropdown by default.

None
default_search_value Optional[str]

Initial search value.

None
description Optional[str]

Helper text under the label.

None
error Optional[str]

Error message.

None
format_func Optional[Callable[[Any], str]]

Map option value to label.

None
hidden_input_props Optional[dict[str, Any]]

Hidden input props.

None
input_size Optional[str]

Control size.

None
input_wrapper_order Optional[list[str]]

Order of input wrapper parts.

None
key Optional[str]

Explicit element key.

None
label_props Optional[dict[str, Any]]

Label props.

None
left_section Optional[RouteLitElement]

Left adornment.

None
left_section_props Optional[dict[str, Any]]

Left adornment props.

None
left_section_width Optional[str]

Left adornment width.

None
limit Optional[int]

Max number of options shown.

None
max_dropdown_height Optional[Union[str, int]]

Max dropdown height.

None
nothing_found_message Optional[str]

Message when search returns no results.

None
on_change Optional[Callable[[Any], None]]

Change handler.

None
pointer Optional[bool]

Use pointer cursor.

None
radius Optional[Union[str, int]]

Corner radius.

None
required Optional[bool]

Mark as required.

None
scroll_area_props Optional[dict[str, Any]]

Scroll area props.

None
right_section Optional[RouteLitElement]

Right adornment.

None
right_section_props Optional[dict[str, Any]]

Right adornment props.

None
right_section_width Optional[str]

Right adornment width.

None
size Optional[str]

Control size.

None
value Optional[Any]

Current value.

None
with_asterisk Optional[bool]

Show required asterisk.

None
with_error_styles Optional[bool]

Apply error styles.

None
with_scroll_area Optional[bool]

Wrap dropdown with scroll area.

None
kwargs Any

Additional props to set.

{}

Returns:

Name Type Description
Any Any

Selected value.

Source code in src/routelit_mantine/builder.py
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
def select(  # type: ignore[override]
    self,
    label: str,
    options: list[Union[RLOption, str]],
    *,
    allow_deselect: Optional[bool] = None,
    auto_select_on_blur: Optional[bool] = None,
    check_icon_position: Optional[Literal["left", "right"]] = None,
    chevron_color: Optional[str] = None,
    clearable: Optional[bool] = None,
    combobox_props: Optional[dict[str, Any]] = None,
    default_dropdown_opened: Optional[bool] = None,
    default_search_value: Optional[str] = None,
    description: Optional[str] = None,
    error: Optional[str] = None,
    format_func: Optional[Callable[[Any], str]] = None,
    hidden_input_props: Optional[dict[str, Any]] = None,
    input_size: Optional[str] = None,
    input_wrapper_order: Optional[list[str]] = None,
    key: Optional[str] = None,
    label_props: Optional[dict[str, Any]] = None,
    left_section: Optional[RouteLitElement] = None,
    left_section_props: Optional[dict[str, Any]] = None,
    left_section_width: Optional[str] = None,
    limit: Optional[int] = None,
    max_dropdown_height: Optional[Union[str, int]] = None,
    nothing_found_message: Optional[str] = None,
    on_change: Optional[Callable[[Any], None]] = None,
    pointer: Optional[bool] = None,
    radius: Optional[Union[str, int]] = None,
    required: Optional[bool] = None,
    scroll_area_props: Optional[dict[str, Any]] = None,
    right_section: Optional[RouteLitElement] = None,
    right_section_props: Optional[dict[str, Any]] = None,
    right_section_width: Optional[str] = None,
    size: Optional[str] = None,
    value: Optional[Any] = None,
    with_asterisk: Optional[bool] = None,
    with_error_styles: Optional[bool] = None,
    with_scroll_area: Optional[bool] = None,
    **kwargs: Any,
) -> Any:
    """
    Single-select input with search and advanced features.

    Args:
        label (str): Field label.
        options (list[Union[RLOption, str]]): Available options.
        allow_deselect (Optional[bool]): Allow clearing the selection.
        auto_select_on_blur (Optional[bool]): Auto select highlighted option on blur.
        check_icon_position (Optional[Literal["left", "right"]]): Check icon position.
        chevron_color (Optional[str]): Chevron color.
        clearable (Optional[bool]): Enable clear button.
        combobox_props (Optional[dict[str, Any]]): Combobox props.
        default_dropdown_opened (Optional[bool]): Open dropdown by default.
        default_search_value (Optional[str]): Initial search value.
        description (Optional[str]): Helper text under the label.
        error (Optional[str]): Error message.
        format_func (Optional[Callable[[Any], str]]): Map option value to label.
        hidden_input_props (Optional[dict[str, Any]]): Hidden input props.
        input_size (Optional[str]): Control size.
        input_wrapper_order (Optional[list[str]]): Order of input wrapper parts.
        key (Optional[str]): Explicit element key.
        label_props (Optional[dict[str, Any]]): Label props.
        left_section (Optional[RouteLitElement]): Left adornment.
        left_section_props (Optional[dict[str, Any]]): Left adornment props.
        left_section_width (Optional[str]): Left adornment width.
        limit (Optional[int]): Max number of options shown.
        max_dropdown_height (Optional[Union[str, int]]): Max dropdown height.
        nothing_found_message (Optional[str]): Message when search returns no results.
        on_change (Optional[Callable[[Any], None]]): Change handler.
        pointer (Optional[bool]): Use pointer cursor.
        radius (Optional[Union[str, int]]): Corner radius.
        required (Optional[bool]): Mark as required.
        scroll_area_props (Optional[dict[str, Any]]): Scroll area props.
        right_section (Optional[RouteLitElement]): Right adornment.
        right_section_props (Optional[dict[str, Any]]): Right adornment props.
        right_section_width (Optional[str]): Right adornment width.
        size (Optional[str]): Control size.
        value (Optional[Any]): Current value.
        with_asterisk (Optional[bool]): Show required asterisk.
        with_error_styles (Optional[bool]): Apply error styles.
        with_scroll_area (Optional[bool]): Wrap dropdown with scroll area.
        kwargs: Additional props to set.

    Returns:
        Any: Selected value.
    """
    return self._x_radio_select(
        "select",
        key or self._new_widget_id("select", label),
        options=options,  # type: ignore[arg-type]
        options_attr="data",
        value=value,
        on_change=on_change,
        format_func=format_func,
        label=label,
        allowDeselect=allow_deselect,
        autoSelectOnBlur=auto_select_on_blur,
        checkIconPosition=check_icon_position,
        chevronColor=chevron_color,
        clearable=clearable,
        comboboxProps=combobox_props,
        defaultDropdownOpened=default_dropdown_opened,
        defaultSearchValue=default_search_value,
        description=description,
        error=error,
        hiddenInputProps=hidden_input_props,
        inputSize=input_size,
        inputWrapperOrder=input_wrapper_order,
        labelProps=label_props,
        leftSection=left_section,
        leftSectionProps=left_section_props,
        leftSectionWidth=left_section_width,
        limit=limit,
        maxDropdownHeight=max_dropdown_height,
        nothingFoundMessage=nothing_found_message,
        pointer=pointer,
        radius=radius,
        rightSection=right_section,
        rightSectionProps=right_section_props,
        rightSectionWidth=right_section_width,
        required=required,
        scrollAreaProps=scroll_area_props,
        size=size,
        withAsterisk=with_asterisk,
        withErrorStyles=with_error_styles,
        withScrollArea=with_scroll_area,
        **kwargs,
    )

set_app_shell_props(title=None, logo=None, navbar_props=None, **kwargs)

Set the app shell props.

Parameters:

Name Type Description Default
title Optional[str]

The title of the app shell.

None
logo Optional[str]

The logo of the app shell.

None
navbar_props Optional[dict[str, Any]]

The props of the navbar.

None
kwargs Any

Additional props to set.

{}
Source code in src/routelit_mantine/builder.py
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
def set_app_shell_props(
    self,
    title: Optional[str] = None,
    logo: Optional[str] = None,
    navbar_props: Optional[dict[str, Any]] = None,
    **kwargs: Any,
) -> None:
    """
    Set the app shell props.

    Args:
        title (Optional[str]): The title of the app shell.
        logo (Optional[str]): The logo of the app shell.
        navbar_props (Optional[dict[str, Any]]): The props of the navbar.
        kwargs: Additional props to set.
    """
    self._app_shell.root_element.props.update(kwargs)
    self._app_shell.root_element.props["title"] = title
    self._app_shell.root_element.props["logo"] = logo
    self._app_shell.root_element.props["navbarProps"] = navbar_props

set_provider_props(theme, **kwargs)

Set the provider props.

Parameters:

Name Type Description Default
theme dict[str, Any]

The theme to set.

required
kwargs Any

Additional props to set.

{}
Source code in src/routelit_mantine/builder.py
 97
 98
 99
100
101
102
103
104
105
106
def set_provider_props(self, theme: dict[str, Any], **kwargs: Any) -> None:
    """
    Set the provider props.

    Args:
        theme (dict[str, Any]): The theme to set.
        kwargs: Additional props to set.
    """
    self._root.root_element.props.update(kwargs)
    self._root.root_element.props["theme"] = theme

simple_grid(*, cols=None, key=None, query_type=None, spacing=None, vertical_spacing=None, **kwargs)

Create a simplified responsive grid.

Parameters:

Name Type Description Default
cols Optional[int]

Number of columns.

None
key Optional[str]

Explicit element key.

None
query_type Optional[Literal['media', 'container']]

Responsive query type.

None
spacing Optional[str]

Spacing between items.

None
vertical_spacing Optional[str]

Vertical spacing between rows.

None
kwargs Any

Additional props to set.

{}

Returns:

Name Type Description
RLBuilder RLBuilder

A nested builder scoped to the simple grid element.

Source code in src/routelit_mantine/builder.py
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
def simple_grid(
    self,
    *,
    cols: Optional[int] = None,
    key: Optional[str] = None,
    query_type: Optional[Literal["media", "container"]] = None,
    spacing: Optional[str] = None,
    vertical_spacing: Optional[str] = None,
    **kwargs: Any,
) -> "RLBuilder":
    """
    Create a simplified responsive grid.

    Args:
        cols (Optional[int]): Number of columns.
        key (Optional[str]): Explicit element key.
        query_type (Optional[Literal["media", "container"]]): Responsive query type.
        spacing (Optional[str]): Spacing between items.
        vertical_spacing (Optional[str]): Vertical spacing between rows.
        kwargs: Additional props to set.

    Returns:
        RLBuilder: A nested builder scoped to the simple grid element.
    """
    new_element = self._create_element(
        key=key or self._new_text_id("simplegrid"),
        name="simplegrid",
        props={
            "cols": cols,
            "spacing": spacing,
            "type": query_type,
            "verticalSpacing": vertical_spacing,
            **kwargs,
        },
    )
    return cast(RLBuilder, self._build_nested_builder(new_element))

slider(label, *, disabled=None, inverted=None, key=None, label_always_on=None, marks=None, max_value=None, min_value=None, on_change=None, precision=None, restrict_to_marks=None, show_label_on_hover=None, size=None, step=None, parser=float, thumb_label=None, thumb_size=None, value=None, **kwargs)

Single-value slider input.

Parameters:

Name Type Description Default
label str

Field label.

required
disabled Optional[bool]

Disable interaction.

None
inverted Optional[bool]

Invert direction.

None
key Optional[str]

Explicit element key.

None
label_always_on Optional[bool]

Always show label above thumb.

None
marks Optional[list[RLOption]]

Marks along the slider.

None
max_value Optional[float]

Maximum value.

None
min_value Optional[float]

Minimum value.

None
on_change Optional[Callable[[float], None]]

Change handler.

None
precision Optional[int]

Decimal precision.

None
restrict_to_marks Optional[bool]

Only allow values at marks.

None
show_label_on_hover Optional[bool]

Show label when hovering.

None
size Optional[str]

Control size.

None
step Optional[float]

Step size.

None
parser Callable[[Any], Union[float, int]]

Parser for the returned value.

float
thumb_label Optional[str]

Label template for thumb.

None
thumb_size Optional[str]

Thumb size.

None
value Optional[float]

Current value.

None
kwargs Any

Additional props to set.

{}

Returns:

Type Description
Union[float, int]

Union[float, int]: Current value parsed by the provided parser.

Source code in src/routelit_mantine/builder.py
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
def slider(
    self,
    label: str,
    *,
    disabled: Optional[bool] = None,
    inverted: Optional[bool] = None,
    key: Optional[str] = None,
    label_always_on: Optional[bool] = None,
    marks: Optional[list[RLOption]] = None,
    max_value: Optional[float] = None,
    min_value: Optional[float] = None,
    on_change: Optional[Callable[[float], None]] = None,
    precision: Optional[int] = None,
    restrict_to_marks: Optional[bool] = None,
    show_label_on_hover: Optional[bool] = None,
    size: Optional[str] = None,
    step: Optional[float] = None,
    parser: Callable[[Any], Union[float, int]] = float,
    thumb_label: Optional[str] = None,
    thumb_size: Optional[str] = None,
    value: Optional[float] = None,
    **kwargs: Any,
) -> Union[float, int]:
    """
    Single-value slider input.

    Args:
        label (str): Field label.
        disabled (Optional[bool]): Disable interaction.
        inverted (Optional[bool]): Invert direction.
        key (Optional[str]): Explicit element key.
        label_always_on (Optional[bool]): Always show label above thumb.
        marks (Optional[list[RLOption]]): Marks along the slider.
        max_value (Optional[float]): Maximum value.
        min_value (Optional[float]): Minimum value.
        on_change (Optional[Callable[[float], None]]): Change handler.
        precision (Optional[int]): Decimal precision.
        restrict_to_marks (Optional[bool]): Only allow values at marks.
        show_label_on_hover (Optional[bool]): Show label when hovering.
        size (Optional[str]): Control size.
        step (Optional[float]): Step size.
        parser (Callable[[Any], Union[float, int]]): Parser for the returned value.
        thumb_label (Optional[str]): Label template for thumb.
        thumb_size (Optional[str]): Thumb size.
        value (Optional[float]): Current value.
        kwargs: Additional props to set.

    Returns:
        Union[float, int]: Current value parsed by the provided parser.
    """
    return parser(
        self._x_input(
            "slider",
            key or self._new_widget_id("slider", label),
            disabled=disabled,
            inverted=inverted,
            label=label,
            labelAlwaysOn=label_always_on,
            marks=marks,
            max=max_value,
            min=min_value,
            on_change=on_change,
            precision=precision,
            restrictToMarks=restrict_to_marks,
            showLabelOnHover=show_label_on_hover,
            size=size,
            step=step,
            thumbLabel=thumb_label,
            thumbSize=thumb_size,
            value=value,
            **kwargs,
        )
    )

space(*, h=None, key=None, v=None, **kwargs)

Insert vertical and/or horizontal space.

Parameters:

Name Type Description Default
h Optional[str]

Horizontal space size (e.g., CSS length).

None
key Optional[str]

Explicit element key.

None
v Optional[str]

Vertical space size (e.g., CSS length).

None
kwargs Any

Additional props to set.

{}
Source code in src/routelit_mantine/builder.py
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
def space(
    self,
    *,
    h: Optional[str] = None,
    key: Optional[str] = None,
    v: Optional[str] = None,
    **kwargs: Any,
) -> None:
    """
    Insert vertical and/or horizontal space.

    Args:
        h (Optional[str]): Horizontal space size (e.g., CSS length).
        key (Optional[str]): Explicit element key.
        v (Optional[str]): Vertical space size (e.g., CSS length).
        kwargs: Additional props to set.
    """
    self._create_element(
        key=key or self._new_text_id("space"),
        name="space",
        props={"h": h, "v": v, **kwargs},
    )

sparkline_chart(data, *, area_props=None, color=None, connect_nulls=None, curve_type=None, fill_opacity=None, key=None, stroke_width=None, trend_colors=None, with_gradient=None, **kwargs)

Compact sparkline chart for trends.

Parameters:

Name Type Description Default
data list[Union[int, float, None]]

Dataset.

required
area_props Optional[dict[str, Any]]

Area props.

None
color Optional[str]

Line/area color.

None
connect_nulls Optional[bool]

Connect across null values.

None
curve_type Optional[str]

Curve interpolation type.

None
fill_opacity Optional[float]

Area fill opacity.

None
key Optional[str]

Explicit element key.

None
stroke_width Optional[int]

Line width.

None
trend_colors Optional[dict[str, Any]]

Trend color overrides.

None
with_gradient Optional[bool]

Fill with gradient.

None
kwargs Any

Additional props to set.

{}

Returns:

Name Type Description
RLBuilder RLBuilder

A nested builder scoped to the sparkline element.

Source code in src/routelit_mantine/builder.py
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663
def sparkline_chart(
    self,
    data: list[Union[int, float, None]],
    *,
    area_props: Optional[dict[str, Any]] = None,
    color: Optional[str] = None,
    connect_nulls: Optional[bool] = None,
    curve_type: Optional[str] = None,
    fill_opacity: Optional[float] = None,
    key: Optional[str] = None,
    stroke_width: Optional[int] = None,
    trend_colors: Optional[dict[str, Any]] = None,
    with_gradient: Optional[bool] = None,
    **kwargs: Any,
) -> "RLBuilder":
    """
    Compact sparkline chart for trends.

    Args:
        data (list[Union[int, float, None]]): Dataset.
        area_props (Optional[dict[str, Any]]): Area props.
        color (Optional[str]): Line/area color.
        connect_nulls (Optional[bool]): Connect across null values.
        curve_type (Optional[str]): Curve interpolation type.
        fill_opacity (Optional[float]): Area fill opacity.
        key (Optional[str]): Explicit element key.
        stroke_width (Optional[int]): Line width.
        trend_colors (Optional[dict[str, Any]]): Trend color overrides.
        with_gradient (Optional[bool]): Fill with gradient.
        kwargs: Additional props to set.

    Returns:
        RLBuilder: A nested builder scoped to the sparkline element.
    """
    return self._create_builder_element(  # type: ignore[return-value]
        name="sparkline",
        key=key or self._new_text_id("sparkline"),
        props={
            "data": data,
            "areaProps": area_props,
            "color": color,
            "connectNulls": connect_nulls,
            "curveType": curve_type,
            "fillOpacity": fill_opacity,
            "strokeWidth": stroke_width,
            "trendColors": trend_colors,
            "withGradient": with_gradient,
            **kwargs,
        },
    )

spoiler(show_label='Show more', hide_label='Show less', *, key=None, initial_state=False, max_height=None, **kwargs)

Collapsible content with show/hide controls.

Parameters:

Name Type Description Default
show_label str

Label when collapsed.

'Show more'
hide_label str

Label when expanded.

'Show less'
key Optional[str]

Explicit element key.

None
initial_state bool

Initial expanded state.

False
max_height Optional[int]

Max visible height when collapsed.

None
kwargs Any

Additional props to set.

{}

Returns:

Name Type Description
RLBuilder RLBuilder

A nested builder scoped to the spoiler element.

Source code in src/routelit_mantine/builder.py
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
def spoiler(
    self,
    show_label: str = "Show more",
    hide_label: str = "Show less",
    *,
    key: Optional[str] = None,
    initial_state: bool = False,
    max_height: Optional[int] = None,
    **kwargs: Any,
) -> "RLBuilder":
    """
    Collapsible content with show/hide controls.

    Args:
        show_label (str): Label when collapsed.
        hide_label (str): Label when expanded.
        key (Optional[str]): Explicit element key.
        initial_state (bool): Initial expanded state.
        max_height (Optional[int]): Max visible height when collapsed.
        kwargs: Additional props to set.

    Returns:
        RLBuilder: A nested builder scoped to the spoiler element.
    """
    return self._create_builder_element(  # type: ignore[return-value]
        name="spoiler",
        key=key or self._new_text_id("spoiler"),
        props={
            "showLabel": show_label,
            "hideLabel": hide_label,
            "initialState": initial_state,
            "maxHeight": max_height,
            **kwargs,
        },
        virtual=True,
    )

stack(*, align=None, gap=None, justify=None, key=None, **kwargs)

Stack children vertically with spacing and alignment.

Parameters:

Name Type Description Default
align Optional[str]

Horizontal alignment of items.

None
gap Optional[str]

Spacing between items.

None
justify Optional[str]

Vertical alignment of items.

None
key Optional[str]

Explicit element key.

None
kwargs Any

Additional props to set.

{}

Returns:

Name Type Description
RLBuilder RLBuilder

A nested builder scoped to the stack element.

Source code in src/routelit_mantine/builder.py
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
def stack(
    self,
    *,
    align: Optional[str] = None,
    gap: Optional[str] = None,
    justify: Optional[str] = None,
    key: Optional[str] = None,
    **kwargs: Any,
) -> "RLBuilder":
    """
    Stack children vertically with spacing and alignment.

    Args:
        align (Optional[str]): Horizontal alignment of items.
        gap (Optional[str]): Spacing between items.
        justify (Optional[str]): Vertical alignment of items.
        key (Optional[str]): Explicit element key.
        kwargs: Additional props to set.

    Returns:
        RLBuilder: A nested builder scoped to the stack element.
    """
    new_element = self._create_element(
        key=key or self._new_text_id("stack"),
        name="stack",
        props={
            "align": align,
            "gap": gap,
            "justify": justify,
            **kwargs,
        },
    )
    return cast(RLBuilder, self._build_nested_builder(new_element))

switch(label, *, checked=False, color=None, description=None, disabled=None, error=None, key=None, label_position=None, on_change=None, radius=None, size=None, thumb_icon=None, with_thumb_indicator=None, **kwargs)

Boolean input rendered as a switch.

Parameters:

Name Type Description Default
label str

Field label.

required
checked bool

Initial checked state.

False
color Optional[str]

Accent color.

None
description Optional[str]

Helper text under the label.

None
disabled Optional[bool]

Disable interaction.

None
error Optional[str]

Error message.

None
key Optional[str]

Explicit element key.

None
label_position Optional[Literal['left', 'right']]

Label position.

None
on_change Optional[Callable[[bool], None]]

Change handler.

None
radius Optional[str]

Corner radius.

None
size Optional[str]

Control size.

None
thumb_icon Optional[RouteLitElement]

Icon inside the thumb.

None
with_thumb_indicator Optional[bool]

Show indicator inside the thumb.

None
kwargs Any

Additional props to set.

{}

Returns:

Name Type Description
bool bool

Current value.

Source code in src/routelit_mantine/builder.py
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
def switch(
    self,
    label: str,
    *,
    checked: bool = False,
    color: Optional[str] = None,
    description: Optional[str] = None,
    disabled: Optional[bool] = None,
    error: Optional[str] = None,
    key: Optional[str] = None,
    label_position: Optional[Literal["left", "right"]] = None,
    on_change: Optional[Callable[[bool], None]] = None,
    radius: Optional[str] = None,
    size: Optional[str] = None,
    thumb_icon: Optional[RouteLitElement] = None,
    with_thumb_indicator: Optional[bool] = None,
    **kwargs: Any,
) -> bool:
    """
    Boolean input rendered as a switch.

    Args:
        label (str): Field label.
        checked (bool): Initial checked state.
        color (Optional[str]): Accent color.
        description (Optional[str]): Helper text under the label.
        disabled (Optional[bool]): Disable interaction.
        error (Optional[str]): Error message.
        key (Optional[str]): Explicit element key.
        label_position (Optional[Literal["left", "right"]]): Label position.
        on_change (Optional[Callable[[bool], None]]): Change handler.
        radius (Optional[str]): Corner radius.
        size (Optional[str]): Control size.
        thumb_icon (Optional[RouteLitElement]): Icon inside the thumb.
        with_thumb_indicator (Optional[bool]): Show indicator inside the thumb.
        kwargs: Additional props to set.

    Returns:
        bool: Current value.
    """
    return self._x_checkbox(
        "switch",
        key or self._new_widget_id("switch", label),
        checked=checked,
        color=color,
        description=description,
        disabled=disabled,
        error=error,
        label=label,
        labelPosition=label_position,
        on_change=on_change,
        radius=radius,
        size=size,
        thumbIcon=thumb_icon,
        withThumbIndicator=with_thumb_indicator,
        **kwargs,
    )

switch_group(label, options, *, description=None, error=None, format_func=None, group_props=None, key=None, on_change=None, read_only=None, required=None, size=None, value=None, with_asterisk=None, **kwargs)

Multiple selection using a group of switches.

Parameters:

Name Type Description Default
label str

Group label.

required
options list[Union[RLOption, str]]

Available options.

required
description Optional[str]

Helper text under the label.

None
error Optional[str]

Error message.

None
format_func Optional[Callable[[Any], str]]

Map option value to label.

None
group_props Optional[dict[str, Any]]

Extra props for the group container.

None
key Optional[str]

Explicit element key.

None
on_change Optional[Callable[[list[str]], None]]

Change handler.

None
read_only Optional[bool]

Read-only state.

None
required Optional[bool]

Mark as required.

None
size Optional[str]

Control size.

None
value Optional[list[str]]

Selected values.

None
with_asterisk Optional[bool]

Show required asterisk.

None
kwargs Any

Additional props to set.

{}

Returns:

Type Description
list[str]

list[str]: Selected values.

Source code in src/routelit_mantine/builder.py
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
def switch_group(
    self,
    label: str,
    options: list[Union[RLOption, str]],
    *,
    description: Optional[str] = None,
    error: Optional[str] = None,
    format_func: Optional[Callable[[Any], str]] = None,
    group_props: Optional[dict[str, Any]] = None,
    key: Optional[str] = None,
    on_change: Optional[Callable[[list[str]], None]] = None,
    read_only: Optional[bool] = None,
    required: Optional[bool] = None,
    size: Optional[str] = None,
    value: Optional[list[str]] = None,
    with_asterisk: Optional[bool] = None,
    **kwargs: Any,
) -> list[str]:
    """
    Multiple selection using a group of switches.

    Args:
        label (str): Group label.
        options (list[Union[RLOption, str]]): Available options.
        description (Optional[str]): Helper text under the label.
        error (Optional[str]): Error message.
        format_func (Optional[Callable[[Any], str]]): Map option value to label.
        group_props (Optional[dict[str, Any]]): Extra props for the group container.
        key (Optional[str]): Explicit element key.
        on_change (Optional[Callable[[list[str]], None]]): Change handler.
        read_only (Optional[bool]): Read-only state.
        required (Optional[bool]): Mark as required.
        size (Optional[str]): Control size.
        value (Optional[list[str]]): Selected values.
        with_asterisk (Optional[bool]): Show required asterisk.
        kwargs: Additional props to set.

    Returns:
        list[str]: Selected values.
    """
    return self._x_checkbox_group(
        "switchgroup",
        key or self._new_widget_id("switch-group", label),
        description=description,
        error=error,
        format_func=format_func,
        groupProps=group_props,
        label=label,
        on_change=on_change,
        options=options,  # type: ignore[arg-type]
        readOnly=read_only,
        required=required,
        size=size,
        value=value,
        withAsterisk=with_asterisk,
        **kwargs,
    )

tab(value, label=None, color=None, left_section=None, right_section=None, size=None, keep_mounted=None, **kwargs) staticmethod

Helper to create an MTTab configuration object. Used to describe the props for each tab in the tabs function.

Parameters:

Name Type Description Default
value str

Tab value.

required
label Optional[str]

Tab label.

None
color Optional[str]

Accent color.

None
left_section Optional[RouteLitElement]

Left adornment for tab.

None
right_section Optional[RouteLitElement]

Right adornment for tab.

None
size Optional[Union[str, int]]

Size for the tab.

None
keep_mounted Optional[bool]

Keep panel mounted when inactive.

None
kwargs Any

Additional props to set.

{}

Returns:

Name Type Description
MTTab MTTab

Tab configuration object.

Source code in src/routelit_mantine/builder.py
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
@staticmethod
def tab(
    value: str,
    label: Optional[str] = None,
    color: Optional[str] = None,
    left_section: Optional[RouteLitElement] = None,
    right_section: Optional[RouteLitElement] = None,
    size: Optional[Union[str, int]] = None,
    keep_mounted: Optional[bool] = None,
    **kwargs: Any,
) -> MTTab:
    """
    Helper to create an `MTTab` configuration object.
    Used to describe the props for each tab in the `tabs` function.

    Args:
        value (str): Tab value.
        label (Optional[str]): Tab label.
        color (Optional[str]): Accent color.
        left_section (Optional[RouteLitElement]): Left adornment for tab.
        right_section (Optional[RouteLitElement]): Right adornment for tab.
        size (Optional[Union[str, int]]): Size for the tab.
        keep_mounted (Optional[bool]): Keep panel mounted when inactive.
        kwargs: Additional props to set.

    Returns:
        MTTab: Tab configuration object.
    """
    return MTTab(  # type: ignore[no-any-return]
        value=value,
        label=label,
        color=color,
        left_section=left_section,
        right_section=right_section,
        size=size,
        keep_mounted=keep_mounted,
        **kwargs,  # type: ignore[typeddict-item]
    )

table(key=None, *, body=None, caption=None, head=None, foot=None, sticky_header=None, **kwargs)

Data table with optional head, body, foot and caption.

Parameters:

Name Type Description Default
key Optional[str]

Explicit element key.

None
body Optional[list[list[Any]]]

Table body rows.

None
caption Optional[str]

Table caption.

None
head Optional[list[str]]

Header row cells.

None
foot Optional[list[str]]

Footer row cells.

None
sticky_header Optional[bool]

Make header sticky when scrolling.

None
kwargs Any

Additional props to set.

{}

Returns:

Name Type Description
RLBuilder RLBuilder

A nested builder scoped to the table element.

Source code in src/routelit_mantine/builder.py
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
def table(
    self,
    key: Optional[str] = None,
    *,
    body: Optional[list[list[Any]]] = None,
    caption: Optional[str] = None,
    head: Optional[list[str]] = None,
    foot: Optional[list[str]] = None,
    sticky_header: Optional[bool] = None,
    **kwargs: Any,
) -> "RLBuilder":
    """
    Data table with optional head, body, foot and caption.

    Args:
        key (Optional[str]): Explicit element key.
        body (Optional[list[list[Any]]]): Table body rows.
        caption (Optional[str]): Table caption.
        head (Optional[list[str]]): Header row cells.
        foot (Optional[list[str]]): Footer row cells.
        sticky_header (Optional[bool]): Make header sticky when scrolling.
        kwargs: Additional props to set.

    Returns:
        RLBuilder: A nested builder scoped to the table element.
    """
    data = {
        "body": body,
        "caption": caption,
        "head": head,
        "foot": foot,
    }
    return self._create_builder_element(  # type: ignore[return-value]
        name="table",
        key=key or self._new_text_id("table"),
        props={"data": data, "stickyHeader": sticky_header, **kwargs},
    )

table_body(key=None, **kwargs)

Create a table body section.

Parameters:

Name Type Description Default
key Optional[str]

Explicit element key.

None
kwargs Any

Additional props to set.

{}

Returns:

Name Type Description
RLBuilder RLBuilder

A nested builder scoped to the body section.

Source code in src/routelit_mantine/builder.py
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
def table_body(
    self,
    key: Optional[str] = None,
    **kwargs: Any,
) -> "RLBuilder":
    """
    Create a table body section.

    Args:
        key (Optional[str]): Explicit element key.
        kwargs: Additional props to set.

    Returns:
        RLBuilder: A nested builder scoped to the body section.
    """
    return self._create_builder_element(  # type: ignore[return-value]
        name="tablebody",
        key=key or self._new_text_id("tablebody"),
        props=kwargs,
        virtual=True,
    )

table_caption(text, *, key=None, **kwargs)

Add a caption to the current table.

Parameters:

Name Type Description Default
text str

Caption text.

required
key Optional[str]

Explicit element key.

None
kwargs Any

Additional props to set.

{}
Source code in src/routelit_mantine/builder.py
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
def table_caption(
    self,
    text: str,
    *,
    key: Optional[str] = None,
    **kwargs: Any,
) -> None:
    """
    Add a caption to the current table.

    Args:
        text (str): Caption text.
        key (Optional[str]): Explicit element key.
        kwargs: Additional props to set.
    """
    self._create_element(
        name="tablecaption",
        key=key or self._new_text_id("tablecaption"),
        props={"children": text, **kwargs},
        virtual=True,
    )

table_cell(text=None, *, key=None, **kwargs)

Create a table cell.

Parameters:

Name Type Description Default
text Optional[str]

Cell text content.

None
key Optional[str]

Explicit element key.

None
kwargs Any

Additional props to set.

{}

Returns:

Name Type Description
RLBuilder RLBuilder

A nested builder scoped to the cell.

Source code in src/routelit_mantine/builder.py
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
def table_cell(
    self,
    text: Optional[str] = None,
    *,
    key: Optional[str] = None,
    **kwargs: Any,
) -> "RLBuilder":
    """
    Create a table cell.

    Args:
        text (Optional[str]): Cell text content.
        key (Optional[str]): Explicit element key.
        kwargs: Additional props to set.

    Returns:
        RLBuilder: A nested builder scoped to the cell.
    """
    return self._create_builder_element(  # type: ignore[return-value]
        name="tablecell",
        key=key or self._new_text_id("tablecell"),
        props={"children": text, **kwargs},
        virtual=True,
    )

table_foot(key=None, **kwargs)

Create a table foot section.

Parameters:

Name Type Description Default
key Optional[str]

Explicit element key.

None
kwargs Any

Additional props to set.

{}

Returns:

Name Type Description
RLBuilder RLBuilder

A nested builder scoped to the foot section.

Source code in src/routelit_mantine/builder.py
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
def table_foot(
    self,
    key: Optional[str] = None,
    **kwargs: Any,
) -> "RLBuilder":
    """
    Create a table foot section.

    Args:
        key (Optional[str]): Explicit element key.
        kwargs: Additional props to set.

    Returns:
        RLBuilder: A nested builder scoped to the foot section.
    """
    return self._create_builder_element(  # type: ignore[return-value]
        name="tablefoot",
        key=key or self._new_text_id("tablefoot"),
        props=kwargs,
        virtual=True,
    )

table_head(key=None, **kwargs)

Create a table head section.

Parameters:

Name Type Description Default
key Optional[str]

Explicit element key.

None
kwargs Any

Additional props to set.

{}

Returns:

Name Type Description
RLBuilder RLBuilder

A nested builder scoped to the head section.

Source code in src/routelit_mantine/builder.py
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
def table_head(
    self,
    key: Optional[str] = None,
    **kwargs: Any,
) -> "RLBuilder":
    """
    Create a table head section.

    Args:
        key (Optional[str]): Explicit element key.
        kwargs: Additional props to set.

    Returns:
        RLBuilder: A nested builder scoped to the head section.
    """
    return self._create_builder_element(  # type: ignore[return-value]
        name="tablehead",
        key=key or self._new_text_id("tablehead"),
        props=kwargs,
        virtual=True,
    )

table_header(text=None, *, key=None, **kwargs)

Create a table header cell.

Parameters:

Name Type Description Default
text Optional[str]

Header text content.

None
key Optional[str]

Explicit element key.

None
kwargs Any

Additional props to set.

{}

Returns:

Name Type Description
RLBuilder RLBuilder

A nested builder scoped to the header cell.

Source code in src/routelit_mantine/builder.py
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
def table_header(
    self,
    text: Optional[str] = None,
    *,
    key: Optional[str] = None,
    **kwargs: Any,
) -> "RLBuilder":
    """
    Create a table header cell.

    Args:
        text (Optional[str]): Header text content.
        key (Optional[str]): Explicit element key.
        kwargs: Additional props to set.

    Returns:
        RLBuilder: A nested builder scoped to the header cell.
    """
    return self._create_builder_element(  # type: ignore[return-value]
        name="tableheader",
        key=key or self._new_text_id("tableheader"),
        props={"children": text, **kwargs},
        virtual=True,
    )

table_row(key=None, **kwargs)

Create a table row.

Parameters:

Name Type Description Default
key Optional[str]

Explicit element key.

None
kwargs Any

Additional props to set.

{}

Returns:

Name Type Description
RLBuilder RLBuilder

A nested builder scoped to the row.

Source code in src/routelit_mantine/builder.py
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
def table_row(
    self,
    key: Optional[str] = None,
    **kwargs: Any,
) -> "RLBuilder":
    """
    Create a table row.

    Args:
        key (Optional[str]): Explicit element key.
        kwargs: Additional props to set.

    Returns:
        RLBuilder: A nested builder scoped to the row.
    """
    return self._create_builder_element(  # type: ignore[return-value]
        name="tablerow",
        key=key or self._new_text_id("tablerow"),
        props=kwargs,
        virtual=True,
    )

table_scroll_container(*, key=None, max_height=None, max_width=None, min_height=None, min_width=None, **kwargs)

Scrollable container for large tables.

Parameters:

Name Type Description Default
key Optional[str]

Explicit element key.

None
max_height Optional[Union[str, int]]

Maximum height.

None
max_width Optional[Union[str, int]]

Maximum width.

None
min_height Optional[Union[str, int]]

Minimum height.

None
min_width Optional[Union[str, int]]

Minimum width.

None
kwargs Any

Additional props to set.

{}

Returns:

Name Type Description
RLBuilder RLBuilder

A nested builder scoped to the scroll container.

Source code in src/routelit_mantine/builder.py
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
def table_scroll_container(
    self,
    *,
    key: Optional[str] = None,
    max_height: Optional[Union[str, int]] = None,
    max_width: Optional[Union[str, int]] = None,
    min_height: Optional[Union[str, int]] = None,
    min_width: Optional[Union[str, int]] = None,
    **kwargs: Any,
) -> "RLBuilder":
    """
    Scrollable container for large tables.

    Args:
        key (Optional[str]): Explicit element key.
        max_height (Optional[Union[str, int]]): Maximum height.
        max_width (Optional[Union[str, int]]): Maximum width.
        min_height (Optional[Union[str, int]]): Minimum height.
        min_width (Optional[Union[str, int]]): Minimum width.
        kwargs: Additional props to set.

    Returns:
        RLBuilder: A nested builder scoped to the scroll container.
    """
    return self._create_builder_element(  # type: ignore[return-value]
        name="tablescrollcontainer",
        key=key or self._new_text_id("tablescrollcontainer"),
        props={
            "maxHeight": max_height,
            "maxWidth": max_width,
            "minHeight": min_height,
            "minWidth": min_width,
            **kwargs,
        },
        virtual=True,
    )

tabs(tabs, *, activate_tab_with_keyboard=None, allow_tab_deactivation=None, auto_contrast=None, color=None, default_value=None, inverted=None, keep_mounted=None, key=None, loop=None, orientation=None, placement=None, radius=None, tablist_grow=None, tablist_justify=None, variant=None, **kwargs)

Tabs component with a tablist and corresponding tab panels.

Parameters:

Name Type Description Default
tabs list[Union[MTTab, str]]

Tabs configuration or values.

required
activate_tab_with_keyboard Optional[bool]

Enable keyboard navigation.

None
allow_tab_deactivation Optional[bool]

Allow deactivating active tab.

None
auto_contrast Optional[bool]

Improve contrast automatically.

None
color Optional[str]

Accent color.

None
default_value Optional[str]

Initially selected tab value.

None
inverted Optional[bool]

Invert styles.

None
keep_mounted Optional[bool]

Keep inactive panels mounted.

None
key Optional[str]

Explicit element key.

None
loop Optional[bool]

Loop focus within tabs.

None
orientation Optional[Literal['horizontal', 'vertical']]

Orientation.

None
placement Optional[Literal['left', 'right']]

Placement of tabs relative to panels.

None
radius Optional[Union[str, int]]

Corner radius.

None
tablist_grow Optional[bool]

Make tablist items grow.

None
tablist_justify Optional[str]

Tablist justification.

None
variant Optional[Literal['default', 'outline', 'pills']]

Visual variant.

None
kwargs Any

Additional props to set.

{}

Returns:

Type Description
tuple[RLBuilder, ...]

tuple[RLBuilder, ...]: Panel builders, one per tab value.

Example:

tab1, tab2 = ui.tabs(
    tabs=[
        ui.tab(value="tab1", label="Tab 1"),
        "Tab 2",
    ],
    default_value="tab1",
    variant="outline",
)
with tab1:
    ui.text("Tab body 1")
with tab2:
    ui.text("Tab body 2")
Source code in src/routelit_mantine/builder.py
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
def tabs(
    self,
    tabs: list[Union[MTTab, str]],
    *,
    activate_tab_with_keyboard: Optional[bool] = None,
    allow_tab_deactivation: Optional[bool] = None,
    auto_contrast: Optional[bool] = None,
    color: Optional[str] = None,
    default_value: Optional[str] = None,
    inverted: Optional[bool] = None,
    keep_mounted: Optional[bool] = None,
    key: Optional[str] = None,
    loop: Optional[bool] = None,
    orientation: Optional[Literal["horizontal", "vertical"]] = None,
    placement: Optional[Literal["left", "right"]] = None,
    radius: Optional[Union[str, int]] = None,
    tablist_grow: Optional[bool] = None,
    tablist_justify: Optional[str] = None,
    variant: Optional[Literal["default", "outline", "pills"]] = None,
    **kwargs: Any,
) -> tuple["RLBuilder", ...]:
    """
    Tabs component with a tablist and corresponding tab panels.

    Args:
        tabs (list[Union[MTTab, str]]): Tabs configuration or values.
        activate_tab_with_keyboard (Optional[bool]): Enable keyboard navigation.
        allow_tab_deactivation (Optional[bool]): Allow deactivating active tab.
        auto_contrast (Optional[bool]): Improve contrast automatically.
        color (Optional[str]): Accent color.
        default_value (Optional[str]): Initially selected tab value.
        inverted (Optional[bool]): Invert styles.
        keep_mounted (Optional[bool]): Keep inactive panels mounted.
        key (Optional[str]): Explicit element key.
        loop (Optional[bool]): Loop focus within tabs.
        orientation (Optional[Literal["horizontal", "vertical"]]): Orientation.
        placement (Optional[Literal["left", "right"]]): Placement of tabs relative to panels.
        radius (Optional[Union[str, int]]): Corner radius.
        tablist_grow (Optional[bool]): Make tablist items grow.
        tablist_justify (Optional[str]): Tablist justification.
        variant (Optional[Literal["default", "outline", "pills"]]): Visual variant.
        kwargs: Additional props to set.

    Returns:
        tuple[RLBuilder, ...]: Panel builders, one per tab value.

    Example:
    ```python
    tab1, tab2 = ui.tabs(
        tabs=[
            ui.tab(value="tab1", label="Tab 1"),
            "Tab 2",
        ],
        default_value="tab1",
        variant="outline",
    )
    with tab1:
        ui.text("Tab body 1")
    with tab2:
        ui.text("Tab body 2")
    ```
    """
    default_value = default_value or (
        (tabs[0]["value"] if isinstance(tabs[0], dict) else tabs[0]) if tabs and len(tabs) > 0 else None
    )
    tabs_root = self._build_nested_builder(
        self._create_element(
            key=key or self._new_text_id("tabs"),
            name="tabs",
            props={
                "activateTabWithKeyboard": activate_tab_with_keyboard,
                "allowTabDeactivation": allow_tab_deactivation,
                "autoContrast": auto_contrast,
                "color": color,
                "defaultValue": default_value,
                "inverted": inverted,
                "keepMounted": keep_mounted,
                "loop": loop,
                "orientation": orientation,
                "placement": placement,
                "radius": radius,
                "variant": variant,
                **kwargs,
            },
            virtual=True,
        )
    )
    tabs_panels = []
    with tabs_root:
        tab_list = self._build_nested_builder(
            self._create_element(
                key=self._new_text_id("tablist"),
                name="tablist",
                props={
                    "grow": tablist_grow,
                    "justify": tablist_justify,
                },
                virtual=True,
            )
        )
        for tab in tabs:
            tab_props = {"value": tab} if isinstance(tab, str) else tab
            keep_mounted_val = tab_props.pop("keep_mounted", None)
            keep_mounted = keep_mounted_val if isinstance(keep_mounted_val, (bool, type(None))) else None
            left_section = tab_props.pop("left_section", None)
            right_section = tab_props.pop("right_section", None)
            label = tab_props.pop("label", None)
            tab_props["children"] = label or tab_props["value"]
            if left_section:
                tab_props["leftSection"] = left_section  # type: ignore[assignment, arg-type]
            if right_section:
                tab_props["rightSection"] = right_section  # type: ignore[assignment, arg-type]
            with tab_list:
                self._create_element(
                    key=self._new_text_id("tab"),
                    name="tab",
                    props=tab_props,  # type: ignore[arg-type]
                    virtual=True,
                )
            tabs_panels.append(
                self._build_nested_builder(
                    self._create_element(
                        key=self._new_text_id("tabpanel"),
                        name="tabpanel",
                        props={
                            "value": tab_props["value"],
                            "keepMounted": keep_mounted,
                        },
                        virtual=True,
                    )
                )
            )
    return tuple(tabs_panels)  # type: ignore[arg-type]

tags_input(label, data, *, accept_value_on_blur=None, allow_duplicates=None, clear_button_props=None, clearable=None, combobox_props=None, default_dropdown_opened=None, default_search_value=None, description=None, description_props=None, disabled=None, dropdown_opened=None, error=None, error_props=None, hidden_input_props=None, hidden_input_values_divider=None, input_size=None, input_wrapper_order=None, key=None, label_props=None, left_section=None, left_section_props=None, left_section_width=None, limit=None, max_dropdown_height=None, max_tags=None, on_change=None, pointer=None, radius=None, required=None, right_section=None, right_section_props=None, right_section_width=None, scroll_area_props=None, search_value=None, select_first_option_on_change=None, size=None, split_chars=None, value=None, with_asterisk=None, with_error_styles=None, with_scroll_area=None, **kwargs)

Free-form tags input with autocomplete suggestions.

Allows typing new tags and selecting from provided options. Supports grouping of options and various UI customizations.

Parameters:

Name Type Description Default
label str

Field label.

required
data list[Union[RLOption, GroupOption, str]]

Available options and/or groups.

required
accept_value_on_blur Optional[bool]

Add current value on blur.

None
allow_duplicates Optional[bool]

Allow duplicate tags.

None
clear_button_props Optional[dict[str, Any]]

Props for the clear button.

None
clearable Optional[bool]

Show clear button to remove all values.

None
combobox_props Optional[dict[str, Any]]

Props passed to the underlying combobox.

None
default_dropdown_opened Optional[bool]

Initial dropdown state.

None
default_search_value Optional[str]

Initial search query.

None
description Optional[str]

Helper text under the label.

None
description_props Optional[dict[str, Any]]

Props for the description element.

None
disabled Optional[bool]

Disable input interaction.

None
dropdown_opened Optional[bool]

Controlled dropdown open state.

None
error Optional[str]

Error message.

None
error_props Optional[dict[str, Any]]

Props for the error element.

None
hidden_input_props Optional[dict[str, Any]]

Props for the hidden form input.

None
hidden_input_values_divider Optional[str]

Divider for hidden input serialization.

None
input_size Optional[str]

Input size variant.

None
input_wrapper_order Optional[list[str]]

Order of input wrapper parts.

None
key Optional[str]

Explicit element key.

None
label_props Optional[dict[str, Any]]

Props for the label element.

None
left_section Optional[RouteLitElement]

Left section content.

None
left_section_props Optional[dict[str, Any]]

Props for the left section wrapper.

None
left_section_width Optional[str]

Width of the left section.

None
limit Optional[int]

Max number of items displayed in dropdown.

None
max_dropdown_height Optional[Union[str, int]]

Max height of the dropdown.

None
max_tags Optional[int]

Max number of tags that can be added.

None
on_change Optional[Callable[[list[str]], None]]

Change handler.

None
pointer Optional[bool]

Show pointer cursor on hover.

None
radius Optional[Union[str, int]]

Corner radius.

None
required Optional[bool]

Mark field as required.

None
right_section Optional[str]

Right section content.

None
right_section_props Optional[dict[str, Any]]

Props for the right section wrapper.

None
right_section_width Optional[str]

Width of the right section.

None
scroll_area_props Optional[dict[str, Any]]

Props for dropdown scroll area.

None
search_value Optional[str]

Controlled search query value.

None
select_first_option_on_change Optional[bool]

Auto-select first option on change.

None
size Optional[str]

Control size.

None
split_chars Optional[list[str]]

Characters that split input into tags.

None
value Optional[list[str]]

Current value (list of tags).

None
with_asterisk Optional[bool]

Show required asterisk.

None
with_error_styles Optional[bool]

Apply error styles when error is set.

None
with_scroll_area Optional[bool]

Wrap dropdown list in a scroll area.

None
kwargs Any

Additional props to set.

{}

Returns:

Type Description
list[str]

list[str]: Current list of tags.

Source code in src/routelit_mantine/builder.py
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
def tags_input(
    self,
    label: str,
    data: list[Union[RLOption, GroupOption, str]],
    *,
    accept_value_on_blur: Optional[bool] = None,
    allow_duplicates: Optional[bool] = None,
    clear_button_props: Optional[dict[str, Any]] = None,
    clearable: Optional[bool] = None,
    combobox_props: Optional[dict[str, Any]] = None,
    default_dropdown_opened: Optional[bool] = None,
    default_search_value: Optional[str] = None,
    description: Optional[str] = None,
    description_props: Optional[dict[str, Any]] = None,
    disabled: Optional[bool] = None,
    dropdown_opened: Optional[bool] = None,
    error: Optional[str] = None,
    error_props: Optional[dict[str, Any]] = None,
    hidden_input_props: Optional[dict[str, Any]] = None,
    hidden_input_values_divider: Optional[str] = None,
    input_size: Optional[str] = None,
    input_wrapper_order: Optional[list[str]] = None,
    key: Optional[str] = None,
    label_props: Optional[dict[str, Any]] = None,
    left_section: Optional[RouteLitElement] = None,
    left_section_props: Optional[dict[str, Any]] = None,
    left_section_width: Optional[str] = None,
    limit: Optional[int] = None,
    max_dropdown_height: Optional[Union[str, int]] = None,
    max_tags: Optional[int] = None,
    on_change: Optional[Callable[[list[str]], None]] = None,
    pointer: Optional[bool] = None,
    radius: Optional[Union[str, int]] = None,
    required: Optional[bool] = None,
    right_section: Optional[str] = None,
    right_section_props: Optional[dict[str, Any]] = None,
    right_section_width: Optional[str] = None,
    scroll_area_props: Optional[dict[str, Any]] = None,
    search_value: Optional[str] = None,
    select_first_option_on_change: Optional[bool] = None,
    size: Optional[str] = None,
    split_chars: Optional[list[str]] = None,
    value: Optional[list[str]] = None,
    with_asterisk: Optional[bool] = None,
    with_error_styles: Optional[bool] = None,
    with_scroll_area: Optional[bool] = None,
    **kwargs: Any,
) -> list[str]:
    """
    Free-form tags input with autocomplete suggestions.

    Allows typing new tags and selecting from provided options. Supports grouping
    of options and various UI customizations.

    Args:
        label (str): Field label.
        data (list[Union[RLOption, GroupOption, str]]): Available options and/or groups.
        accept_value_on_blur (Optional[bool]): Add current value on blur.
        allow_duplicates (Optional[bool]): Allow duplicate tags.
        clear_button_props (Optional[dict[str, Any]]): Props for the clear button.
        clearable (Optional[bool]): Show clear button to remove all values.
        combobox_props (Optional[dict[str, Any]]): Props passed to the underlying combobox.
        default_dropdown_opened (Optional[bool]): Initial dropdown state.
        default_search_value (Optional[str]): Initial search query.
        description (Optional[str]): Helper text under the label.
        description_props (Optional[dict[str, Any]]): Props for the description element.
        disabled (Optional[bool]): Disable input interaction.
        dropdown_opened (Optional[bool]): Controlled dropdown open state.
        error (Optional[str]): Error message.
        error_props (Optional[dict[str, Any]]): Props for the error element.
        hidden_input_props (Optional[dict[str, Any]]): Props for the hidden form input.
        hidden_input_values_divider (Optional[str]): Divider for hidden input serialization.
        input_size (Optional[str]): Input size variant.
        input_wrapper_order (Optional[list[str]]): Order of input wrapper parts.
        key (Optional[str]): Explicit element key.
        label_props (Optional[dict[str, Any]]): Props for the label element.
        left_section (Optional[RouteLitElement]): Left section content.
        left_section_props (Optional[dict[str, Any]]): Props for the left section wrapper.
        left_section_width (Optional[str]): Width of the left section.
        limit (Optional[int]): Max number of items displayed in dropdown.
        max_dropdown_height (Optional[Union[str, int]]): Max height of the dropdown.
        max_tags (Optional[int]): Max number of tags that can be added.
        on_change (Optional[Callable[[list[str]], None]]): Change handler.
        pointer (Optional[bool]): Show pointer cursor on hover.
        radius (Optional[Union[str, int]]): Corner radius.
        required (Optional[bool]): Mark field as required.
        right_section (Optional[str]): Right section content.
        right_section_props (Optional[dict[str, Any]]): Props for the right section wrapper.
        right_section_width (Optional[str]): Width of the right section.
        scroll_area_props (Optional[dict[str, Any]]): Props for dropdown scroll area.
        search_value (Optional[str]): Controlled search query value.
        select_first_option_on_change (Optional[bool]): Auto-select first option on change.
        size (Optional[str]): Control size.
        split_chars (Optional[list[str]]): Characters that split input into tags.
        value (Optional[list[str]]): Current value (list of tags).
        with_asterisk (Optional[bool]): Show required asterisk.
        with_error_styles (Optional[bool]): Apply error styles when error is set.
        with_scroll_area (Optional[bool]): Wrap dropdown list in a scroll area.
        kwargs: Additional props to set.

    Returns:
        list[str]: Current list of tags.
    """
    return cast(
        list[str],
        self._x_checkbox_group(
            "tagsinput",
            key or self._new_widget_id("tagsinput", label),
            acceptValueOnBlur=accept_value_on_blur,
            allowDuplicates=allow_duplicates,
            clearButtonProps=clear_button_props,
            clearable=clearable,
            comboboxProps=combobox_props,
            defaultDropdownOpened=default_dropdown_opened,
            defaultSearchValue=default_search_value,
            description=description,
            descriptionProps=description_props,
            disabled=disabled,
            dropdownOpened=dropdown_opened,
            error=error,
            errorProps=error_props,
            hiddenInputProps=hidden_input_props,
            hiddenInputValuesDivider=hidden_input_values_divider,
            inputSize=input_size,
            inputWrapperOrder=input_wrapper_order,
            label=label,
            labelProps=label_props,
            leftSection=left_section,
            leftSectionProps=left_section_props,
            leftSectionWidth=left_section_width,
            limit=limit,
            maxDropdownHeight=max_dropdown_height,
            maxTags=max_tags,
            on_change=on_change,
            options=data,  # type: ignore[arg-type]
            options_attr="data",
            pointer=pointer,
            radius=radius,
            required=required,
            rightSection=right_section,
            rightSectionProps=right_section_props,
            rightSectionWidth=right_section_width,
            scrollAreaProps=scroll_area_props,
            searchValue=search_value,
            selectFirstOptionOnChange=select_first_option_on_change,
            size=size,
            splitChars=split_chars,
            value=value,
            withAsterisk=with_asterisk,
            withErrorStyles=with_error_styles,
            withScrollArea=with_scroll_area,
            **kwargs,
        ),
    )

text(text, *, key=None, **kwargs)

Render plain text content.

Parameters:

Name Type Description Default
text str

Text content.

required
key Optional[str]

Explicit element key.

None
kwargs Any

Additional props to set.

{}
Source code in src/routelit_mantine/builder.py
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
def text(  # type: ignore[override]
    self,
    text: str,
    *,
    key: Optional[str] = None,
    **kwargs: Any,
) -> None:
    """
    Render plain text content.

    Args:
        text (str): Text content.
        key (Optional[str]): Explicit element key.
        kwargs: Additional props to set.
    """
    self._create_element(
        name="text",
        key=key or self._new_text_id("text"),
        props={"children": text, **kwargs},
    )

text_input(label, *, description=None, disabled=None, error=None, key=None, left_section=None, left_section_props=None, left_section_width=None, on_change=None, required=None, right_section=None, right_section_props=None, right_section_width=None, size=None, value=None, with_asterisk=None, **kwargs)

Single-line text input.

Parameters:

Name Type Description Default
label str

Field label.

required
description Optional[str]

Helper text under the label.

None
disabled Optional[bool]

Disable input interaction.

None
error Optional[str]

Error message.

None
key Optional[str]

Explicit element key.

None
left_section Optional[RouteLitElement]

Left adornment.

None
left_section_props Optional[dict[str, Any]]

Left adornment props.

None
left_section_width Optional[str]

Left adornment width.

None
on_change Optional[Callable[[str], None]]

Change handler.

None
required Optional[bool]

Mark as required.

None
right_section Optional[RouteLitElement]

Right adornment.

None
right_section_props Optional[dict[str, Any]]

Right adornment props.

None
right_section_width Optional[str]

Right adornment width.

None
size Optional[str]

Control size.

None
value Optional[str]

Current value.

None
with_asterisk Optional[bool]

Show required asterisk.

None
kwargs Any

Additional props to set.

{}

Returns:

Name Type Description
str str

Current value.

Source code in src/routelit_mantine/builder.py
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
def text_input(
    self,
    label: str,
    *,
    description: Optional[str] = None,
    disabled: Optional[bool] = None,
    error: Optional[str] = None,
    key: Optional[str] = None,
    left_section: Optional[RouteLitElement] = None,
    left_section_props: Optional[dict[str, Any]] = None,
    left_section_width: Optional[str] = None,
    on_change: Optional[Callable[[str], None]] = None,
    required: Optional[bool] = None,
    right_section: Optional[RouteLitElement] = None,
    right_section_props: Optional[dict[str, Any]] = None,
    right_section_width: Optional[str] = None,
    size: Optional[str] = None,
    value: Optional[str] = None,
    with_asterisk: Optional[bool] = None,
    **kwargs: Any,
) -> str:
    """
    Single-line text input.

    Args:
        label (str): Field label.
        description (Optional[str]): Helper text under the label.
        disabled (Optional[bool]): Disable input interaction.
        error (Optional[str]): Error message.
        key (Optional[str]): Explicit element key.
        left_section (Optional[RouteLitElement]): Left adornment.
        left_section_props (Optional[dict[str, Any]]): Left adornment props.
        left_section_width (Optional[str]): Left adornment width.
        on_change (Optional[Callable[[str], None]]): Change handler.
        required (Optional[bool]): Mark as required.
        right_section (Optional[RouteLitElement]): Right adornment.
        right_section_props (Optional[dict[str, Any]]): Right adornment props.
        right_section_width (Optional[str]): Right adornment width.
        size (Optional[str]): Control size.
        value (Optional[str]): Current value.
        with_asterisk (Optional[bool]): Show required asterisk.
        kwargs: Additional props to set.

    Returns:
        str: Current value.
    """
    return cast(
        str,
        self._x_input(
            "textinput",
            key or self._new_widget_id("textinput", label),
            description=description,
            disabled=disabled,
            error=error,
            label=label,
            leftSection=left_section,
            leftSectionProps=left_section_props,
            leftSectionWidth=left_section_width,
            on_change=on_change,
            required=required,
            rightSection=right_section,
            rightSectionProps=right_section_props,
            rightSectionWidth=right_section_width,
            size=size,
            value=value,
            withAsterisk=with_asterisk,
            **kwargs,
        ),
    )

textarea(label, *, autosize=None, description=None, disabled=None, error=None, input_size=None, key=None, max_rows=None, min_rows=None, on_change=None, radius=None, required=None, resize=None, value=None, **kwargs)

Multi-line text input.

Parameters:

Name Type Description Default
label str

Field label.

required
autosize Optional[bool]

Grow/shrink to fit content.

None
description Optional[str]

Helper text under the label.

None
disabled Optional[bool]

Disable interaction.

None
error Optional[str]

Error message.

None
input_size Optional[str]

Control size.

None
key Optional[str]

Explicit element key.

None
max_rows Optional[int]

Maximum number of rows when autosizing.

None
min_rows Optional[int]

Minimum number of rows when autosizing.

None
on_change Optional[Callable[[str], None]]

Change handler.

None
radius Optional[Union[str, int]]

Corner radius.

None
required Optional[bool]

Mark as required.

None
resize Optional[str]

CSS resize behavior.

None
value Optional[str]

Current value.

None
kwargs Any

Additional props to set.

{}

Returns:

Type Description
Optional[str]

Optional[str]: Current value.

Source code in src/routelit_mantine/builder.py
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
def textarea(
    self,
    label: str,
    *,
    autosize: Optional[bool] = None,
    description: Optional[str] = None,
    disabled: Optional[bool] = None,
    error: Optional[str] = None,
    input_size: Optional[str] = None,
    key: Optional[str] = None,
    max_rows: Optional[int] = None,
    min_rows: Optional[int] = None,
    on_change: Optional[Callable[[str], None]] = None,
    radius: Optional[Union[str, int]] = None,
    required: Optional[bool] = None,
    resize: Optional[str] = None,
    value: Optional[str] = None,
    **kwargs: Any,
) -> Optional[str]:
    """
    Multi-line text input.

    Args:
        label (str): Field label.
        autosize (Optional[bool]): Grow/shrink to fit content.
        description (Optional[str]): Helper text under the label.
        disabled (Optional[bool]): Disable interaction.
        error (Optional[str]): Error message.
        input_size (Optional[str]): Control size.
        key (Optional[str]): Explicit element key.
        max_rows (Optional[int]): Maximum number of rows when autosizing.
        min_rows (Optional[int]): Minimum number of rows when autosizing.
        on_change (Optional[Callable[[str], None]]): Change handler.
        radius (Optional[Union[str, int]]): Corner radius.
        required (Optional[bool]): Mark as required.
        resize (Optional[str]): CSS resize behavior.
        value (Optional[str]): Current value.
        kwargs: Additional props to set.

    Returns:
        Optional[str]: Current value.
    """
    return self._x_input(
        "textarea",
        key or self._new_widget_id("textarea", label),
        autosize=autosize,
        description=description,
        disabled=disabled,
        error=error,
        inputSize=input_size,
        label=label,
        maxRows=max_rows,
        minRows=min_rows,
        on_change=on_change,
        radius=radius,
        required=required,
        resize=resize,
        value=value,
        **kwargs,
    )

time_input(label, value=None, *, key=None, on_change=None, description=None, description_props=None, disabled=None, error=None, error_props=None, input_size=None, input_wrapper_order=None, label_props=None, left_section=None, left_section_pointer_events=None, left_section_props=None, left_section_width=None, max_time=None, min_time=None, pointer=None, radius=None, required=None, right_section=None, right_section_pointer_events=None, right_section_props=None, right_section_width=None, size=None, with_asterisk=None, with_error_styles=None, with_seconds=None, wrapper_props=None, **kwargs)

Time input with support for parsing from string.

Parameters:

Name Type Description Default
label str

Field label.

required
value Optional[Union[time, str]]

Current value.

None
key Optional[str]

Explicit element key.

None
on_change Optional[Callable[[Any], None]]

Change handler.

None
description Optional[Any]

Contents of Input.Description component.

None
description_props Optional[dict[str, Any]]

Props passed to Input.Description component.

None
disabled Optional[bool]

Sets disabled attribute on input element.

None
error Optional[Any]

Contents of Input.Error component.

None
error_props Optional[dict[str, Any]]

Props passed to Input.Error component.

None
input_size Optional[str]

Size attribute for input element.

None
input_wrapper_order Optional[list[str]]

Controls order of elements.

None
label_props Optional[dict[str, Any]]

Props passed to Input.Label component.

None
left_section Optional[Any]

Content displayed on left side of input.

None
left_section_pointer_events Optional[str]

Pointer events style for left section.

None
left_section_props Optional[dict[str, Any]]

Props for left section element.

None
left_section_width Optional[Union[str, int]]

Width of left section.

None
max_time Optional[str]

Maximum possible time value.

None
min_time Optional[str]

Minimum possible time value.

None
pointer Optional[bool]

Whether input should have pointer cursor.

None
radius Optional[Union[str, int]]

Border radius value.

None
required Optional[bool]

Whether input is required.

None
right_section Optional[Any]

Content displayed on right side of input.

None
right_section_pointer_events Optional[str]

Pointer events style for right section.

None
right_section_props Optional[dict[str, Any]]

Props for right section element.

None
right_section_width Optional[Union[str, int]]

Width of right section.

None
size Optional[str]

Controls input height and padding.

None
with_asterisk Optional[bool]

Whether to show required asterisk.

None
with_error_styles Optional[bool]

Whether to show error styling.

None
with_seconds Optional[bool]

Whether to show seconds input.

None
wrapper_props Optional[dict[str, Any]]

Props for root element.

None
kwargs Any

Additional props to set.

{}

Returns:

Type Description
Optional[time]

Optional[datetime.time]: Current value.

Source code in src/routelit_mantine/builder.py
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
def time_input(
    self,
    label: str,
    value: Optional[Union[datetime.time, str]] = None,
    *,
    key: Optional[str] = None,
    on_change: Optional[Callable[[Any], None]] = None,
    description: Optional[Any] = None,
    description_props: Optional[dict[str, Any]] = None,
    disabled: Optional[bool] = None,
    error: Optional[Any] = None,
    error_props: Optional[dict[str, Any]] = None,
    input_size: Optional[str] = None,
    input_wrapper_order: Optional[list[str]] = None,
    label_props: Optional[dict[str, Any]] = None,
    left_section: Optional[Any] = None,
    left_section_pointer_events: Optional[str] = None,
    left_section_props: Optional[dict[str, Any]] = None,
    left_section_width: Optional[Union[str, int]] = None,
    max_time: Optional[str] = None,
    min_time: Optional[str] = None,
    pointer: Optional[bool] = None,
    radius: Optional[Union[str, int]] = None,
    required: Optional[bool] = None,
    right_section: Optional[Any] = None,
    right_section_pointer_events: Optional[str] = None,
    right_section_props: Optional[dict[str, Any]] = None,
    right_section_width: Optional[Union[str, int]] = None,
    size: Optional[str] = None,
    with_asterisk: Optional[bool] = None,
    with_error_styles: Optional[bool] = None,
    with_seconds: Optional[bool] = None,
    wrapper_props: Optional[dict[str, Any]] = None,
    **kwargs: Any,
) -> Optional[datetime.time]:
    """
    Time input with support for parsing from string.

    Args:
        label (str): Field label.
        value (Optional[Union[datetime.time, str]]): Current value.
        key (Optional[str]): Explicit element key.
        on_change (Optional[Callable[[Any], None]]): Change handler.
        description (Optional[Any]): Contents of Input.Description component.
        description_props (Optional[dict[str, Any]]): Props passed to Input.Description component.
        disabled (Optional[bool]): Sets disabled attribute on input element.
        error (Optional[Any]): Contents of Input.Error component.
        error_props (Optional[dict[str, Any]]): Props passed to Input.Error component.
        input_size (Optional[str]): Size attribute for input element.
        input_wrapper_order (Optional[list[str]]): Controls order of elements.
        label_props (Optional[dict[str, Any]]): Props passed to Input.Label component.
        left_section (Optional[Any]): Content displayed on left side of input.
        left_section_pointer_events (Optional[str]): Pointer events style for left section.
        left_section_props (Optional[dict[str, Any]]): Props for left section element.
        left_section_width (Optional[Union[str, int]]): Width of left section.
        max_time (Optional[str]): Maximum possible time value.
        min_time (Optional[str]): Minimum possible time value.
        pointer (Optional[bool]): Whether input should have pointer cursor.
        radius (Optional[Union[str, int]]): Border radius value.
        required (Optional[bool]): Whether input is required.
        right_section (Optional[Any]): Content displayed on right side of input.
        right_section_pointer_events (Optional[str]): Pointer events style for right section.
        right_section_props (Optional[dict[str, Any]]): Props for right section element.
        right_section_width (Optional[Union[str, int]]): Width of right section.
        size (Optional[str]): Controls input height and padding.
        with_asterisk (Optional[bool]): Whether to show required asterisk.
        with_error_styles (Optional[bool]): Whether to show error styling.
        with_seconds (Optional[bool]): Whether to show seconds input.
        wrapper_props (Optional[dict[str, Any]]): Props for root element.
        kwargs: Additional props to set.

    Returns:
        Optional[datetime.time]: Current value.
    """
    return cast(
        Optional[datetime.time],
        self._x_input(
            "timeinput",
            key=key or self._new_widget_id("timeinput", label),
            label=label,
            value=value,
            description=description,
            descriptionProps=description_props,
            disabled=disabled,
            error=error,
            errorProps=error_props,
            inputSize=input_size,
            inputWrapperOrder=input_wrapper_order,
            labelProps=label_props,
            leftSection=left_section,
            leftSectionPointerEvents=left_section_pointer_events,
            leftSectionProps=left_section_props,
            leftSectionWidth=left_section_width,
            maxTime=max_time,
            minTime=min_time,
            pointer=pointer,
            radius=radius,
            required=required,
            rightSection=right_section,
            rightSectionPointerEvents=right_section_pointer_events,
            rightSectionProps=right_section_props,
            rightSectionWidth=right_section_width,
            size=size,
            withAsterisk=with_asterisk,
            withErrorStyles=with_error_styles,
            withSeconds=with_seconds,
            wrapperProps=wrapper_props,
            rl_format_func=self._format_time,
            on_change=on_change,
            **kwargs,
        ),
    )

time_picker(label, value=None, *, key=None, on_change=None, am_pm_input_label=None, am_pm_labels=None, am_pm_select_props=None, clear_button_props=None, clearable=None, description=None, description_props=None, disabled=None, error=None, error_props=None, form=None, format=None, hidden_input_props=None, hours_input_label=None, hours_input_props=None, hours_step=None, input_size=None, input_wrapper_order=None, label_props=None, left_section=None, left_section_pointer_events=None, left_section_props=None, left_section_width=None, max=None, max_dropdown_content_height=None, min=None, minutes_input_label=None, minutes_input_props=None, minutes_step=None, name=None, pointer=None, popover_props=None, presets=None, radius=None, read_only=None, required=None, right_section=None, right_section_pointer_events=None, right_section_props=None, right_section_width=None, scroll_area_props=None, seconds_input_label=None, seconds_input_props=None, seconds_step=None, size=None, with_asterisk=None, with_dropdown=None, with_error_styles=None, with_seconds=None, wrapper_props=None, **kwargs)

Time picker with support for parsing from string.

Parameters:

Name Type Description Default
label str

Label text.

required
value Optional[Union[time, str]]

Current value.

None
key Optional[str]

Unique key for the widget.

None
on_change Optional[Callable[[Any], None]]

Called when value changes.

None
am_pm_input_label Optional[str]

aria-label of am/pm input.

None
am_pm_labels Optional[dict[str, str]]

Labels used for am/pm values.

None
am_pm_select_props Optional[dict[str, Any]]

Props for am/pm select.

None
clear_button_props Optional[dict[str, Any]]

Props for clear button.

None
clearable Optional[bool]

Whether clear button should be displayed.

None
description Optional[Any]

Description content.

None
description_props Optional[dict[str, Any]]

Props for description.

None
disabled Optional[bool]

Whether component is disabled.

None
error Optional[Any]

Error content.

None
error_props Optional[dict[str, Any]]

Props for error.

None
form Optional[str]

Form prop for hidden input.

None
format Optional[str]

Time format ('12h' or '24h').

None
hidden_input_props Optional[dict[str, Any]]

Props for hidden input.

None
hours_input_label Optional[str]

aria-label of hours input.

None
hours_input_props Optional[dict[str, Any]]

Props for hours input.

None
hours_step Optional[int]

Hours increment/decrement step.

None
input_size Optional[str]

Size attribute for input element.

None
input_wrapper_order Optional[list[str]]

Order of elements.

None
label_props Optional[dict[str, Any]]

Props for label.

None
left_section Optional[Any]

Left section content.

None
left_section_pointer_events Optional[str]

Left section pointer events.

None
left_section_props Optional[dict[str, Any]]

Props for left section.

None
left_section_width Optional[Union[str, int]]

Left section width.

None
max Optional[str]

Max time value (hh:mm:ss).

None
max_dropdown_content_height Optional[int]

Max dropdown height in px.

None
min Optional[str]

Min time value (hh:mm:ss).

None
minutes_input_label Optional[str]

aria-label of minutes input.

None
minutes_input_props Optional[dict[str, Any]]

Props for minutes input.

None
minutes_step Optional[int]

Minutes increment/decrement step.

None
name Optional[str]

Name prop for hidden input.

None
pointer Optional[bool]

Whether to show pointer cursor.

None
popover_props Optional[dict[str, Any]]

Props for popover.

None
presets Optional[Any]

Time presets for dropdown.

None
radius Optional[Union[str, int]]

Border radius.

None
read_only Optional[bool]

Whether value is read-only.

None
required Optional[bool]

Whether field is required.

None
right_section Optional[Any]

Right section content.

None
right_section_pointer_events Optional[str]

Right section pointer events.

None
right_section_props Optional[dict[str, Any]]

Props for right section.

None
right_section_width Optional[Union[str, int]]

Right section width.

None
scroll_area_props Optional[dict[str, Any]]

Props for scroll areas.

None
seconds_input_label Optional[str]

aria-label of seconds input.

None
seconds_input_props Optional[dict[str, Any]]

Props for seconds input.

None
seconds_step Optional[int]

Seconds increment/decrement step.

None
size Optional[str]

Controls input height and padding.

None
value Optional[Union[time, str]]

Current value.

None
with_asterisk Optional[bool]

Whether to show required asterisk.

None
with_dropdown Optional[bool]

Whether to show dropdown.

None
with_error_styles Optional[bool]

Whether to show error styling.

None
with_seconds Optional[bool]

Whether to show seconds input.

None
wrapper_props Optional[dict[str, Any]]

Props for root element.

None
kwargs Any

Additional props to set.

{}

Returns:

Type Description
Optional[time]

Optional[datetime.time]: Current value.

Source code in src/routelit_mantine/builder.py
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350
4351
4352
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496
def time_picker(
    self,
    label: str,
    value: Optional[Union[datetime.time, str]] = None,
    *,
    key: Optional[str] = None,
    on_change: Optional[Callable[[Any], None]] = None,
    am_pm_input_label: Optional[str] = None,
    am_pm_labels: Optional[dict[str, str]] = None,
    am_pm_select_props: Optional[dict[str, Any]] = None,
    clear_button_props: Optional[dict[str, Any]] = None,
    clearable: Optional[bool] = None,
    description: Optional[Any] = None,
    description_props: Optional[dict[str, Any]] = None,
    disabled: Optional[bool] = None,
    error: Optional[Any] = None,
    error_props: Optional[dict[str, Any]] = None,
    form: Optional[str] = None,
    format: Optional[str] = None,  # noqa: A002
    hidden_input_props: Optional[dict[str, Any]] = None,
    hours_input_label: Optional[str] = None,
    hours_input_props: Optional[dict[str, Any]] = None,
    hours_step: Optional[int] = None,
    input_size: Optional[str] = None,
    input_wrapper_order: Optional[list[str]] = None,
    label_props: Optional[dict[str, Any]] = None,
    left_section: Optional[Any] = None,
    left_section_pointer_events: Optional[str] = None,
    left_section_props: Optional[dict[str, Any]] = None,
    left_section_width: Optional[Union[str, int]] = None,
    max: Optional[str] = None,  # noqa: A002
    max_dropdown_content_height: Optional[int] = None,
    min: Optional[str] = None,  # noqa: A002
    minutes_input_label: Optional[str] = None,
    minutes_input_props: Optional[dict[str, Any]] = None,
    minutes_step: Optional[int] = None,
    name: Optional[str] = None,
    pointer: Optional[bool] = None,
    popover_props: Optional[dict[str, Any]] = None,
    presets: Optional[Any] = None,
    radius: Optional[Union[str, int]] = None,
    read_only: Optional[bool] = None,
    required: Optional[bool] = None,
    right_section: Optional[Any] = None,
    right_section_pointer_events: Optional[str] = None,
    right_section_props: Optional[dict[str, Any]] = None,
    right_section_width: Optional[Union[str, int]] = None,
    scroll_area_props: Optional[dict[str, Any]] = None,
    seconds_input_label: Optional[str] = None,
    seconds_input_props: Optional[dict[str, Any]] = None,
    seconds_step: Optional[int] = None,
    size: Optional[str] = None,
    with_asterisk: Optional[bool] = None,
    with_dropdown: Optional[bool] = None,
    with_error_styles: Optional[bool] = None,
    with_seconds: Optional[bool] = None,
    wrapper_props: Optional[dict[str, Any]] = None,
    **kwargs: Any,
) -> Optional[datetime.time]:
    """
    Time picker with support for parsing from string.

    Args:
        label (str): Label text.
        value (Optional[Union[datetime.time, str]]): Current value.
        key (Optional[str]): Unique key for the widget.
        on_change (Optional[Callable[[Any], None]]): Called when value changes.
        am_pm_input_label (Optional[str]): aria-label of am/pm input.
        am_pm_labels (Optional[dict[str, str]]): Labels used for am/pm values.
        am_pm_select_props (Optional[dict[str, Any]]): Props for am/pm select.
        clear_button_props (Optional[dict[str, Any]]): Props for clear button.
        clearable (Optional[bool]): Whether clear button should be displayed.
        description (Optional[Any]): Description content.
        description_props (Optional[dict[str, Any]]): Props for description.
        disabled (Optional[bool]): Whether component is disabled.
        error (Optional[Any]): Error content.
        error_props (Optional[dict[str, Any]]): Props for error.
        form (Optional[str]): Form prop for hidden input.
        format (Optional[str]): Time format ('12h' or '24h').
        hidden_input_props (Optional[dict[str, Any]]): Props for hidden input.
        hours_input_label (Optional[str]): aria-label of hours input.
        hours_input_props (Optional[dict[str, Any]]): Props for hours input.
        hours_step (Optional[int]): Hours increment/decrement step.
        input_size (Optional[str]): Size attribute for input element.
        input_wrapper_order (Optional[list[str]]): Order of elements.
        label_props (Optional[dict[str, Any]]): Props for label.
        left_section (Optional[Any]): Left section content.
        left_section_pointer_events (Optional[str]): Left section pointer events.
        left_section_props (Optional[dict[str, Any]]): Props for left section.
        left_section_width (Optional[Union[str, int]]): Left section width.
        max (Optional[str]): Max time value (hh:mm:ss).
        max_dropdown_content_height (Optional[int]): Max dropdown height in px.
        min (Optional[str]): Min time value (hh:mm:ss).
        minutes_input_label (Optional[str]): aria-label of minutes input.
        minutes_input_props (Optional[dict[str, Any]]): Props for minutes input.
        minutes_step (Optional[int]): Minutes increment/decrement step.
        name (Optional[str]): Name prop for hidden input.
        pointer (Optional[bool]): Whether to show pointer cursor.
        popover_props (Optional[dict[str, Any]]): Props for popover.
        presets (Optional[Any]): Time presets for dropdown.
        radius (Optional[Union[str, int]]): Border radius.
        read_only (Optional[bool]): Whether value is read-only.
        required (Optional[bool]): Whether field is required.
        right_section (Optional[Any]): Right section content.
        right_section_pointer_events (Optional[str]): Right section pointer events.
        right_section_props (Optional[dict[str, Any]]): Props for right section.
        right_section_width (Optional[Union[str, int]]): Right section width.
        scroll_area_props (Optional[dict[str, Any]]): Props for scroll areas.
        seconds_input_label (Optional[str]): aria-label of seconds input.
        seconds_input_props (Optional[dict[str, Any]]): Props for seconds input.
        seconds_step (Optional[int]): Seconds increment/decrement step.
        size (Optional[str]): Controls input height and padding.
        value (Optional[Union[datetime.time, str]]): Current value.
        with_asterisk (Optional[bool]): Whether to show required asterisk.
        with_dropdown (Optional[bool]): Whether to show dropdown.
        with_error_styles (Optional[bool]): Whether to show error styling.
        with_seconds (Optional[bool]): Whether to show seconds input.
        wrapper_props (Optional[dict[str, Any]]): Props for root element.
        kwargs: Additional props to set.

    Returns:
        Optional[datetime.time]: Current value.
    """
    return cast(
        Optional[datetime.time],
        self._x_input(
            "timepicker",
            key=key or self._new_widget_id("timepicker", label),
            label=label,
            value=value,
            amPmInputLabel=am_pm_input_label,
            amPmLabels=am_pm_labels,
            amPmSelectProps=am_pm_select_props,
            clearButtonProps=clear_button_props,
            clearable=clearable,
            description=description,
            descriptionProps=description_props,
            disabled=disabled,
            error=error,
            errorProps=error_props,
            form=form,
            format=format,
            hiddenInputProps=hidden_input_props,
            hoursInputLabel=hours_input_label,
            hoursInputProps=hours_input_props,
            hoursStep=hours_step,
            inputSize=input_size,
            inputWrapperOrder=input_wrapper_order,
            labelProps=label_props,
            leftSection=left_section,
            leftSectionPointerEvents=left_section_pointer_events,
            leftSectionProps=left_section_props,
            leftSectionWidth=left_section_width,
            max=max,
            maxDropdownContentHeight=max_dropdown_content_height,
            min=min,
            minutesInputLabel=minutes_input_label,
            minutesInputProps=minutes_input_props,
            minutesStep=minutes_step,
            name=name,
            pointer=pointer,
            popoverProps=popover_props,
            presets=presets,
            radius=radius,
            readOnly=read_only,
            required=required,
            rightSection=right_section,
            rightSectionPointerEvents=right_section_pointer_events,
            rightSectionProps=right_section_props,
            rightSectionWidth=right_section_width,
            scrollAreaProps=scroll_area_props,
            secondsInputLabel=seconds_input_label,
            secondsInputProps=seconds_input_props,
            secondsStep=seconds_step,
            size=size,
            withAsterisk=with_asterisk,
            withDropdown=with_dropdown,
            withErrorStyles=with_error_styles,
            withSeconds=with_seconds,
            wrapperProps=wrapper_props,
            rl_format_func=self._format_time,
            on_change=on_change,
            **kwargs,
        ),
    )

title(text, *, key=None, order=None, **kwargs)

Title text with semantic order (h1-h6).

Parameters:

Name Type Description Default
text str

Title content.

required
key Optional[str]

Explicit element key.

None
order Optional[int]

Heading level (1-6).

None
kwargs Any

Additional props to set.

{}
Source code in src/routelit_mantine/builder.py
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
def title(  # type: ignore[override]
    self,
    text: str,
    *,
    key: Optional[str] = None,
    order: Optional[int] = None,
    **kwargs: Any,
) -> None:
    """
    Title text with semantic order (h1-h6).

    Args:
        text (str): Title content.
        key (Optional[str]): Explicit element key.
        order (Optional[int]): Heading level (1-6).
        kwargs: Additional props to set.
    """
    self._create_element(
        name="title",
        key=key or self._new_text_id("title"),
        props={"children": text, "order": order, **kwargs},
    )