Skip to content

Commit

Permalink
Update AnglePickerControl README and types
Browse files Browse the repository at this point in the history
  • Loading branch information
Rishit30G committed Jan 10, 2025
1 parent f91339e commit 0ffd4e6
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
9 changes: 8 additions & 1 deletion packages/components/src/angle-picker-control/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ function Example() {
<AnglePickerControl
value={ angle }
onChange={ setAngle }
</>
/>
);
}
```
Expand Down Expand Up @@ -55,3 +55,10 @@ A function that receives the new value of the input.

The current value of the input. The value represents an angle in degrees
and should be a value between 0 and 360.

### `className`

- Type: `string`
- Required: No

A string of classes to be added to the control component.
4 changes: 4 additions & 0 deletions packages/components/src/angle-picker-control/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ export type AnglePickerControlProps = {
* and should be a value between 0 and 360.
*/
value: number | string;
/**
* Additional classes to apply to the angle picker.
*/
className?: string;
};

export type AngleCircleProps = Pick<
Expand Down

0 comments on commit 0ffd4e6

Please sign in to comment.