diff --git a/src/sections/Projects/Sistent/components/select/index.js b/src/sections/Projects/Sistent/components/select/index.js index cc8106b305fd..082b9bedec7b 100644 --- a/src/sections/Projects/Sistent/components/select/index.js +++ b/src/sections/Projects/Sistent/components/select/index.js @@ -15,11 +15,17 @@ import { InputLabel, MenuItem, Select, + OutlinedInput, } from "@mui/material"; const SistentSelect = () => { const location = useLocation(); const { isDark } = useStyledDarkMode(); + const [multipleAges, setMultipleAges] = React.useState([]); + const handleMultiplSelect = (event) => { + let agesList = event.target.value; + setMultipleAges(agesList); + }; return ( @@ -203,9 +209,12 @@ const SistentSelect = () => { consistency. We offer multiple sizes to meet different needs.

Auto width

- {/*

- The width of the component can scale -

*/} +

+ The width of the component can scale automatically to fit the + content it contains. This ensures that the select component is + appropriately sized based on the options available, providing a + better user experience. +

@@ -214,7 +223,7 @@ const SistentSelect = () => { labelId="demo-select-label-standard" id="demo-select-standard" label="Age" - variant="standard" + autoWidth > Ten Twenty @@ -224,11 +233,13 @@ const SistentSelect = () => {

Small

- {/*

- The 48px button is the second button size currently in use and it is - available from mobile to desktop resolutions, even though it serves - in different capacities across these screen sizes. -

*/} +

+ The small size select component is designed to fit into more compact + spaces within a user interface. It is particularly useful when you + need to conserve space or when the select component is part of a + form with other small-sized elements. This ensures a consistent and + visually appealing layout. +

@@ -237,7 +248,6 @@ const SistentSelect = () => { labelId="demo-select-label-standard" id="demo-select-standard" label="Age" - variant="standard" > Ten Twenty @@ -247,12 +257,12 @@ const SistentSelect = () => {

Full width

- {/*

- Full width buttons are more efficient in mobile designs and rightly +

+ Full width select are more efficient in mobile designs and rightly so in order to offer users with a wider touch area since the input devices - the fingers, are a lot larger than the cursor on a desktop or larger screen. -

*/} +

@@ -261,7 +271,6 @@ const SistentSelect = () => { labelId="demo-select-label-standard" id="demo-select-standard" label="Age" - variant="standard" > Ten Twenty @@ -270,31 +279,27 @@ const SistentSelect = () => { - {/*

- NOTE: -

-

- These sizes are being specified with numerical values because though - the same size is used across screen resolutions, they have different - roles. On desktop for instance, the 56px button is a the default - size, and 48px the small size, while on mobile, 56px is large and - 48px is the default size. Preferred button sizes (height) are - usually arrived at through exploration and proper consideration of - industry standards and best practices. -

*/}

Multiple select

+

+ The multiple select component allows users to select more than one + option from the dropdown list. This is useful in scenarios where + multiple selections are required, such as selecting multiple tags, + categories, or items. +

- + Age