Add props for wrap component (#41)
This commit is contained in:
parent
7bb95b4484
commit
1d22571829
@ -1,6 +1,7 @@
|
|||||||
"""Container to stack elements with spacing."""
|
"""Container to stack elements with spacing."""
|
||||||
|
|
||||||
from pynecone.components.libs.chakra import ChakraComponent
|
from pynecone.components.libs.chakra import ChakraComponent
|
||||||
|
from pynecone.var import Var
|
||||||
|
|
||||||
|
|
||||||
class Wrap(ChakraComponent):
|
class Wrap(ChakraComponent):
|
||||||
@ -8,6 +9,27 @@ class Wrap(ChakraComponent):
|
|||||||
|
|
||||||
tag = "Wrap"
|
tag = "Wrap"
|
||||||
|
|
||||||
|
# How to align the items.
|
||||||
|
align: Var[str]
|
||||||
|
|
||||||
|
# The flex direction of the wrap.
|
||||||
|
direction: Var[str]
|
||||||
|
|
||||||
|
# How to justify the items.
|
||||||
|
justify: Var[str]
|
||||||
|
|
||||||
|
# Whether to wrap children in `pc.wrap_item`.
|
||||||
|
should_wrap_children: Var[bool]
|
||||||
|
|
||||||
|
# The spacing between the items.
|
||||||
|
spacing: Var[str]
|
||||||
|
|
||||||
|
# The horizontal spacing between the items.
|
||||||
|
spacing_x: Var[str]
|
||||||
|
|
||||||
|
# The vertical spacing between the items.
|
||||||
|
spacing_y: Var[str]
|
||||||
|
|
||||||
|
|
||||||
class WrapItem(ChakraComponent):
|
class WrapItem(ChakraComponent):
|
||||||
"""Item of the Wrap component."""
|
"""Item of the Wrap component."""
|
||||||
|
@ -94,7 +94,6 @@ def deploy(dry_run: bool = False):
|
|||||||
# Check if the deploy url is set.
|
# Check if the deploy url is set.
|
||||||
if config.deploy_url is None:
|
if config.deploy_url is None:
|
||||||
typer.echo("This feature is coming soon!")
|
typer.echo("This feature is coming soon!")
|
||||||
typer.echo("Join our waitlist to be notified: https://pynecone.io/waitlist")
|
|
||||||
return
|
return
|
||||||
|
|
||||||
# Compile the app in production mode.
|
# Compile the app in production mode.
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
[tool.poetry]
|
[tool.poetry]
|
||||||
name = "pynecone-io"
|
name = "pynecone-io"
|
||||||
version = "0.1.7"
|
version = "0.1.8"
|
||||||
description = "The easiest way to build web apps."
|
description = "The easiest way to build web apps."
|
||||||
license = "Apache-2.0"
|
license = "Apache-2.0"
|
||||||
authors = [
|
authors = [
|
||||||
|
Loading…
Reference in New Issue
Block a user