Skip to content

Commit ca91d04

Browse files
committed
Adds info about merging to README
1 parent f191aa2 commit ca91d04

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

README.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -268,9 +268,11 @@ end
268268
`css[:container]` slot which we define in our theme. The `ul` elements class
269269
would be `space-y-4` as that is the `css[:container]` on our theme.
270270

271-
Special html options will be safely merged. For examples, the component above
272-
defines a list controller. If we passed our own controller into data when we
273-
initialize, the component's data-controller attribute would be appended to:
271+
Special html options (`class`, `data`) will be safely merged.
272+
273+
For examples, the component above defines a list controller. If we passed our
274+
own controller into data when we initialize, the component's data-controller
275+
attribute would be appended to:
274276

275277
```ruby
276278
render List.new(
@@ -317,7 +319,7 @@ class List < Protos::Component
317319
end
318320
```
319321

320-
This makes our initializaiton declarative and easy to extend without having to
322+
This makes our initialization declarative and easy to extend without having to
321323
consider how to call `super` in the initializer.
322324

323325
The following keywords are reserved in the base class:
@@ -401,15 +403,15 @@ If bundler is not being used to manage dependencies, install the gem by executin
401403

402404
## Usage
403405

404-
Setup [Tailwindcss](https://tailwindcss.com/), [daisyUI](https://daisyui.com)
406+
Setup [TailwindCSS](https://tailwindcss.com/), [DaisyUI](https://daisyui.com)
405407
and add the protos path to your content.
406408

407409
```
408410
npm install -D tailwindcss postcss autoprefixer daisyui
409411
npx tailwindcss init
410412
```
411413

412-
Then we need to add the protos path to the `content` of our tailwindcss config
414+
Then we need to add the protos path to the `content` of our tailwind config
413415
so tailwind will read the styles defined in the Protos gem.
414416

415417
Protos also uses semantic spacing such as `p-sm` or `m-md` instead of set

0 commit comments

Comments
 (0)