diff --git a/README.md b/README.md index e2f25cd..6afae96 100644 --- a/README.md +++ b/README.md @@ -6,13 +6,13 @@ It uses real svg under the hood what provide the maximum flexibility. # Setup -for the tailwind v4 use: +for the tailwind v4 use this in your css file: ```css @import "tailwindcss"; @plugin "tailwind-dashed-border"; ``` -then prepare a component for svg, or copy this shape everywhere you want to use it. +then prepare a component for svg in case you don't want repeat yourself everywhere. I will show it as it would look in React, but similar approach should work in any framework. ```tsx export function BorderSVG() { @@ -32,11 +32,28 @@ and now you are ready to make your borders ``` -# Usage +# Usage Example +```tsx +
+ +
Content
+
+``` +![output](./assets/example.webp) -# Properties +# Plugin Properties ## Setup - `dashed-border` diff --git a/assets/example.webp b/assets/example.webp new file mode 100644 index 0000000..2540fa6 Binary files /dev/null and b/assets/example.webp differ