Files
twenty/packages/twenty-docs/l/uk/twenty-ui/input/checkbox.mdx
T
github-actions[bot] 8cadd00d34 i18n - translations (#15799)
Created by Github action

---------

Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
Co-authored-by: github-actions <github-actions@twenty.com>
2025-11-13 16:34:00 +01:00

48 lines
2.4 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
title: Checkbox
image: /images/user-guide/tasks/tasks_header.png
---
<Frame>
<img src="/images/user-guide/tasks/tasks_header.png" alt="Header" />
</Frame>
Використовується, коли користувач має вибрати декілька значень з кількох варіантів.
<Tabs>
<Tab title="Usage">
```jsx
import { Checkbox } from "twenty-ui/display";
export const MyComponent = () => {
return (
<Checkbox
checked={true}
indeterminate={false}
onChange={() => console.log("onChange function fired")}
onCheckedChange={() => console.log("onCheckedChange function fired")}
variant="primary"
size="small"
shape="squared"
/>
);
};
```
</Tab>
<Tab title="Props">
| Властивості | Тип | Опис |
| --------------- | ----------- | ------------------------------------------------------------------------------------------------------------------------ |
| позначено | булевий тип | Вказує, чи прапорець позначений |
| indeterminate | булевий тип | Вказує, чи прапорець у невизначеному стані (ні позначений, ні непозначений) |
| onChange | функція | Функція зворотного виклику, яку ви хочете викликати, коли змінюється стан позначки |
| onCheckedChange | функція | Функція зворотного виклику, яку ви хочете викликати, коли змінюється стан `позначено` |
| variant | рядок | Візуальний стиль варіанта блоку. Варіанти включають: `primary`, `secondary` і `tertiary` |
| розмір | рядок | Розмір прапорця. Має дві опції: `малий` і `великий` |
| форма | рядок | Форма прапорця. Has two options: `squared` and `rounded` |
</Tab>
</Tabs>