Skip to content

Commit 5a0a3a4

Browse files
add text param to docs and fix inheritance error
1 parent 1ab80b4 commit 5a0a3a4

File tree

2 files changed

+4
-1
lines changed
  • app/concepts/matestack/ui/core/sub
  • docs/components

2 files changed

+4
-1
lines changed

app/concepts/matestack/ui/core/sub/sub.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module Matestack::Ui::Core::Span
1+
module Matestack::Ui::Core::Sub
22
class Sub < Matestack::Ui::Core::Component::Static
33

44
end

docs/components/sub.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ Expects a string with all ids the sub should have.
1414
#### # class (optional)
1515
Expects a string with all classes the sub should have.
1616

17+
#### # text (optional)
18+
Expects a string with the text that should go into the `<sub>` tag.
19+
1720
## Example 1: Yield a given block
1821

1922
```ruby

0 commit comments

Comments
 (0)