Skip to content

v2.3.0

Compare
Choose a tag to compare
@clukhei clukhei released this 10 Jan 07:48
· 92 commits to v2 since this release

What's new

  • Table sub-components introduced : Table.Row, Table.Header, Table.HeaderCell, Table.SortLabel, Table.Body, Table.DataCell
    Previously, users construct their own and to fill the table. It is recommended for users to use the sub components for
    better consistency and to get any future enhancements on these sub components. The previous way of constructing table with
    and still works.

    Table.SortLabel gives user the added benefit of configuring a custom sorting Table. See [documentation]
    (https://react.designsystem.tech.gov.sg/?path=/docs/components-table--basic#sorting) for more information.

  • 'use client' directive appended to each of our components. For NextJS users, this means that you can use our components out-of-the-box without manually configuring 'use client' for our components on your end. There are caveats about this due to an upstream issue from NextJs so please see the documentation on how to use sgds react components on NextJS app

Enhancements

  • Accessibility improvements for Combobox. DropdownItem of Combobox is now a html button
  • Generation of unique id attribute of components shifted to useEffect hook. This is to temporarily resolve the issue of different uuid generated in server and client side of SSR applications.