mirror of
https://github.com/tailwindlabs/tailwindcss.git
synced 2025-12-08 21:36:08 +00:00
42 lines
1.5 KiB
Markdown
42 lines
1.5 KiB
Markdown
---
|
|
extends: _layouts.documentation
|
|
title: "User Select"
|
|
description: "Utilities for controlling whether the user can select text in an element."
|
|
features:
|
|
responsive: true
|
|
customizable: false
|
|
hover: false
|
|
focus: false
|
|
---
|
|
|
|
@include('_partials.work-in-progress')
|
|
|
|
<div class="border-t border-grey-lighter">
|
|
<table class="w-full text-left table-collapse">
|
|
<colgroup>
|
|
<col class="w-1/5">
|
|
<col class="w-1/3">
|
|
<col>
|
|
</colgroup>
|
|
<thead>
|
|
<tr>
|
|
<th class="text-sm font-semibold text-grey-darker p-2 bg-grey-lightest">Class</th>
|
|
<th class="text-sm font-semibold text-grey-darker p-2 bg-grey-lightest">Properties</th>
|
|
<th class="text-sm font-semibold text-grey-darker p-2 bg-grey-lightest">Description</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody class="align-baseline">
|
|
<tr>
|
|
<td class="p-2 border-t border-smoke font-mono text-xs text-purple-dark">.select-none</td>
|
|
<td class="p-2 border-t border-smoke font-mono text-xs text-blue-dark">user-select: none;</td>
|
|
<td class="p-2 border-t border-smoke text-sm text-grey-darker">Disable selecting text in an element.</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="p-2 border-t border-smoke font-mono text-xs text-purple-dark">.select-text</td>
|
|
<td class="p-2 border-t border-smoke font-mono text-xs text-blue-dark">user-select: text;</td>
|
|
<td class="p-2 border-t border-smoke text-sm text-grey-darker">Allow selecting text in an element.</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|