mirror of
https://github.com/zhigang1992/react-native-paper.git
synced 2026-05-22 16:32:31 +08:00
Deploy to GitHub Pages: 4a28c3e8a5
This commit is contained in:
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -33,7 +33,8 @@
|
||||
</div></div><div class="PropInfo_p1eats2g"><a name="children" href="#children" class="PropLabel_psi127e"><code>children</code> (required)</a><div class="PropItem_pwdtv5j"><span>Type: </span><code>React.Node</code></div><div class="PropItem_pwdtv5j MarkdownContent_m3ctz2y"><p>Text content of the <code>Chip</code>.</p>
|
||||
</div></div><div class="PropInfo_p1eats2g"><a name="icon" href="#icon" class="PropLabel_psi127e"><code>icon</code></a><div class="PropItem_pwdtv5j"><span>Type: </span><code>IconSource</code></div><div class="PropItem_pwdtv5j MarkdownContent_m3ctz2y"><p>Icon to display for the <code>Chip</code>. Both icon and avatar cannot be specified.</p>
|
||||
</div></div><div class="PropInfo_p1eats2g"><a name="avatar" href="#avatar" class="PropLabel_psi127e"><code>avatar</code></a><div class="PropItem_pwdtv5j"><span>Type: </span><code>React.Node</code></div><div class="PropItem_pwdtv5j MarkdownContent_m3ctz2y"><p>Avatar to display for the <code>Chip</code>. Both icon and avatar cannot be specified.</p>
|
||||
</div></div><div class="PropInfo_p1eats2g"><a name="selected" href="#selected" class="PropLabel_psi127e"><code>selected</code></a><div class="PropItem_pwdtv5j"><span>Type: </span><code>boolean</code></div><div class="PropItem_pwdtv5j"><span>Default value: </span><code>false</code></div><div class="PropItem_pwdtv5j MarkdownContent_m3ctz2y"><p>Whether to style the chip as selected.</p>
|
||||
</div></div><div class="PropInfo_p1eats2g"><a name="selected" href="#selected" class="PropLabel_psi127e"><code>selected</code></a><div class="PropItem_pwdtv5j"><span>Type: </span><code>boolean</code></div><div class="PropItem_pwdtv5j"><span>Default value: </span><code>false</code></div><div class="PropItem_pwdtv5j MarkdownContent_m3ctz2y"><p>Whether chip is selected.</p>
|
||||
</div></div><div class="PropInfo_p1eats2g"><a name="selectedColor" href="#selectedColor" class="PropLabel_psi127e"><code>selectedColor</code></a><div class="PropItem_pwdtv5j"><span>Type: </span><code>string</code></div><div class="PropItem_pwdtv5j MarkdownContent_m3ctz2y"><p>Whether to style the chip color as selected.</p>
|
||||
</div></div><div class="PropInfo_p1eats2g"><a name="disabled" href="#disabled" class="PropLabel_psi127e"><code>disabled</code></a><div class="PropItem_pwdtv5j"><span>Type: </span><code>boolean</code></div><div class="PropItem_pwdtv5j"><span>Default value: </span><code>false</code></div><div class="PropItem_pwdtv5j MarkdownContent_m3ctz2y"><p>Whether the chip is disabled. A disabled chip is greyed out and <code>onPress</code> is not called on touch.</p>
|
||||
</div></div><div class="PropInfo_p1eats2g"><a name="accessibilityLabel" href="#accessibilityLabel" class="PropLabel_psi127e"><code>accessibilityLabel</code></a><div class="PropItem_pwdtv5j"><span>Type: </span><code>string</code></div><div class="PropItem_pwdtv5j MarkdownContent_m3ctz2y"><p>Accessibility label for the chip. This is read by the screen reader when the user taps the chip.</p>
|
||||
</div></div><div class="PropInfo_p1eats2g"><a name="onPress" href="#onPress" class="PropLabel_psi127e"><code>onPress</code></a><div class="PropItem_pwdtv5j"><span>Type: </span><code>() => mixed</code></div><div class="PropItem_pwdtv5j MarkdownContent_m3ctz2y"><p>Function to execute on press.</p>
|
||||
|
||||
@@ -35,7 +35,8 @@
|
||||
</div></div><div class="PropInfo_p1eats2g"><a name="onChangeText" href="#onChangeText" class="PropLabel_psi127e"><code>onChangeText</code></a><div class="PropItem_pwdtv5j"><span>Type: </span><code>(query: string) => void</code></div><div class="PropItem_pwdtv5j MarkdownContent_m3ctz2y"><p>Callback that is called when the text input's text changes.</p>
|
||||
</div></div><div class="PropInfo_p1eats2g"><a name="onIconPress" href="#onIconPress" class="PropLabel_psi127e"><code>onIconPress</code></a><div class="PropItem_pwdtv5j"><span>Type: </span><code>() => mixed</code></div><div class="PropItem_pwdtv5j MarkdownContent_m3ctz2y"><p>Callback to execute if we want the left icon to act as button.</p>
|
||||
</div></div><div class="PropInfo_p1eats2g"><a name="inputStyle" href="#inputStyle" class="PropLabel_psi127e"><code>inputStyle</code></a><div class="PropItem_pwdtv5j"><span>Type: </span><code>any</code></div><div class="PropItem_pwdtv5j MarkdownContent_m3ctz2y"><p>Set style of the TextInput component inside the searchbar</p>
|
||||
</div></div><div class="PropInfo_p1eats2g"><a name="style" href="#style" class="PropLabel_psi127e"><code>style</code></a><div class="PropItem_pwdtv5j"><span>Type: </span><code>any</code></div></div><div class="PropInfo_p1eats2g"><a name="theme" href="#theme" class="PropLabel_psi127e"><code>theme</code></a><div class="PropItem_pwdtv5j"><span>Type: </span><code>Theme</code></div><div class="PropItem_pwdtv5j MarkdownContent_m3ctz2y"></div></div><h2>Methods</h2><p>These methods can be accessed on the <code>ref</code> of the component, e.g.<!-- --> <code>searchbar<!-- -->Ref.<!-- -->isFocused<!-- -->(...args)</code>.</p><div class="PropInfo_p1eats2g"><a name="isFocused" href="#isFocused" class="PropLabel_psi127e"><code>isFocused</code></a><div class="PropItem_pwdtv5j MarkdownContent_m3ctz2y"><p>Returns <code>true</code> if the input is currently focused, <code>false</code> otherwise.</p>
|
||||
</div></div><div class="PropInfo_p1eats2g"><a name="style" href="#style" class="PropLabel_psi127e"><code>style</code></a><div class="PropItem_pwdtv5j"><span>Type: </span><code>any</code></div></div><div class="PropInfo_p1eats2g"><a name="theme" href="#theme" class="PropLabel_psi127e"><code>theme</code></a><div class="PropItem_pwdtv5j"><span>Type: </span><code>Theme</code></div><div class="PropItem_pwdtv5j MarkdownContent_m3ctz2y"></div></div><div class="PropInfo_p1eats2g"><a name="iconColor" href="#iconColor" class="PropLabel_psi127e"><code>iconColor</code></a><div class="PropItem_pwdtv5j"><span>Type: </span><code>string</code></div><div class="PropItem_pwdtv5j MarkdownContent_m3ctz2y"><p>Custom color for icon, default will be derived from theme</p>
|
||||
</div></div><h2>Methods</h2><p>These methods can be accessed on the <code>ref</code> of the component, e.g.<!-- --> <code>searchbar<!-- -->Ref.<!-- -->isFocused<!-- -->(...args)</code>.</p><div class="PropInfo_p1eats2g"><a name="isFocused" href="#isFocused" class="PropLabel_psi127e"><code>isFocused</code></a><div class="PropItem_pwdtv5j MarkdownContent_m3ctz2y"><p>Returns <code>true</code> if the input is currently focused, <code>false</code> otherwise.</p>
|
||||
</div></div><div class="PropInfo_p1eats2g"><a name="clear" href="#clear" class="PropLabel_psi127e"><code>clear</code></a><div class="PropItem_pwdtv5j MarkdownContent_m3ctz2y"><p>Removes all text from the TextInput.</p>
|
||||
</div></div><div class="PropInfo_p1eats2g"><a name="focus" href="#focus" class="PropLabel_psi127e"><code>focus</code></a><div class="PropItem_pwdtv5j MarkdownContent_m3ctz2y"><p>Focuses the input.</p>
|
||||
</div></div><div class="PropInfo_p1eats2g"><a name="blur" href="#blur" class="PropLabel_psi127e"><code>blur</code></a><div class="PropItem_pwdtv5j MarkdownContent_m3ctz2y"><p>Removes focus from the input.</p>
|
||||
|
||||
Reference in New Issue
Block a user