packages/react-components/react-swatch-picker/library/docs/MIGRATION.md
layoutsizecolorCells => Use children prop instead.cellBorderWidth - customizable via CSS.cellHeight, cellWidth and width - use size prop instead. For custom size use CSS.cellMargin - use spacing instead.cellShape - use shape instead.className => Slot system supports it by default. We don't need to provide it explicitly.onChange => use onSelectionChange instead.styles => Use style customization through className instead.themedefaultSelectedId => use defaultSelectedValue insteadselectedId => use selectedValue insteadcolumnCount => use renderingUtils instead, this prop is suported there.ariaPosInSetariaSetSizedisableddoNotContainWithinFocusZonefocusOnHovergetColorGridCellStylesmouseLeaveParentSelectoronCellFocusedonCellHoveredonRenderColorCell => Custom render function for the color cell. This can replace the entire button element, including the default focus and hover states.onRenderColorCellContent => Custom render function for inner content of the color cell. This will retain the cell's default button behavior and overrides just the inner content.shouldFocusCircularNavigatev8 SwatchColorPicker | v9 SwatchPicker |
|---|---|
colorCells | children |
cellMargin | spacing |
cellShape | shape |
onChange | onSelectionChange |
borderColorsizeshapecolordisabledid => Use value prop instead.label => Use aria-label instead.indexv8 SwatchColorPicker | v9 SwatchPicker |
|---|---|
color | color |
disabled | disabled |
id | value |
size | |
shape |