Skip to content

Releases: nextjs-components/nextjs-components

v5.3.0-rc.1

18 May 03:45
c525266
Compare
Choose a tag to compare
v5.3.0-rc.1 Pre-release
Pre-release
chore:  @babel/preset-typescript

v5.2.0

29 Oct 17:30
f7fbe2d
Compare
Choose a tag to compare

What's Changed

Full Changelog: v5.1.1...v5.2.0

v5.1.1 - fix(Switch.Control) a11y

30 Sep 19:50
22263ff
Compare
Choose a tag to compare

Fixed

Full Changelog: v5.1.0...v5.1.1

v5.1.0 Update Note; Fix Button

06 Sep 02:43
c6ab0c1
Compare
Choose a tag to compare

What's Changed

Other Changes

Full Changelog: v5.0.1...v5.1.0

v5.0.1

05 Sep 23:21
659a547
Compare
Choose a tag to compare

Full Changelog: v5.0.0...v5.0.1

v5.0.0 - Badge updates

05 Sep 23:11
78af5b1
Compare
Choose a tag to compare

What's Changed

Warning

This introduces a breaking change to the Badge component API
The type prop is removed, variant prop has changed, and the size prop expects "sm" | "md" | "lg"

New Contributors

Full Changelog: v4.1.2...v5.0.0

v4.1.2

05 Sep 21:32
6855029
Compare
Choose a tag to compare

Full Changelog: v4.1.1...v4.1.2

v4.1.1

05 Sep 21:03
dee65fb
Compare
Choose a tag to compare

What's Changed

Other Changes

Full Changelog: v4.1.0...v4.1.1

v4.1.0

05 Sep 15:40
091aba8
Compare
Choose a tag to compare

What's Changed

New Pill component
Refactored Button and MenuButton

  • mouse interaction doesn't focus the button anymore; achieved via document.activeElement.blur()
    Addressed some RSC issues;
  • added use client directive to icons

Other Changes

Full Changelog: v4.0.0...v4.1.0

v4.0.0

04 Sep 14:35
2d2d6ae
Compare
Choose a tag to compare

What's Changed

Warning

This introduces a breaking change to the Switch API, and a new Switch.Control component.

const MyComponent = () => {
  const [active, setActive] = React.useState('source')
  return (
    <Switch
-     items={[
-      {
-        name: 'Source',
-        value: 'source',
-        width: 80
-      },
-      {
-        name: 'Output',
-        value: 'output',
-        width: 90,
-      }
-    ]}
-    active={active}
-    onChange={v => setActive(v)}
-  />
+  >
+    <Switch.Control label="Source" defaultChecked value="source" onChange={e => setActive(e.target.value)}/>
+    <Switch.Control label="Output" value="output" onChange={e => setActive(e.target.value)}/>
+  </Switch>
  )
}

Important

This makes Stack renderable as React Server Components since it no longer uses styled-jsx internally

Other Changes

Full Changelog: v3.1.0...v4.0.0