Skip to content

v24.0.0

Choose a tag to compare

@github-actions github-actions released this 04 Mar 19:05
· 4816 commits to main since this release
06783de

Major Changes

  • b9d9d245 #1068 Thanks @colebemis! - Remove propTypes in favor of TypeScript types

  • beef075e #1094 Thanks @colebemis! - Components no longer have a default theme prop. To ensure components still render correctly, you'll need pass the Primer theme to a styled-components <ThemeProvider> at the root of your application:

    import {ThemeProvider} from 'styled-components'
    import {theme} from '@primer/components'
    
    funciton App(props) {
      return (
        <div>
          <ThemeProvider theme={theme}>
            <div>your app here</div>
          </ThemeProvider>
        </div>
      )
    }

Patch Changes