Renders a row table cell showing a particular user. This cell takes the user object as its children, which is in turn compatible with the NerdGraph user object (needing, at the very least, the name
and gravatar
fields).
Usage
import { UserTableRowCell } from 'nr1'
Examples
Example 1
function render() { const items = [ { name: 'John Doe', gravatar: 'https://secure.gravatar.com/avatar/79988df068cb4d952284a3395412dc4f', }, ];
return ( <Table items={items}> <TableHeader> <TableHeaderCell>User</TableHeaderCell> </TableHeader>
{({ item }) => ( <TableRow> <UserTableRowCell value={item} /> </TableRow> )} </Table> );}
Props
string | Appends class names to the component.Should be used only for positioning and spacing purposes. |
function | Callback fired any time the user clicks on the table cell. function ( |
object | Inline style for custom styling.Should be used only for positioning and spacing purposes. |
string | Adds a Note: You might not see |
shape|string | Location object or url string to link to.Linked shape
REQUIREDstring
string
string |
REQUIREDshape | User object, that requires (at least), the shape
REQUIREDstring
REQUIREDstring |