LeafyGreen UI – LeafyGreen's React UI Kit
APACHE-2.0 License
Bot releases are visible (Hide)
Published by github-actions[bot] 19 days ago
getTestUtils
from Button packagePublished by github-actions[bot] 20 days ago
'EmptyFolder'
and 'EmptyDatabase'
glyphsPublished by github-actions[bot] 27 days ago
Published by github-actions[bot] about 1 month ago
30f111498: LG-4473 Updates the selected
and setSelected
props to accept both strings and numbers. The string must match the text content from the name
prop on the Tab
component.
const [selectedTab, setSelectedTab] = useState<string | number>('Tab 4');
return (
<div>
<Button onClick={() => setSelectedTab('Tab 2')}>
Set second tab as active
</Button>
<Tabs
selected={selectedTab}
setSelected={setSelectedTab}
>
<Tab name="Tab 1">
Content 1
</Tab>
<Tab name="Tab 2">
Content 2
</Tab>
<Tab name="Tab 3">
Content 3
</Tab>
<Tab name="Tab 4">
Content 4
</Tab>
<Tabs>
</div>
);
Published by github-actions[bot] about 1 month ago
Published by github-actions[bot] about 1 month ago
Published by github-actions[bot] about 1 month ago
9776f5f42: Adds renderHookServer
method
@testing-library/react-hooks/server exposed a renderHook
method
that allowed for one to render hooks as if SSR, and control
hydration. This is no longer supported in versions >=18.
This code was extracted from @testing-library/react-hooks/server and
updated to be compatible with React version >= 18 using hydrateRoot
.
More context found here:
https://github.com/testing-library/react-testing-library/issues/1120
Published by github-actions[bot] about 1 month ago
9776f5f42: Adds useSsrCheck
and adds it to viewport check in useViewportSize
.
When server side rendering is used, window
is not defined. This is causing build issues on the server where we access window
in useViewportSize
. To fix this, this change adds a hook, useSsrCheck
, that checks the rendering environment and can be used before attempting to access window
. It adds a check of this to useViewportSize
to fix the current build issue.
Published by github-actions[bot] about 1 month ago
getTestUtils
, a util to reliably interact with LG Table
in a product test suite. For more details, check out the README LG-4171
LGIDS
which stores data-lgid
values.Published by github-actions[bot] about 1 month ago
FormFieldInputContainer
autocomplete styling used in DateInputSegment
, TextArea
and TextInput
. A double-border issue occurs when the auto-completed input has focus or hover state appliedPublished by github-actions[bot] about 1 month ago
shadow.dark[100]
to "unset"
)Published by github-actions[bot] about 1 month ago
children
type to accept React.ReactNode
rather than just string
Published by github-actions[bot] about 1 month ago
children
from cancelButtonProps
. The text will always render cancel
.Published by github-actions[bot] about 1 month ago
Published by github-actions[bot] about 1 month ago
Published by github-actions[bot] about 1 month ago
shouldRenderHotkeyIndicator
prop to InputBar component which determines if hotkey indicator is renderedPublished by github-actions[bot] about 2 months ago
Published by github-actions[bot] about 2 months ago
Toast
on unmountPublished by github-actions[bot] about 2 months ago
Published by github-actions[bot] about 2 months ago