LeafyGreen UI – LeafyGreen's React UI Kit
APACHE-2.0 License
Bot releases are visible (Hide)
Published by github-actions[bot] 3 months ago
@leafygreen-ui/form-field
Published by github-actions[bot] 3 months ago
@leafygreen-ui/form-field
Published by github-actions[bot] 3 months ago
@leafygreen-ui/form-field
Published by github-actions[bot] 3 months ago
Published by github-actions[bot] 3 months ago
Published by github-actions[bot] 3 months ago
@leafygreen-ui/form-field
Published by github-actions[bot] 3 months ago
@leafygreen-ui/form-field
Published by github-actions[bot] 3 months ago
@leafygreen-ui/form-field
Published by github-actions[bot] 3 months ago
contentEnd
slot prop now passes the disabled
prop into the cloned elementPublished by github-actions[bot] 3 months ago
@leafygreen-ui/form-field
Published by github-actions[bot] 3 months ago
3f52c844b: - Adds optional glyph
prop. The glyph will appear to the left of the chip text.
<Chip label="chip" glyph={<Icon glyph="Wizard" />} />
6px
to 4px
.Published by github-actions[bot] 3 months ago
Published by github-actions[bot] 3 months ago
MenuDescendantsContext
useMenuContext
, useMenuGroupContext
, & useSubMenuContext
, along with types types MenuContextData
, MenuGroupContextData
, & SubMenuContextData
,
menuColor
: Custom color tokens used within Menu
and related componentsMenuInteractionState
: Enumerates interaction states on a menu itemLGIDs
: Unique ids for menu elementsmenuItemClassName
: The unique class name for menu item componentssubMenuContainerClassName
& subMenuToggleClassName
Published by github-actions[bot] 3 months ago
useHighlightContext
exportPublished by github-actions[bot] 3 months ago
Published by github-actions[bot] 3 months ago
Published by github-actions[bot] 3 months ago
Published by github-actions[bot] 3 months ago
Only
, ExclusiveUnion
and ValuesOf
Published by github-actions[bot] 3 months ago
4c04aa0ee: Updates useInitDescendants
signature to require a Context value, and return a Provider
component.
Eliminates the need to destructure descendants
and dispatch
from the hook's return value just to pass into the provider. Instead, the hook will construct a pre-populated provider unique to the Context value given.
Note: descendants
, dispatch
and getDescendants
are still returned by the hook for use in the parent component if necessary.
Before:
const MyDescendantContext = createDescendantsContext();
const { descendants, dispatch } = useInitDescendants();
return (
<DescendantsProvider
context={MyDescendantContext}
descendants={descendants}
dispatch={dispatch}
>
<MyDescendantItem />
</DescendantsProvider>
);
After:
const MyDescendantContext = createDescendantsContext();
const { Provider } = useInitDescendants(MyDescendantContext);
return (
<Provider>
<MyDescendantItem />
</Provider>
);
useHighlight
: A hook to initialize the highlight state managementHighlightProvider
: A context provider for consuming the highlight state from descendant componentscreateHighlightContext
: Constructs a unique Context object in order to support nested contextsPublished by github-actions[bot] 3 months ago