You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Start with type of container then direction. For example instead of LAlignedDiv use DivLAligned. This enables better discoverability because you can consistently start with Div and use tab to see the options rather than remembering the direction (ie does it start with LA or LeftA?). For directions, will match tailwind abbreviations for consistency.
Responsiveness is kind of annoying. For the elements that are most likely to need responsiveness tweaks (like Grid) have ncols, ncols_sm, ncols_md to make responsiveness easier.
I think Grid should have a small default gap. I think it's pretty rare you want 0 gap in a grid, so may as well have a default there.
Verify the *args things are good and match. For example if the signature has *li in it, it should take Li's and children. For example NavContainer (*li, cls=<NavT.primary: 'uk-nav-primary'>, parent=True, uk_nav=False, **kwargs) should take Li stuff and all Li stuff should start with Li, for example NavHeaderLi should be LiNavHeader for better discoverability. *c is used when it can take anything.
For LabelInput instead of using for, maybe put the Input inside the label maybe.
UkIconLink icon sizes do not play nicely because the icon increases in size but that does not impact the container it's in. When using UkIconLink the height/width needs to be translated to tailwind size and passed to the container.
You can select theme color, but not light vs dark. Add that option.
API Design:
LAlignedDiv
useDivLAligned
. This enables better discoverability because you can consistently start withDiv
and use tab to see the options rather than remembering the direction (ie does it start with LA or LeftA?). For directions, will match tailwind abbreviations for consistency.Grid
) havencols
,ncols_sm
,ncols_md
to make responsiveness easier.Grid
should have a small default gap. I think it's pretty rare you want 0 gap in a grid, so may as well have a default there.*li
in it, it should takeLi
's and children. For exampleNavContainer (*li, cls=<NavT.primary: 'uk-nav-primary'>, parent=True, uk_nav=False, **kwargs)
should takeLi
stuff and allLi
stuff should start withLi
, for exampleNavHeaderLi
should beLiNavHeader
for better discoverability.*c
is used when it can take anything.ForLabelInput
instead of using for, maybe put the Input inside the label maybe.New features:
The text was updated successfully, but these errors were encountered: