-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
perf-app: Added performance test scenario for the ColorPicker (#33496)
- Loading branch information
1 parent
df9a753
commit fc5f0b1
Showing
2 changed files
with
19 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
apps/perf-test-react-components/src/scenarios/ColorPicker.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import * as React from 'react'; | ||
import { ColorPicker, ColorArea, ColorSlider, AlphaSlider } from '@fluentui/react-color-picker-preview'; | ||
import { FluentProvider } from '@fluentui/react-provider'; | ||
import { webLightTheme } from '@fluentui/react-theme'; | ||
|
||
const Scenario = () => ( | ||
<ColorPicker color={{ h: 109, s: 1, v: 0.91 }}> | ||
<ColorArea /> | ||
<ColorSlider /> | ||
<AlphaSlider /> | ||
</ColorPicker> | ||
); | ||
|
||
Scenario.decorator = (props: { children: React.ReactNode }) => ( | ||
<FluentProvider theme={webLightTheme}>{props.children}</FluentProvider> | ||
); | ||
|
||
export default Scenario; |