Skip to content

Commit

Permalink
feat(stage): add prop rounded to change the border-radius
Browse files Browse the repository at this point in the history
  • Loading branch information
hirsch88 committed Mar 4, 2022
1 parent d1ae35a commit fb8a8e6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/components/src/components/bal-stage/bal-stage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,19 @@ export class Stage implements ComponentInterface {
*/
@Prop() size: 'small' | '' | 'medium' | 'large' | 'halfheight' | 'fullheight' = ''

/**
* Defines the height of the stage section.
*/
@Prop() rounded = false

render() {
return (
<Host>
<section
class={{
'hero': true,
'has-background': true,
'has-radius-large': this.rounded,
'is-info': this.color === 'blue',
[`is-${this.size}`]: this.size !== '',
}}
Expand Down

0 comments on commit fb8a8e6

Please sign in to comment.