mirror of
https://github.com/twentyhq/twenty
synced 2026-04-21 13:37:22 +00:00
## Summary Completes the migration of all documentation from twenty-website to a new Mintlify-powered documentation site at docs.twenty.com. ## Changes Made ### New Package: `twenty-docs` - ✅ Created new Mintlify documentation package - ✅ Migrated 95 content pages (user-guide, developers, twenty-ui) - ✅ Migrated 81 images - ✅ Converted all custom components to Mintlify native components - ✅ Configured navigation with 2 tabs and 94 pages - ✅ Added Helper AI Agent with searchArticles tool for docs search ### Updated: `twenty-website` - ✅ Added 11 redirect rules (301 permanent) in next.config.js - ✅ Removed all documentation content (111 files) - ✅ Removed documentation routes (user-guide, developers, twenty-ui) - ✅ Removed documentation components (9 files) - ✅ Updated keystatic.config.ts - ✅ Preserved all marketing/release pages ### Updated: Core Files - ✅ Updated README.md - docs links point to docs.twenty.com - ✅ Updated CONTRIBUTING.md - code quality link updated - ✅ Updated SupportDropdown.tsx - user guide link updated - ✅ Updated Footer.tsx - user guide link updated
58 lines
1.5 KiB
Text
58 lines
1.5 KiB
Text
---
|
|
title: Select
|
|
image: /images/user-guide/what-is-twenty/20.png
|
|
---
|
|
<Frame>
|
|
<img src="/images/user-guide/what-is-twenty/20.png" alt="Header" />
|
|
</Frame>
|
|
|
|
Allows users to pick a value from a list of predefined options.
|
|
|
|
<Tabs>
|
|
<Tab title="Usage">
|
|
|
|
```jsx
|
|
import { RecoilRoot } from 'recoil';
|
|
import { IconTwentyStar } from 'twenty-ui/display';
|
|
|
|
import { Select } from '@/ui/input/components/Select';
|
|
|
|
export const MyComponent = () => {
|
|
|
|
return (
|
|
<RecoilRoot>
|
|
<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"
|
|
/>
|
|
</RecoilRoot>
|
|
);
|
|
};
|
|
|
|
```
|
|
|
|
</Tab>
|
|
<Tab title="Props">
|
|
|
|
|
|
| Props | Type | Description |
|
|
|-------|------|-------------|
|
|
| className | string | Optional CSS class for additional styling |
|
|
| disabled | boolean | When set to `true`, disables user interaction with the component |
|
|
| label | string | The label to describe the purpose of the `Select` component |
|
|
| onChange | function | The function called when the selected values change |
|
|
| options | array | Represents the options available for the `Selected` component. It's an array of objects where each object has a `value` (the unique identifier), `label` (the unique identifier), and an optional `Icon` |
|
|
| value | string | Represents the currently selected value. It should match one of the `value` properties in the `options` array |
|
|
|
|
|
|
|
|
|
|
</Tab>
|
|
</Tabs>
|
|
|