@wordpress/components
Version:
UI components for WordPress.
24 lines (19 loc) • 469 B
JavaScript
/**
* WordPress dependencies
*/
import { useState } from '@wordpress/element';
/**
* Internal dependencies
*/
import AnglePickerControl from '../';
export default {
title: 'Components/AnglePickerControl',
component: AnglePickerControl,
};
const AnglePickerWithState = () => {
const [ angle, setAngle ] = useState();
return <AnglePickerControl value={ angle } onChange={ setAngle } />;
};
export const _default = () => {
return <AnglePickerWithState />;
};