@@ -179,7 +179,7 @@ Now this will work as expected.
179
179
180
180
---
181
181
182
- ### More examples
182
+ ### More examples - Colors
183
183
184
184
#### Orange
185
185
@@ -254,3 +254,127 @@ import 'react-tooltip/dist/react-tooltip.css'
254
254
</TooltipAnchor >
255
255
<Tooltip anchorId = " custom-styles-pink" className = " example-pink" classNameArrow = " example-arrow" />
256
256
</div >
257
+
258
+ ### More examples - Radius
259
+
260
+ #### Removing radius
261
+
262
+ ``` jsx
263
+ import { Tooltip } from ' react-tooltip'
264
+ import ' react-tooltip/dist/react-tooltip.css'
265
+
266
+ < style>
267
+ .example - container .example - no- radius {
268
+ border- radius: 0 ;
269
+ }
270
+ < / style>
271
+
272
+ < div className= " example-container" >
273
+ < a id= " custom-styles-no-radius" data- tooltip- content= " hello world!" >
274
+ ◕‿‿◕
275
+ < / a>
276
+ < Tooltip anchorId= " custom-styles-no-radius" className= " example-no-radius" / >
277
+ < / div>
278
+ ```
279
+
280
+ <div
281
+ className = " example-container"
282
+ style = { { display: ' flex' , columnGap: ' 16px' , justifyContent: ' center' }}
283
+ >
284
+ <TooltipAnchor id = " custom-styles-no-radius" data-tooltip-content = " hello world!" >
285
+ ◕‿‿◕
286
+ </TooltipAnchor >
287
+ <Tooltip anchorId = " custom-styles-no-radius" className = " example-no-radius" />
288
+ </div >
289
+
290
+ #### Rounded
291
+
292
+ ``` jsx
293
+ import { Tooltip } from ' react-tooltip'
294
+ import ' react-tooltip/dist/react-tooltip.css'
295
+
296
+ < style>
297
+ .example - container .example - rounded {
298
+ border- radius: 50 % ;
299
+ }
300
+ < / style>
301
+
302
+ < div className= " example-container" >
303
+ < a id= " custom-styles-rounded" data- tooltip- content= " hello world!" >
304
+ ◕‿‿◕
305
+ < / a>
306
+ < Tooltip anchorId= " custom-styles-rounded" className= " example-rounded" / >
307
+ < / div>
308
+ ```
309
+
310
+ <div
311
+ className = " example-container"
312
+ style = { { display: ' flex' , columnGap: ' 16px' , justifyContent: ' center' }}
313
+ >
314
+ <TooltipAnchor id = " custom-styles-rounded" data-tooltip-content = " hello world!" >
315
+ ◕‿‿◕
316
+ </TooltipAnchor >
317
+ <Tooltip anchorId = " custom-styles-rounded" className = " example-rounded" />
318
+ </div >
319
+
320
+ ### More examples - Padding
321
+
322
+ #### Removing padding
323
+
324
+ ``` jsx
325
+ import { Tooltip } from ' react-tooltip'
326
+ import ' react-tooltip/dist/react-tooltip.css'
327
+
328
+ < style>
329
+ .example - container .example - no- padding {
330
+ padding: 0 ;
331
+ }
332
+ < / style>
333
+
334
+ < div className= " example-container" >
335
+ < a id= " custom-styles-no-padding" data- tooltip- content= " hello world!" >
336
+ ◕‿‿◕
337
+ < / a>
338
+ < Tooltip anchorId= " custom-styles-no-padding" className= " example-no-padding" / >
339
+ < / div>
340
+ ```
341
+
342
+ <div
343
+ className = " example-container"
344
+ style = { { display: ' flex' , columnGap: ' 16px' , justifyContent: ' center' }}
345
+ >
346
+ <TooltipAnchor id = " custom-styles-no-padding" data-tooltip-content = " hello world!" >
347
+ ◕‿‿◕
348
+ </TooltipAnchor >
349
+ <Tooltip anchorId = " custom-styles-no-padding" className = " example-no-padding" />
350
+ </div >
351
+
352
+ #### Adding more padding
353
+
354
+ ``` jsx
355
+ import { Tooltip } from ' react-tooltip'
356
+ import ' react-tooltip/dist/react-tooltip.css'
357
+
358
+ < style>
359
+ .example - container .example - padding {
360
+ border- radius: 50 % ;
361
+ }
362
+ < / style>
363
+
364
+ < div className= " example-container" >
365
+ < a id= " custom-styles-padding" data- tooltip- content= " hello world!" >
366
+ ◕‿‿◕
367
+ < / a>
368
+ < Tooltip anchorId= " custom-styles-padding" className= " example-padding" / >
369
+ < / div>
370
+ ```
371
+
372
+ <div
373
+ className = " example-container"
374
+ style = { { display: ' flex' , columnGap: ' 16px' , justifyContent: ' center' }}
375
+ >
376
+ <TooltipAnchor id = " custom-styles-padding" data-tooltip-content = " hello world!" >
377
+ ◕‿‿◕
378
+ </TooltipAnchor >
379
+ <Tooltip anchorId = " custom-styles-padding" className = " example-padding" />
380
+ </div >
0 commit comments