--- title: "Select" slug: select category: component type: examples version: 20.0.0 tokens: 2582 source: https://ovh.github.io/design-system/v20.0.0/llms/react-components-select--examples.txt --- # Select ## Default ```tsx ``` ## Group ```tsx ``` ## Multiple ```tsx <> ``` ## Disabled ```tsx <> ``` ## Readonly ```tsx ``` ## Custom Renderer ```tsx { type CustomData = { description?: string, flag?: string, logo?: string, } const items: SelectItem[] = [ { customRendererData: { flag: 'https://upload.wikimedia.org/wikipedia/commons/b/b7/Flag_of_Europe.svg', }, label: 'EU providers', options: [{ customRendererData: { description: 'OVH, legally OVH Groupe SA, is a French cloud computing company which offers VPS, dedicated servers and other web services. As of 2016 OVH owned the world\'s largest data center in surface area. As of 2019, it was the largest hosting provider in Europe, and the third largest in the world based on physical servers.', logo: 'https://ovh.github.io/manager/ovhcloud-logo.webp', }, label: 'OVH Cloud', value:'ovh', }], }, { customRendererData: { flag: 'https://upload.wikimedia.org/wikipedia/en/a/a4/Flag_of_the_United_States.svg', }, label: 'US providers', options: [{ customRendererData: { description: 'Amazon Web Services, Inc. is a subsidiary of Amazon that provides on-demand cloud computing platforms and APIs to individuals, companies, and governments, on a metered, pay-as-you-go basis. Clients will often use this in combination with autoscaling.', logo: 'https://cdn.icon-icons.com/icons2/2407/PNG/512/aws_icon_146074.png', }, label: 'Amazon Web Services', value:'aws', }, { customRendererData: { description: 'Microsoft Azure, often referred to as just Azure, is a cloud computing platform developed by Microsoft. It offers management, access and development of applications and services through its global infrastructure.', logo: 'https://upload.wikimedia.org/wikipedia/commons/thumb/f/fa/Microsoft_Azure.svg/2048px-Microsoft_Azure.svg.png', }, label: 'Microsoft Azure', value:'azure', }, { customRendererData: { description: 'Google Cloud Platform, offered by Google, is a suite of cloud computing services that provides a series of modular cloud services including computing, data storage, data analytics, and machine learning, alongside a set of management tools.', logo: 'https://upload.wikimedia.org/wikipedia/commons/0/01/Google-cloud-platform.svg', }, label: 'Google Cloud Platform', value:'gcp', }], }, ]; return ( ); } ``` ## In Form Field ```tsx Select a Web hosting ``` ## Accessibility Form Field ```tsx Select a Web hosting ```