Files
twenty/packages/twenty-docs/l/pt/twenty-ui/input/select.mdx
T
github-actions[bot] 68f4cf269d i18n - docs translations (#22281)
Created by Github action

<!-- This is an auto-generated description by cubic. -->
<a
href="https://cubic.dev/pr/twentyhq/twenty/pull/22281?utm_source=github"
target="_blank" rel="noopener noreferrer"
data-no-image-dialog="true"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://www.cubic.dev/buttons/review-in-cubic-dark.svg"><source
media="(prefers-color-scheme: light)"
srcset="https://www.cubic.dev/buttons/review-in-cubic-light.svg"><img
alt="Review in cubic"
src="https://www.cubic.dev/buttons/review-in-cubic-dark.svg"></picture></a>
<!-- End of auto-generated description by cubic. -->

Co-authored-by: github-actions <github-actions@twenty.com>
2026-06-29 07:22:03 +02:00

55 lines
2.6 KiB
Plaintext

---
title: Selecionar
---
<Frame>
<img src="/images/user-guide/what-is-twenty/20.png" alt="Cabeçalho" />
</Frame>
Permite aos utilizadores escolher um valor a partir de uma lista de opções pré-definidas.
<Tabs>
<Tab title="Uso">
```jsx
import { IconTwentyStar } from 'twenty-ui/display';
import { Select } from '@/ui/input/components/Select';
export const MyComponent = () => {
return (
<Select
className
disabled={false}
label="Select an option"
options={[
{ value: 'option1', label: 'Option A', Icon: IconTwentyStar },
{ value: 'option2', label: 'Option B', Icon: IconTwentyStar },
]}
value="option1"
/>
);
};
```
</Tab>
<Tab title="Propriedades">
| Propriedades | Tipo | Descrição |
| ------------ | -------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| className | string | Classe CSS opcional para estilização adicional. |
| desativado | booleano | Quando definido como `true`, desativa a interação do utilizador com o componente |
| etiqueta | string | A etiqueta para descrever o propósito do componente `Selecionar` |
| aoAlterar | função | A função chamada quando os valores selecionados são alterados |
| opções | array | Representa as opções disponíveis para o componente `Selected`. É uma matriz de objetos onde cada objeto tem um `valor` (o identificador único), `etiqueta` (o identificador único) e um `Ícone` opcional |
| valor | string | Representa o valor atualmente selecionado. Deverá corresponder a uma das propriedades `valor` na matriz `opções` |
</Tab>
</Tabs>