Skip to content

Commit

Permalink
Add JS Docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Rishit30G committed Jan 8, 2025
1 parent 5597878 commit 27a3065
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,15 @@ const renderToggleComponent =
);
};

/**
* Block Colors Style Selector component displays a dropdown menu for selecting block colors, with built-in text and background color support.
*
* @param {Object} props
* @param {JSX.Element} props.children Content to render inside the dropdown.
* @param {Object} props.other Other props to pass to the Text
*
* @return {Element} Block Colors Style Selector component.
*/
const BlockColorsStyleSelector = ( { children, ...other } ) => {
deprecated( `wp.blockEditor.BlockColorsStyleSelector`, {
alternative: 'block supports API',
Expand Down

0 comments on commit 27a3065

Please sign in to comment.