@agentero/design-system 0.11.0 → 0.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/mcp/manifests/components.html +359 -12
- package/mcp/manifests/components.json +1 -1
- package/package.json +11 -1
- package/src/switch/index.d.ts +2 -0
- package/src/switch/index.js +2 -0
- package/src/switch/switch.d.ts +59 -0
- package/src/switch/switch.js +42 -0
- package/src/tooltip/index.d.ts +2 -0
- package/src/tooltip/index.js +2 -0
- package/src/tooltip/tooltip.d.ts +45 -0
- package/src/tooltip/tooltip.js +43 -0
- package/theme/base.css +48 -0
|
@@ -576,13 +576,13 @@
|
|
|
576
576
|
<header>
|
|
577
577
|
<div class="wrap">
|
|
578
578
|
<h1>Manifest Debugger</h1>
|
|
579
|
-
<div class="summary"><a class="filter-pill all" data-k="all" href="#filter-all">All</a><span class="filter-pill ok" aria-disabled="true">
|
|
579
|
+
<div class="summary"><a class="filter-pill all" data-k="all" href="#filter-all">All</a><span class="filter-pill ok" aria-disabled="true">14 components ok</span><span class="filter-pill ok" aria-disabled="true">138 stories ok</span></div>
|
|
580
580
|
</div>
|
|
581
581
|
</header>
|
|
582
582
|
<main>
|
|
583
583
|
<div class="wrap">
|
|
584
584
|
<div class="note ok" style="margin-bottom: 16px;">
|
|
585
|
-
Using <code>react-docgen-typescript</code>. Generation took <strong>
|
|
585
|
+
Using <code>react-docgen-typescript</code>. Generation took <strong>2.9s</strong>.
|
|
586
586
|
</div>
|
|
587
587
|
<h2 class="section-title">Components</h2>
|
|
588
588
|
<div class="grid" role="list">
|
|
@@ -3220,6 +3220,171 @@ totalCount: number</code></pre>
|
|
|
3220
3220
|
|
|
3221
3221
|
</div>
|
|
3222
3222
|
</article>
|
|
3223
|
+
<article
|
|
3224
|
+
class="card
|
|
3225
|
+
no-error
|
|
3226
|
+
no-info
|
|
3227
|
+
no-story-error
|
|
3228
|
+
no-doc-error"
|
|
3229
|
+
role="listitem"
|
|
3230
|
+
aria-label="Switch">
|
|
3231
|
+
<div class="head">
|
|
3232
|
+
<div class="title">
|
|
3233
|
+
<h2><span class="status-dot dot-ok"></span> Switch</h2>
|
|
3234
|
+
<div class="badges">
|
|
3235
|
+
<label for="c-9-components-switch-props" class="badge ok as-toggle">2 prop types</label>
|
|
3236
|
+
|
|
3237
|
+
<label for="c-9-components-switch-stories" class="badge ok as-toggle">6 stories</label>
|
|
3238
|
+
|
|
3239
|
+
</div>
|
|
3240
|
+
</div>
|
|
3241
|
+
<div class="meta" title="./src/switch/switch.stories.tsx">components-switch · ./src/switch/switch.stories.tsx</div>
|
|
3242
|
+
|
|
3243
|
+
<div class="hint">Two-state toggle for a setting that takes effect immediately. Prefer it over a Checkbox for a single boolean that applies instantly, and pair it with a `<label htmlFor>` to give it an accessible name.</div>
|
|
3244
|
+
|
|
3245
|
+
</div>
|
|
3246
|
+
|
|
3247
|
+
<!-- ⬇️ Hidden toggles must be siblings BEFORE .panels -->
|
|
3248
|
+
|
|
3249
|
+
|
|
3250
|
+
<input id="c-9-components-switch-stories" class="tg tg-stories" type="checkbox" hidden />
|
|
3251
|
+
|
|
3252
|
+
<input id="c-9-components-switch-props" class="tg tg-props" type="checkbox" hidden />
|
|
3253
|
+
|
|
3254
|
+
<div class="panels">
|
|
3255
|
+
|
|
3256
|
+
|
|
3257
|
+
|
|
3258
|
+
<div class="panel panel-props">
|
|
3259
|
+
<div class="note ok">
|
|
3260
|
+
<div class="row">
|
|
3261
|
+
<span class="ex-name">Prop types <small>(react-docgen-typescript)</small></span>
|
|
3262
|
+
<span class="badge ok">2 prop types</span>
|
|
3263
|
+
</div>
|
|
3264
|
+
<pre><code>Component: src/switch/switch.tsx::Switch</code></pre>
|
|
3265
|
+
<pre><code>Props:</code></pre>
|
|
3266
|
+
<pre><code>asChild?: boolean
|
|
3267
|
+
|
|
3268
|
+
size?: "sm" | "md"</code></pre>
|
|
3269
|
+
</div>
|
|
3270
|
+
</div>
|
|
3271
|
+
|
|
3272
|
+
<div class="panel panel-stories">
|
|
3273
|
+
|
|
3274
|
+
|
|
3275
|
+
|
|
3276
|
+
<div class="note ok">
|
|
3277
|
+
<div class="row">
|
|
3278
|
+
<span class="ex-name">Imports</span>
|
|
3279
|
+
</div>
|
|
3280
|
+
<pre><code>import { Switch } from "@agentero/design-system";</code></pre>
|
|
3281
|
+
</div>
|
|
3282
|
+
|
|
3283
|
+
|
|
3284
|
+
<div class="note ok">
|
|
3285
|
+
<div class="row">
|
|
3286
|
+
<span class="ex-name">Default</span>
|
|
3287
|
+
<span class="badge ok">story ok</span>
|
|
3288
|
+
</div>
|
|
3289
|
+
|
|
3290
|
+
|
|
3291
|
+
<pre><code>const Default = () => <Switch size="md" disabled={false} defaultChecked aria-label="Toggle setting" />;</code></pre>
|
|
3292
|
+
</div>
|
|
3293
|
+
<div class="note ok">
|
|
3294
|
+
<div class="row">
|
|
3295
|
+
<span class="ex-name">Sizes</span>
|
|
3296
|
+
<span class="badge ok">story ok</span>
|
|
3297
|
+
</div>
|
|
3298
|
+
|
|
3299
|
+
<div class="hint">The `sm` and `md` sizes compared.</div>
|
|
3300
|
+
<pre><code>const Sizes = () => (
|
|
3301
|
+
<div className="flex items-center gap-6">
|
|
3302
|
+
<div className="flex items-center gap-2">
|
|
3303
|
+
<Switch id="size-sm" size="sm" defaultChecked />
|
|
3304
|
+
<label htmlFor="size-sm" className="text-sm text-text-default-base-primary">
|
|
3305
|
+
Small
|
|
3306
|
+
</label>
|
|
3307
|
+
</div>
|
|
3308
|
+
<div className="flex items-center gap-2">
|
|
3309
|
+
<Switch id="size-md" size="md" defaultChecked />
|
|
3310
|
+
<label htmlFor="size-md" className="text-sm text-text-default-base-primary">
|
|
3311
|
+
Medium
|
|
3312
|
+
</label>
|
|
3313
|
+
</div>
|
|
3314
|
+
</div>
|
|
3315
|
+
);</code></pre>
|
|
3316
|
+
</div>
|
|
3317
|
+
<div class="note ok">
|
|
3318
|
+
<div class="row">
|
|
3319
|
+
<span class="ex-name">States</span>
|
|
3320
|
+
<span class="badge ok">story ok</span>
|
|
3321
|
+
</div>
|
|
3322
|
+
|
|
3323
|
+
<div class="hint">Unchecked and checked tracks.</div>
|
|
3324
|
+
<pre><code>const States = () => <div className="flex items-center gap-6">
|
|
3325
|
+
<Switch size="md" disabled={false} defaultChecked={false} aria-label="Off" />
|
|
3326
|
+
<Switch size="md" disabled={false} defaultChecked aria-label="On" />
|
|
3327
|
+
</div>;</code></pre>
|
|
3328
|
+
</div>
|
|
3329
|
+
<div class="note ok">
|
|
3330
|
+
<div class="row">
|
|
3331
|
+
<span class="ex-name">Disabled</span>
|
|
3332
|
+
<span class="badge ok">story ok</span>
|
|
3333
|
+
</div>
|
|
3334
|
+
|
|
3335
|
+
<div class="hint">Disabled switches are dimmed and reject pointer and keyboard interaction.</div>
|
|
3336
|
+
<pre><code>const Disabled = () => (
|
|
3337
|
+
<div className="flex items-center gap-6">
|
|
3338
|
+
<Switch disabled aria-label="Disabled off" />
|
|
3339
|
+
<Switch disabled defaultChecked aria-label="Disabled on" />
|
|
3340
|
+
</div>
|
|
3341
|
+
);</code></pre>
|
|
3342
|
+
</div>
|
|
3343
|
+
<div class="note ok">
|
|
3344
|
+
<div class="row">
|
|
3345
|
+
<span class="ex-name">Controlled</span>
|
|
3346
|
+
<span class="badge ok">story ok</span>
|
|
3347
|
+
</div>
|
|
3348
|
+
|
|
3349
|
+
<div class="hint">Controlled switch wired to component state via `checked` + `onCheckedChange`.</div>
|
|
3350
|
+
<pre><code>const Controlled = () => {
|
|
3351
|
+
const [enabled, setEnabled] = useState(false);
|
|
3352
|
+
|
|
3353
|
+
return (
|
|
3354
|
+
<div className="flex items-center gap-2">
|
|
3355
|
+
<Switch id="controlled" checked={enabled} onCheckedChange={setEnabled} />
|
|
3356
|
+
<label htmlFor="controlled" className="text-sm text-text-default-base-primary">
|
|
3357
|
+
Notifications {enabled ? 'on' : 'off'}
|
|
3358
|
+
</label>
|
|
3359
|
+
</div>
|
|
3360
|
+
);
|
|
3361
|
+
};</code></pre>
|
|
3362
|
+
</div>
|
|
3363
|
+
<div class="note ok">
|
|
3364
|
+
<div class="row">
|
|
3365
|
+
<span class="ex-name">Setting Row</span>
|
|
3366
|
+
<span class="badge ok">story ok</span>
|
|
3367
|
+
</div>
|
|
3368
|
+
|
|
3369
|
+
<div class="hint">Switch aligned in a labelled settings row.</div>
|
|
3370
|
+
<pre><code>const SettingRow = () => (
|
|
3371
|
+
<div className="flex w-80 items-center justify-between gap-4 rounded-lg border border-border-default-base-primary bg-bg-default-base-primary p-4">
|
|
3372
|
+
<div className="flex flex-col gap-0.5">
|
|
3373
|
+
<label htmlFor="marketing" className="text-sm font-medium text-text-default-base-primary">
|
|
3374
|
+
Marketing emails
|
|
3375
|
+
</label>
|
|
3376
|
+
<p className="text-xs text-text-default-base-secondary">
|
|
3377
|
+
Receive product updates and offers.
|
|
3378
|
+
</p>
|
|
3379
|
+
</div>
|
|
3380
|
+
<Switch id="marketing" defaultChecked />
|
|
3381
|
+
</div>
|
|
3382
|
+
);</code></pre>
|
|
3383
|
+
</div>
|
|
3384
|
+
</div>
|
|
3385
|
+
|
|
3386
|
+
</div>
|
|
3387
|
+
</article>
|
|
3223
3388
|
<article
|
|
3224
3389
|
class="card
|
|
3225
3390
|
no-error
|
|
@@ -3234,7 +3399,7 @@ totalCount: number</code></pre>
|
|
|
3234
3399
|
<div class="badges">
|
|
3235
3400
|
|
|
3236
3401
|
|
|
3237
|
-
<label for="c-
|
|
3402
|
+
<label for="c-10-components-table-stories" class="badge ok as-toggle">9 stories</label>
|
|
3238
3403
|
|
|
3239
3404
|
</div>
|
|
3240
3405
|
</div>
|
|
@@ -3247,7 +3412,7 @@ totalCount: number</code></pre>
|
|
|
3247
3412
|
<!-- ⬇️ Hidden toggles must be siblings BEFORE .panels -->
|
|
3248
3413
|
|
|
3249
3414
|
|
|
3250
|
-
<input id="c-
|
|
3415
|
+
<input id="c-10-components-table-stories" class="tg tg-stories" type="checkbox" hidden />
|
|
3251
3416
|
|
|
3252
3417
|
|
|
3253
3418
|
|
|
@@ -3421,9 +3586,9 @@ import { Fragment } from "react";</code></pre>
|
|
|
3421
3586
|
<div class="title">
|
|
3422
3587
|
<h2><span class="status-dot dot-ok"></span> Tag</h2>
|
|
3423
3588
|
<div class="badges">
|
|
3424
|
-
<label for="c-
|
|
3589
|
+
<label for="c-11-components-tag-props" class="badge ok as-toggle">6 prop types</label>
|
|
3425
3590
|
|
|
3426
|
-
<label for="c-
|
|
3591
|
+
<label for="c-11-components-tag-stories" class="badge ok as-toggle">10 stories</label>
|
|
3427
3592
|
|
|
3428
3593
|
</div>
|
|
3429
3594
|
</div>
|
|
@@ -3436,9 +3601,9 @@ import { Fragment } from "react";</code></pre>
|
|
|
3436
3601
|
<!-- ⬇️ Hidden toggles must be siblings BEFORE .panels -->
|
|
3437
3602
|
|
|
3438
3603
|
|
|
3439
|
-
<input id="c-
|
|
3604
|
+
<input id="c-11-components-tag-stories" class="tg tg-stories" type="checkbox" hidden />
|
|
3440
3605
|
|
|
3441
|
-
<input id="c-
|
|
3606
|
+
<input id="c-11-components-tag-props" class="tg tg-props" type="checkbox" hidden />
|
|
3442
3607
|
|
|
3443
3608
|
<div class="panels">
|
|
3444
3609
|
|
|
@@ -3795,9 +3960,9 @@ variant?: "ghost" | "secondary" | "tertiary" | &qu
|
|
|
3795
3960
|
<div class="title">
|
|
3796
3961
|
<h2><span class="status-dot dot-ok"></span> Toast</h2>
|
|
3797
3962
|
<div class="badges">
|
|
3798
|
-
<label for="c-
|
|
3963
|
+
<label for="c-12-components-toast-props" class="badge ok as-toggle">11 prop types</label>
|
|
3799
3964
|
|
|
3800
|
-
<label for="c-
|
|
3965
|
+
<label for="c-12-components-toast-stories" class="badge ok as-toggle">11 stories</label>
|
|
3801
3966
|
|
|
3802
3967
|
</div>
|
|
3803
3968
|
</div>
|
|
@@ -3810,9 +3975,9 @@ variant?: "ghost" | "secondary" | "tertiary" | &qu
|
|
|
3810
3975
|
<!-- ⬇️ Hidden toggles must be siblings BEFORE .panels -->
|
|
3811
3976
|
|
|
3812
3977
|
|
|
3813
|
-
<input id="c-
|
|
3978
|
+
<input id="c-12-components-toast-stories" class="tg tg-stories" type="checkbox" hidden />
|
|
3814
3979
|
|
|
3815
|
-
<input id="c-
|
|
3980
|
+
<input id="c-12-components-toast-props" class="tg tg-props" type="checkbox" hidden />
|
|
3816
3981
|
|
|
3817
3982
|
<div class="panels">
|
|
3818
3983
|
|
|
@@ -4207,6 +4372,188 @@ visibleToasts?: number</code></pre>
|
|
|
4207
4372
|
</div>
|
|
4208
4373
|
</div>
|
|
4209
4374
|
|
|
4375
|
+
</div>
|
|
4376
|
+
</article>
|
|
4377
|
+
<article
|
|
4378
|
+
class="card
|
|
4379
|
+
no-error
|
|
4380
|
+
no-info
|
|
4381
|
+
no-story-error
|
|
4382
|
+
no-doc-error"
|
|
4383
|
+
role="listitem"
|
|
4384
|
+
aria-label="Tooltip">
|
|
4385
|
+
<div class="head">
|
|
4386
|
+
<div class="title">
|
|
4387
|
+
<h2><span class="status-dot dot-ok"></span> Tooltip</h2>
|
|
4388
|
+
<div class="badges">
|
|
4389
|
+
<label for="c-13-components-tooltip-props" class="badge ok as-toggle">9 prop types</label>
|
|
4390
|
+
|
|
4391
|
+
<label for="c-13-components-tooltip-stories" class="badge ok as-toggle">5 stories</label>
|
|
4392
|
+
|
|
4393
|
+
</div>
|
|
4394
|
+
</div>
|
|
4395
|
+
<div class="meta" title="./src/tooltip/tooltip.stories.tsx">components-tooltip · ./src/tooltip/tooltip.stories.tsx</div>
|
|
4396
|
+
|
|
4397
|
+
<div class="hint">Tooltip reveals a short, non-essential hint anchored to a trigger element on hover or focus.</div>
|
|
4398
|
+
|
|
4399
|
+
</div>
|
|
4400
|
+
|
|
4401
|
+
<!-- ⬇️ Hidden toggles must be siblings BEFORE .panels -->
|
|
4402
|
+
|
|
4403
|
+
|
|
4404
|
+
<input id="c-13-components-tooltip-stories" class="tg tg-stories" type="checkbox" hidden />
|
|
4405
|
+
|
|
4406
|
+
<input id="c-13-components-tooltip-props" class="tg tg-props" type="checkbox" hidden />
|
|
4407
|
+
|
|
4408
|
+
<div class="panels">
|
|
4409
|
+
|
|
4410
|
+
|
|
4411
|
+
|
|
4412
|
+
<div class="panel panel-props">
|
|
4413
|
+
<div class="note ok">
|
|
4414
|
+
<div class="row">
|
|
4415
|
+
<span class="ex-name">Prop types <small>(react-docgen-typescript)</small></span>
|
|
4416
|
+
<span class="badge ok">9 prop types</span>
|
|
4417
|
+
</div>
|
|
4418
|
+
<pre><code>Component: src/tooltip/tooltip.tsx::Tooltip</code></pre>
|
|
4419
|
+
<pre><code>Props:</code></pre>
|
|
4420
|
+
<pre><code>/**
|
|
4421
|
+
* Preferred alignment against the trigger. Defaults to `'center'`.
|
|
4422
|
+
*/
|
|
4423
|
+
align?: "center" | "start" | "end"
|
|
4424
|
+
|
|
4425
|
+
/**
|
|
4426
|
+
* Merge Radix's behavior onto an already-interactive child instead of wrapping it in a `<button>`. Defaults to `false`.
|
|
4427
|
+
*/
|
|
4428
|
+
asChild?: boolean = false
|
|
4429
|
+
|
|
4430
|
+
/**
|
|
4431
|
+
* The trigger element. Hovering or focusing it reveals the tooltip.
|
|
4432
|
+
*/
|
|
4433
|
+
children: ReactNode
|
|
4434
|
+
|
|
4435
|
+
/**
|
|
4436
|
+
* Extra classes for the content surface, merged last.
|
|
4437
|
+
*/
|
|
4438
|
+
className?: string
|
|
4439
|
+
|
|
4440
|
+
/**
|
|
4441
|
+
* The floating hint. Keep it short — labels or hints, not paragraphs.
|
|
4442
|
+
*/
|
|
4443
|
+
content: ReactNode
|
|
4444
|
+
|
|
4445
|
+
/**
|
|
4446
|
+
* Delay in ms before opening on hover. Defaults to `0`; focus always opens instantly.
|
|
4447
|
+
*/
|
|
4448
|
+
delayDuration?: number = 0
|
|
4449
|
+
|
|
4450
|
+
/**
|
|
4451
|
+
* Hide the tooltip when the trigger is clipped away (e.g. scrolled out of an `overflow` container).
|
|
4452
|
+
*/
|
|
4453
|
+
hideWhenDetached?: boolean
|
|
4454
|
+
|
|
4455
|
+
/**
|
|
4456
|
+
* Preferred side of the trigger; flips on collision. Defaults to `'top'`.
|
|
4457
|
+
*/
|
|
4458
|
+
side?: "top" | "right" | "bottom" | "left" = top
|
|
4459
|
+
|
|
4460
|
+
/**
|
|
4461
|
+
* Distance in pixels between the tooltip and its trigger. Defaults to `4`.
|
|
4462
|
+
*/
|
|
4463
|
+
sideOffset?: number = 4</code></pre>
|
|
4464
|
+
</div>
|
|
4465
|
+
</div>
|
|
4466
|
+
|
|
4467
|
+
<div class="panel panel-stories">
|
|
4468
|
+
|
|
4469
|
+
|
|
4470
|
+
|
|
4471
|
+
<div class="note ok">
|
|
4472
|
+
<div class="row">
|
|
4473
|
+
<span class="ex-name">Imports</span>
|
|
4474
|
+
</div>
|
|
4475
|
+
<pre><code>import { Button, Tooltip } from "@agentero/design-system";</code></pre>
|
|
4476
|
+
</div>
|
|
4477
|
+
|
|
4478
|
+
|
|
4479
|
+
<div class="note ok">
|
|
4480
|
+
<div class="row">
|
|
4481
|
+
<span class="ex-name">Default</span>
|
|
4482
|
+
<span class="badge ok">story ok</span>
|
|
4483
|
+
</div>
|
|
4484
|
+
|
|
4485
|
+
<div class="hint">Default hint revealed on hover; hides again on unhover.</div>
|
|
4486
|
+
<pre><code>const Default = () => <Tooltip content="Archive this carrier" side="top" asChild>
|
|
4487
|
+
<Button variant="secondary">Hover me</Button>
|
|
4488
|
+
</Tooltip>;</code></pre>
|
|
4489
|
+
</div>
|
|
4490
|
+
<div class="note ok">
|
|
4491
|
+
<div class="row">
|
|
4492
|
+
<span class="ex-name">Opens On Focus</span>
|
|
4493
|
+
<span class="badge ok">story ok</span>
|
|
4494
|
+
</div>
|
|
4495
|
+
|
|
4496
|
+
<div class="hint">Opens on keyboard focus too, wiring `aria-describedby` on the trigger.</div>
|
|
4497
|
+
<pre><code>const OpensOnFocus = () => <Tooltip content="Archive this carrier" side="top" asChild>
|
|
4498
|
+
<Button variant="secondary">Focus me</Button>
|
|
4499
|
+
</Tooltip>;</code></pre>
|
|
4500
|
+
</div>
|
|
4501
|
+
<div class="note ok">
|
|
4502
|
+
<div class="row">
|
|
4503
|
+
<span class="ex-name">Sides</span>
|
|
4504
|
+
<span class="badge ok">story ok</span>
|
|
4505
|
+
</div>
|
|
4506
|
+
|
|
4507
|
+
<div class="hint">`side` sets the preferred placement; it flips on viewport collision.</div>
|
|
4508
|
+
<pre><code>const Sides = () => (
|
|
4509
|
+
<div className="grid grid-cols-2 gap-6">
|
|
4510
|
+
<Tooltip content="Tooltip on top" side="top" asChild>
|
|
4511
|
+
<Button variant="secondary">Top</Button>
|
|
4512
|
+
</Tooltip>
|
|
4513
|
+
<Tooltip content="Tooltip on the right" side="right" asChild>
|
|
4514
|
+
<Button variant="secondary">Right</Button>
|
|
4515
|
+
</Tooltip>
|
|
4516
|
+
<Tooltip content="Tooltip on the bottom" side="bottom" asChild>
|
|
4517
|
+
<Button variant="secondary">Bottom</Button>
|
|
4518
|
+
</Tooltip>
|
|
4519
|
+
<Tooltip content="Tooltip on the left" side="left" asChild>
|
|
4520
|
+
<Button variant="secondary">Left</Button>
|
|
4521
|
+
</Tooltip>
|
|
4522
|
+
</div>
|
|
4523
|
+
);</code></pre>
|
|
4524
|
+
</div>
|
|
4525
|
+
<div class="note ok">
|
|
4526
|
+
<div class="row">
|
|
4527
|
+
<span class="ex-name">As Child</span>
|
|
4528
|
+
<span class="badge ok">story ok</span>
|
|
4529
|
+
</div>
|
|
4530
|
+
|
|
4531
|
+
<div class="hint">`asChild` decorates an already-interactive trigger instead of wrapping it in a `<button>`.</div>
|
|
4532
|
+
<pre><code>const AsChild = () => <Tooltip content="Opens in a new tab" side="bottom" asChild>
|
|
4533
|
+
<a
|
|
4534
|
+
href="https://agentero.com"
|
|
4535
|
+
target="_blank"
|
|
4536
|
+
rel="noreferrer"
|
|
4537
|
+
className="text-text-default-base-primary underline">Docs
|
|
4538
|
+
</a>
|
|
4539
|
+
</Tooltip>;</code></pre>
|
|
4540
|
+
</div>
|
|
4541
|
+
<div class="note ok">
|
|
4542
|
+
<div class="row">
|
|
4543
|
+
<span class="ex-name">Long Content</span>
|
|
4544
|
+
<span class="badge ok">story ok</span>
|
|
4545
|
+
</div>
|
|
4546
|
+
|
|
4547
|
+
<div class="hint">Content wraps at the `32ch` max width.</div>
|
|
4548
|
+
<pre><code>const LongContent = () => <Tooltip
|
|
4549
|
+
content="This carrier requires a completed appointment before you can request quotes for this line of business."
|
|
4550
|
+
side="top"
|
|
4551
|
+
asChild>
|
|
4552
|
+
<Button variant="secondary">Why is this disabled?</Button>
|
|
4553
|
+
</Tooltip>;</code></pre>
|
|
4554
|
+
</div>
|
|
4555
|
+
</div>
|
|
4556
|
+
|
|
4210
4557
|
</div>
|
|
4211
4558
|
</article>
|
|
4212
4559
|
</div>
|