Skip to content

Commit

Permalink
Merge pull request #811 from gradio-app/custom_css_per_component
Browse files Browse the repository at this point in the history
Adding custom css kwarg directly to a component [WIP]
  • Loading branch information
abidlabs authored Mar 22, 2022
2 parents 5bbb0f1 + 9e7bbd4 commit f97cbbd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gradio/blocks.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@


class Block:
def __init__(self):
def __init__(self, css=None):
self._id = Context.id
self.css = css
Context.id += 1
if Context.block is not None:
Context.block.children.append(self)
Expand Down

0 comments on commit f97cbbd

Please sign in to comment.