joyent-portal/packages/ui-toolkit/src/tooltip
2018-06-04 11:46:08 +01:00
..
__tests__ feat(instances): QA Instance Managment bug fixes. closes #1423 2018-05-21 11:37:26 +01:00
container.js fix: update dependencies for ie11 compat 2018-01-23 21:07:08 +00:00
index.js fix(ui-toolkit): fix tooltip font-size and padding 2018-01-26 15:57:18 +00:00
Readme.md feat(sg): bootstrap 2018-06-04 11:46:08 +01:00
style.js feat(instances): QA Instance Managment bug fixes. closes #1423 2018-05-21 11:37:26 +01:00
target.js feat(ui-toolkit): add popover button 2018-03-20 10:46:16 +00:00

const React = require('react');
const { Row, Col } = require('joyent-react-styled-flexboxgrid');
const { default: Tooltip, Container, Target } = require('./');
const { P } = require('../text');

<Row center="xs" between="xs" style={{ marginTop: 60 }}>
  <Col xs="2">
    <Container>
      <Target>Hello</Target>
      <Tooltip placement="top">
        <P white>top</P>
      </Tooltip>
    </Container>
  </Col>
  <Col xs="2">
    <Container>
      <Target>Hello</Target>
      <Tooltip placement="right">
        <P white>right</P>
      </Tooltip>
    </Container>
  </Col>
  <Col xs="2">
    <Container>
      <Target>Hello</Target>
      <Tooltip placement="bottom">
        <P white>bottom</P>
      </Tooltip>
    </Container>
  </Col>
  <Col xs="2">
    <Container>
      <Target>Hello</Target>
      <Tooltip placement="left">
        <P white>left</P>
      </Tooltip>
    </Container>
  </Col>
</Row>;

Tooltip > hover

const React = require('react');
const { Row, Col } = require('joyent-react-styled-flexboxgrid');
const { default: Tooltip, Container, Target } = require('./');
const { P } = require('../text');

<Row center="xs" between="xs">
  <Col xs="3">
    <Container hoverable>
      <Target>Hover here</Target>
      <Tooltip placement="top">
        <P white>top</P>
      </Tooltip>
    </Container>
  </Col>
</Row>;

Tooltip > click

const React = require('react');
const { Row, Col } = require('joyent-react-styled-flexboxgrid');
const { default: Tooltip, Container, Target } = require('./');
const { P } = require('../text');

<Row center="xs" between="xs">
  <Col xs="2">
    <Container clickable>
      <Target>Click here</Target>
      <Tooltip placement="top">
        <P white>top</P>
      </Tooltip>
    </Container>
  </Col>
</Row>;