From 6252ed30459a7b91588459b719a7fa4f2ec71aac Mon Sep 17 00:00:00 2001 From: Madeorsk Date: Fri, 27 Sep 2024 19:03:44 +0200 Subject: [PATCH] Add a tip component. --- demo/DemoApp.tsx | 5 +++++ package.json | 2 +- src/Components/Tips/Tip.tsx | 17 +++++++++++++++++ src/styles/_components.less | 1 + src/styles/components/_tip.less | 28 ++++++++++++++++++++++++++++ 5 files changed, 52 insertions(+), 1 deletion(-) create mode 100644 src/Components/Tips/Tip.tsx create mode 100644 src/styles/components/_tip.less diff --git a/demo/DemoApp.tsx b/demo/DemoApp.tsx index 0cad5db..337c509 100644 --- a/demo/DemoApp.tsx +++ b/demo/DemoApp.tsx @@ -38,6 +38,7 @@ import {Box} from "../src/Components/Box"; import {Await, useAsync} from "../src/Async"; import {NotifyErrorsBoundary} from "../src/Components/Errors/NotifyErrorsBoundary"; import {DemoFailingComponent, DemoResetComponent} from "./DemoFailingComponent"; +import {Tip} from "../src/Components/Tips/Tip"; export function DemoApp() { @@ -163,6 +164,10 @@ export function DemoApp() Radio box test Radio box test + + A tip component, very useful in forms which require some explanations. + +