mirror of
https://github.com/gradio-app/gradio.git
synced 2025-01-30 11:00:11 +08:00
Merge pull request #811 from gradio-app/custom_css_per_component
Adding custom css kwarg directly to a component [WIP]
This commit is contained in:
commit
f97cbbd0d7
@ -11,8 +11,9 @@ if TYPE_CHECKING: # Only import for type checking (is False at runtime).
|
||||
|
||||
|
||||
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)
|
||||
|
Loading…
Reference in New Issue
Block a user