File tree Expand file tree Collapse file tree 2 files changed +29
-10
lines changed
apps/showcase/demo/styled/colorpicker Expand file tree Collapse file tree 2 files changed +29
-10
lines changed Original file line number Diff line number Diff line change 11'use client' ;
2+ import { ChevronDown } from '@primeicons/react' ;
23import { EyeDropperIcon } from '@primereact/icons' ;
34import type { ColorSpace } from '@primereact/types/shared/colorpicker' ;
45import { SelectValueChangeEvent } from '@primereact/types/shared/select' ;
@@ -30,12 +31,20 @@ export default function AdvancedDemo() {
3031 optionValue = "value"
3132 fluid
3233 >
33- < Select . Trigger placeholder = "Select a format" />
34- < Select . Dropdown > </ Select . Dropdown >
34+ < Select . Trigger >
35+ < Select . Value placeholder = "Select a format" />
36+ < Select . Icon >
37+ < ChevronDown />
38+ </ Select . Icon >
39+ </ Select . Trigger >
3540 < Select . Portal >
36- < Select . List >
37- < Select . Options style = { { maxHeight : '14rem' } } />
38- </ Select . List >
41+ < Select . Positioner >
42+ < Select . Panel >
43+ < Select . List >
44+ < Select . Options style = { { maxHeight : '14rem' } } />
45+ </ Select . List >
46+ </ Select . Panel >
47+ </ Select . Positioner >
3948 </ Select . Portal >
4049 </ Select . Root >
4150 < ColorPicker . Root format = { format } >
Original file line number Diff line number Diff line change 11'use client' ;
2+ import { ChevronDown } from '@primeicons/react' ;
23import { parseColor } from '@primereact/headless/colorpicker' ;
34import { EyeDropperIcon } from '@primereact/icons' ;
45import type { ColorSpace } from '@primereact/types/shared/colorpicker' ;
@@ -54,13 +55,22 @@ export default function Example() {
5455 options = { options }
5556 optionLabel = "label"
5657 optionValue = "value"
57- className = "w-full md:w-16 "
58+ className = "w-full md:w-26 "
5859 >
59- < Select . Trigger placeholder = "Select a format" />
60+ < Select . Trigger >
61+ < Select . Value placeholder = "Select a format" />
62+ < Select . Icon >
63+ < ChevronDown />
64+ </ Select . Icon >
65+ </ Select . Trigger >
6066 < Select . Portal >
61- < Select . List >
62- < Select . Options style = { { maxHeight : '14rem' } } />
63- </ Select . List >
67+ < Select . Positioner >
68+ < Select . Panel >
69+ < Select . List >
70+ < Select . Options style = { { maxHeight : '14rem' } } />
71+ </ Select . List >
72+ </ Select . Panel >
73+ </ Select . Positioner >
6474 </ Select . Portal >
6575 </ Select . Root >
6676 < div className = "flex-1" >
You can’t perform that action at this time.
0 commit comments