Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add layout component #1

Open
1 of 4 tasks
dev-yuka05 opened this issue Feb 8, 2022 · 0 comments
Open
1 of 4 tasks

Add layout component #1

dev-yuka05 opened this issue Feb 8, 2022 · 0 comments
Labels
components You can request a defined style tool component (eg '<Text></Text>') Feature Request

Comments

@dev-yuka05
Copy link
Member

dev-yuka05 commented Feb 8, 2022

Proposal

This tag is similar to div in HTML and Box in Nitron Styles Tools, but unlike Box , you should be able to use a grid.

Purpose

It should be easier to construct grid-like layouts without using CSS.

Example when this is implemented

You should be able to use your component like this:

const App = `
    <Layout row="" col="" gap="">
    </Layout>
`

The following properties of the component:

  • row : Specify inline start and inline end edges to size and position grid items within grid rows.
  • col : Specifies the size and position of grid items in grid columns by providing lines, extents, or nothing for grid placement.
  • gap : Gives space between rows and columns.
  • type : Sets the layout to use when placing child elements such as flow, grid, and flex, along with whether to process block or inline elements.

The rest of the properties should be the same as Box .

other requirements

  • The default state should be the same as Box.
@dev-yuka05 dev-yuka05 added components You can request a defined style tool component (eg '<Text></Text>') Feature Request labels Feb 8, 2022
dev-yuka05 added a commit that referenced this issue Feb 9, 2022
@dev-yuka05 dev-yuka05 added this to the Nitron Styles Tools v0.1.0 milestone Feb 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
components You can request a defined style tool component (eg '<Text></Text>') Feature Request
Projects
None yet
Development

No branches or pull requests

1 participant